applied patch from Fabio Ospitia Trujillo

git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@384275 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
James Strachan 2006-03-08 17:32:19 +00:00
parent 6c0fae01de
commit 242353b56c
1 changed files with 2 additions and 2 deletions

View File

@ -298,7 +298,7 @@ public class ActiveMQConnectionRequestInfo implements ConnectionRequestInfo, Ser
* breaking compatibility with JCA configuration in J2EE
*/
public RedeliveryPolicy redeliveryPolicy() {
if (redeliveryPolicy != null) {
if (redeliveryPolicy == null) {
redeliveryPolicy = new RedeliveryPolicy();
}
return redeliveryPolicy;
@ -309,7 +309,7 @@ public class ActiveMQConnectionRequestInfo implements ConnectionRequestInfo, Ser
* breaking compatibility with JCA configuration in J2EE
*/
public ActiveMQPrefetchPolicy prefetchPolicy() {
if (prefetchPolicy != null) {
if (prefetchPolicy == null) {
prefetchPolicy = new ActiveMQPrefetchPolicy();
}
return prefetchPolicy;