geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dblev...@apache.org
Subject svn commit: r357920 - /geronimo/gbuild/trunk/gbuild-agent/src/main/java/org/apache/geronimo/gbuild/agent/Client.java
Date Tue, 20 Dec 2005 06:05:09 GMT
Author: dblevins
Date: Mon Dec 19 22:05:05 2005
New Revision: 357920

URL: http://svn.apache.org/viewcvs?rev=357920&view=rev
Log:
Extra convenience method that allows for usage of selectors.

Modified:
    geronimo/gbuild/trunk/gbuild-agent/src/main/java/org/apache/geronimo/gbuild/agent/Client.java

Modified: geronimo/gbuild/trunk/gbuild-agent/src/main/java/org/apache/geronimo/gbuild/agent/Client.java
URL: http://svn.apache.org/viewcvs/geronimo/gbuild/trunk/gbuild-agent/src/main/java/org/apache/geronimo/gbuild/agent/Client.java?rev=357920&r1=357919&r2=357920&view=diff
==============================================================================
--- geronimo/gbuild/trunk/gbuild-agent/src/main/java/org/apache/geronimo/gbuild/agent/Client.java
(original)
+++ geronimo/gbuild/trunk/gbuild-agent/src/main/java/org/apache/geronimo/gbuild/agent/Client.java
Mon Dec 19 22:05:05 2005
@@ -98,6 +98,11 @@
         return session.createConsumer(queue);
     }
 
+    public MessageConsumer createQueueConsumer(String subject, String selector) throws JMSException
{
+        Queue queue = session.createQueue(subject);
+        return session.createConsumer(queue, selector);
+    }
+
     public MessageConsumer createTopicConsumer(String subject) throws JMSException {
         Topic topic = session.createTopic(subject);
         return session.createConsumer(topic);



Mime
View raw message