|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atomikos.jms.AbstractConnectionFactoryBean com.atomikos.jms.TopicConnectionFactoryBean
public class TopicConnectionFactoryBean
Use this class to access JMS topics within your JTA transactions: rollback of the transaction will also cancel any messages sent or received. Instances of this class need a JMS vendor-specific instance of XATopicConnectionFactory to work with. Check your JMS-vendor's documentation on how to do that. Instances can be set up in a GUI wizard tool and saved on disk or in JNDI. No explicit registration with the transaction engine is necessary: this class does everything automatically. As soon as an instance is created, it is fully capable of interacting with the Atomikos transaction manager, and will transparently take part in active transactions.
Note: any property changes made AFTER getting the first connection will NOT have any effect!
Topic functionality in this product was sponsored by Webtide.
Field Summary |
---|
Fields inherited from class com.atomikos.jms.AbstractConnectionFactoryBean |
---|
resourceName_, xaFactoryJndiName_ |
Constructor Summary | |
---|---|
TopicConnectionFactoryBean()
|
Method Summary | |
---|---|
protected void |
checkSetup()
|
javax.jms.Connection |
createConnection()
Creates a default connection. |
javax.jms.Connection |
createConnection(String userName,
String password)
Creates a default connection with given user credentials. |
javax.jms.TopicConnection |
createTopicConnection()
Creates a default topic connection. |
javax.jms.TopicConnection |
createTopicConnection(String userName,
String password)
Creates a topic connection with given user credentials. |
boolean |
equals(Object o)
|
javax.jms.XATopicConnectionFactory |
getXaTopicConnectionFactory()
Get the XATopicConnectionFactory as previously set. |
int |
hashCode()
|
void |
setXaTopicConnectionFactory(javax.jms.XATopicConnectionFactory factory)
Sets the XATopicConnectionFactory to use. |
Methods inherited from class com.atomikos.jms.AbstractConnectionFactoryBean |
---|
getReference, getResourceName, getXaFactoryJndiName, init, setResourceName, setXaFactoryJndiName |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TopicConnectionFactoryBean()
Method Detail |
---|
protected void checkSetup() throws javax.jms.JMSException
checkSetup
in class AbstractConnectionFactoryBean
javax.jms.JMSException
public void setXaTopicConnectionFactory(javax.jms.XATopicConnectionFactory factory)
xaFactory
- The object to use.public javax.jms.XATopicConnectionFactory getXaTopicConnectionFactory()
public javax.jms.TopicConnection createTopicConnection() throws javax.jms.JMSException
createTopicConnection
in interface javax.jms.TopicConnectionFactory
javax.jms.JMSException
public javax.jms.TopicConnection createTopicConnection(String userName, String password) throws javax.jms.JMSException
createTopicConnection
in interface javax.jms.TopicConnectionFactory
javax.jms.JMSException
public javax.jms.Connection createConnection() throws javax.jms.JMSException
createConnection
in interface javax.jms.ConnectionFactory
javax.jms.JMSException
public javax.jms.Connection createConnection(String userName, String password) throws javax.jms.JMSException
createConnection
in interface javax.jms.ConnectionFactory
javax.jms.JMSException
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |