From 82d60e12918befd2afd92ad8b1bc02d6fc73ff44 Mon Sep 17 00:00:00 2001 From: "Frederick G. Oconer" Date: Fri, 3 Feb 2006 08:48:25 +0000 Subject: [PATCH] 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 --- .../main/java/org/apache/activemq/ActiveMQPrefetchPolicy.java | 4 ++-- .../src/main/java/org/apache/activemq/RedeliveryPolicy.java | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/activemq-core/src/main/java/org/apache/activemq/ActiveMQPrefetchPolicy.java b/activemq-core/src/main/java/org/apache/activemq/ActiveMQPrefetchPolicy.java index ecd6c58c65..67d9f8e232 100755 --- a/activemq-core/src/main/java/org/apache/activemq/ActiveMQPrefetchPolicy.java +++ b/activemq-core/src/main/java/org/apache/activemq/ActiveMQPrefetchPolicy.java @@ -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; diff --git a/activemq-core/src/main/java/org/apache/activemq/RedeliveryPolicy.java b/activemq-core/src/main/java/org/apache/activemq/RedeliveryPolicy.java index 3598112855..df0a8d66cc 100644 --- a/activemq-core/src/main/java/org/apache/activemq/RedeliveryPolicy.java +++ b/activemq-core/src/main/java/org/apache/activemq/RedeliveryPolicy.java @@ -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;