Login | Register
My pages Projects Community openCollabNet

Discussions > cvs > CVS update: /jms4spread/src/java/org/tigris/jms4spread/

jms4spread
Discussion topic

Back to topic list

CVS update: /jms4spread/src/java/org/tigris/jms4spread/

Reply

Author dlr
Full name Daniel Rall
Date 2002-07-21 16:40:36 PDT
Message User: dlr
Date: 02/07/21 16:40:36

Modified
 /jms4spread/src/java​/org/tigris/jms4spre​ad/
  JMSConnectionFactory.java

Log
 Initial stub.

File Changes:

Directory: /jms4spread/src/java​/org/tigris/jms4spre​ad/
====================​====================​==============

File [changed]: JMSConnectionFactory.java
Url: http://jms4spread.ti​gris.org/source/brow​se/jms4spread/src/ja​va/org/tigris/jms4sp​read/JMSConnectionFa​ctory.java.diff?r1=1​.1.1.1&r2=1.2
Delta lines: +47 -1
--------------------
--- JMSConnectionFactory.java 21 Jul 2002 22:56:48 -0000 1.1.1.1
+++ JMSConnectionFactory.java 21 Jul 2002 23:40:36 -0000 1.2
@@ -1,7 +1,53 @@
 package org.tigris.jms4spread;
 
-import javax.jms.ConnectionFactory;
+import javax.jms.JMSException;
+import javax.jms.QueueConnection;
+import javax.jms.QueueConne​ctionFactory;
+import javax.jms.TopicConnection;
+import javax.jms.TopicConne​ctionFactory;
 
+/**
+ * @author <a href="mailto:dlr@fin​emaltcoding.com">​Daniel Rall</a>
+ * @since 0.1
+ */
 public class JMSConnectionFactory
+ implements QueueConnectionFactory, TopicConnectionFactory
 {
+ /**
+ * The default user name used by {@link #createQueueConnection()}
+ * and {@link #createTopicConnection()}.
+ */
+ private static final String DEFAULT_USER_NAME = "default";
+
+
+ // ---- QueueConnectionFactory impl --------------------​------------------
+
+ public QueueConnection createQueueConnection()
+ throws JMSException
+ {
+ return createQueueConnectio​n(DEFAULT_USER_NAME,​ null);
+ }
+
+ public QueueConnection createQueueConnection(String userName, String password)
+ throws JMSException
+ {
+ // TODO
+ return null;
+ }
+
+
+ // ---- TopicConnectionFactory impl --------------------​------------------
+
+ public TopicConnection createTopicConnection()
+ throws JMSException
+ {
+ return createTopicConnectio​n(DEFAULT_USER_NAME,​ null);
+ }
+
+ public TopicConnection createTopicConnection(String userName, String password)
+ throws JMSException
+ {
+ // TODO
+ return null;
+ }
 }




--------------------​--------------------​--------------------​---------
To unsubscribe, e-mail: cvs-unsubscribe@jms4​spread.tigris.org
For additional commands, e-mail: cvs-help at jms4spread dot tigris dot org

« Previous message in topic | 1 of 1 | Next message in topic »

Messages

Show all messages in topic

CVS update: /jms4spread/src/java/org/tigris/jms4spread/ dlr Daniel Rall 2002-07-21 16:40:36 PDT
Messages per page: