|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.atomikos.jms.AbstractConnectionFactoryBean
com.atomikos.jms.TopicConnectionFactoryBean
public class TopicConnectionFactoryBean
Copyright © 2006, Atomikos. All rights reserved. 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_, xidFactory_ |
Constructor Summary | |
---|---|
TopicConnectionFactoryBean()
|
Method Summary | |
---|---|
protected void |
checkSetup()
|
Connection |
createConnection()
Creates a default connection. |
Connection |
createConnection(String userName,
String password)
Creates a default connection with given user credentials. |
TopicConnection |
createTopicConnection()
Creates a default topic connection. |
TopicConnection |
createTopicConnection(String userName,
String password)
Creates a topic connection with given user credentials. |
boolean |
equals(Object o)
|
XATopicConnectionFactory |
getXaTopicConnectionFactory()
Get the XATopicConnectionFactory as previously set. |
int |
hashCode()
|
void |
setXaTopicConnectionFactory(XATopicConnectionFactory factory)
Sets the XATopicConnectionFactory to use. |
Methods inherited from class com.atomikos.jms.AbstractConnectionFactoryBean |
---|
getReference, getResourceName, getXaFactoryJndiName, getXidFactory, init, setResourceName, setXaFactoryJndiName, setXidFactory |
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 JMSException
checkSetup
in class AbstractConnectionFactoryBean
JMSException
public void setXaTopicConnectionFactory(XATopicConnectionFactory factory)
xaFactory
- The object to use.public XATopicConnectionFactory getXaTopicConnectionFactory()
public TopicConnection createTopicConnection() throws JMSException
createTopicConnection
in interface TopicConnectionFactory
JMSException
public TopicConnection createTopicConnection(String userName, String password) throws JMSException
createTopicConnection
in interface TopicConnectionFactory
JMSException
public Connection createConnection() throws JMSException
createConnection
in interface ConnectionFactory
JMSException
public Connection createConnection(String userName, String password) throws JMSException
createConnection
in interface ConnectionFactory
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 |