activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rajdav...@apache.org
Subject svn commit: r534008 - /activemq/camel/trunk/camel-jms/src/main/java/org/apache/camel/component/jms/JmsComponent.java
Date Tue, 01 May 2007 11:21:23 GMT
Author: rajdavies
Date: Tue May  1 04:21:23 2007
New Revision: 534008

URL: http://svn.apache.org/viewvc?view=rev&rev=534008
Log:
Added auto acknowledge factory method

Modified:
    activemq/camel/trunk/camel-jms/src/main/java/org/apache/camel/component/jms/JmsComponent.java

Modified: activemq/camel/trunk/camel-jms/src/main/java/org/apache/camel/component/jms/JmsComponent.java
URL: http://svn.apache.org/viewvc/activemq/camel/trunk/camel-jms/src/main/java/org/apache/camel/component/jms/JmsComponent.java?view=diff&rev=534008&r1=534007&r2=534008
==============================================================================
--- activemq/camel/trunk/camel-jms/src/main/java/org/apache/camel/component/jms/JmsComponent.java
(original)
+++ activemq/camel/trunk/camel-jms/src/main/java/org/apache/camel/component/jms/JmsComponent.java
Tue May  1 04:21:23 2007
@@ -64,6 +64,15 @@
      */
     public static JmsComponent jmsComponentClientAcknowledge(ConnectionFactory connectionFactory)
{
         JmsConfiguration template = new JmsConfiguration(connectionFactory);
+        template.setAcknowledgementMode(Session.CLIENT_ACKNOWLEDGE);
+        return jmsComponent(template);
+    }
+    
+    /**
+     * Static builder method
+     */
+    public static JmsComponent jmsComponentAutoAcknowledge(ConnectionFactory connectionFactory)
{
+        JmsConfiguration template = new JmsConfiguration(connectionFactory);
         template.setAcknowledgementMode(Session.AUTO_ACKNOWLEDGE);
         return jmsComponent(template);
     }



Mime
View raw message