|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.mq.SpyConnectionFactory
public class SpyConnectionFactory
This class implements javax.jms.TopicConnectionFactory and
javax.jms.QueueConnectionFactory.
| Field Summary | |
|---|---|
protected GenericConnectionFactory |
factory
The delegate factory |
| Constructor Summary | |
|---|---|
SpyConnectionFactory(GenericConnectionFactory factory)
Create a new SpyConnectionFactory |
|
SpyConnectionFactory(Properties config)
Create a new SpyConnectionFactory |
|
| Method Summary | |
|---|---|
javax.jms.Connection |
createConnection()
|
javax.jms.Connection |
createConnection(String userName,
String password)
|
javax.jms.QueueConnection |
createQueueConnection()
|
javax.jms.QueueConnection |
createQueueConnection(String userName,
String password)
|
javax.jms.TopicConnection |
createTopicConnection()
|
javax.jms.TopicConnection |
createTopicConnection(String userName,
String password)
|
Properties |
getProperties()
For testing |
Reference |
getReference()
|
protected javax.jms.Connection |
internalCreateConnection(int type)
Create a connection |
protected javax.jms.Connection |
internalCreateConnection(int type,
String userName,
String password)
Create a connection |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected GenericConnectionFactory factory
| Constructor Detail |
|---|
public SpyConnectionFactory(GenericConnectionFactory factory)
factory - the delegate factorypublic SpyConnectionFactory(Properties config)
config - the configuration| Method Detail |
|---|
public Properties getProperties()
public Reference getReference()
throws NamingException
getReference in interface ReferenceableNamingException
public javax.jms.Connection createConnection()
throws javax.jms.JMSException
createConnection in interface javax.jms.ConnectionFactoryjavax.jms.JMSException
public javax.jms.Connection createConnection(String userName,
String password)
throws javax.jms.JMSException
createConnection in interface javax.jms.ConnectionFactoryjavax.jms.JMSException
public javax.jms.QueueConnection createQueueConnection()
throws javax.jms.JMSException
createQueueConnection in interface javax.jms.QueueConnectionFactoryjavax.jms.JMSException
public javax.jms.QueueConnection createQueueConnection(String userName,
String password)
throws javax.jms.JMSException
createQueueConnection in interface javax.jms.QueueConnectionFactoryjavax.jms.JMSException
public javax.jms.TopicConnection createTopicConnection()
throws javax.jms.JMSException
createTopicConnection in interface javax.jms.TopicConnectionFactoryjavax.jms.JMSException
public javax.jms.TopicConnection createTopicConnection(String userName,
String password)
throws javax.jms.JMSException
createTopicConnection in interface javax.jms.TopicConnectionFactoryjavax.jms.JMSException
protected javax.jms.Connection internalCreateConnection(int type)
throws javax.jms.JMSException
type - the type
javax.jms.JMSException - for any error
protected javax.jms.Connection internalCreateConnection(int type,
String userName,
String password)
throws javax.jms.JMSException
type - the typeuserName - the user namepassword - the password
javax.jms.JMSException - for any error
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||