mirror of https://github.com/apache/activemq.git
make Serializable to prevent NotSerializableException in weblogic (AMQ-501) - Patrick Villacorta
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@374605 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
fb7ba93b64
commit
82d60e1291
|
@ -16,7 +16,7 @@
|
|||
*/
|
||||
package org.apache.activemq;
|
||||
|
||||
|
||||
import java.io.Serializable;
|
||||
import org.apache.commons.logging.Log;
|
||||
import org.apache.commons.logging.LogFactory;
|
||||
|
||||
|
@ -25,7 +25,7 @@ import org.apache.commons.logging.LogFactory;
|
|||
* Defines the pretech message policies for different types of consumers
|
||||
* @version $Revision: 1.3 $
|
||||
*/
|
||||
public class ActiveMQPrefetchPolicy {
|
||||
public class ActiveMQPrefetchPolicy implements Serializable {
|
||||
private static final Log log = LogFactory.getLog(ActiveMQPrefetchPolicy.class);
|
||||
private static final int MAX_PREFETCH_SIZE = (Short.MAX_VALUE -1);
|
||||
private int queuePrefetch;
|
||||
|
|
|
@ -16,13 +16,15 @@
|
|||
*/
|
||||
package org.apache.activemq;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* Configuration options used to control how messages are re-delivered when they
|
||||
* are rolled back.
|
||||
*
|
||||
* @version $Revision: 1.11 $
|
||||
*/
|
||||
public class RedeliveryPolicy implements Cloneable {
|
||||
public class RedeliveryPolicy implements Cloneable, Serializable {
|
||||
|
||||
protected int maximumRedeliveries = 5;
|
||||
protected long initialRedeliveryDelay = 1000L;
|
||||
|
|
Loading…
Reference in New Issue