|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ow2.jotm.jms.JmsManagerImpl
public class JmsManagerImpl
JmsManager implementation This singleton class must exist in each jvm that want to use JMS. It relies on another class that implements JmsAdministration for example: JmsAdminForJoram.
| Method Summary | |
|---|---|
Queue |
createQueue(String name)
Creation of an administered Object Queue and bind it in the registry |
Topic |
createTopic(String name)
Creation of an administered Object Topic and bind it in the registry |
ConnectionFactory |
getConnectionFactory()
Get the unique ConnectionFactory |
static JmsManager |
getInstance()
Get the JmsManager. |
QueueConnectionFactory |
getQueueConnectionFactory()
|
TopicConnectionFactory |
getTopicConnectionFactory()
Get the unique TopicConnectionFactory |
static TransactionManager |
getTransactionManager()
|
void |
init(Class cl,
boolean collocated,
String url,
TransactionManager trm)
Initialization of the JmsManager |
void |
stop()
Terminate the administering process |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static JmsManager getInstance()
public static TransactionManager getTransactionManager()
public void init(Class cl,
boolean collocated,
String url,
TransactionManager trm)
throws Exception
init in interface JmsManagercl - JmsAdministration classcollocated - true if collocated, false if remote.url - In case of remote: the URL.trm - TransactionManager
Exception - could not init the JmsManager
public Queue createQueue(String name)
throws Exception
createQueue in interface JmsManagername - JNDI name.
Exception
public Topic createTopic(String name)
throws Exception
createTopic in interface JmsManagername - JNDI name.
Exception
public ConnectionFactory getConnectionFactory()
throws Exception
getConnectionFactory in interface JmsManagerException
public QueueConnectionFactory getQueueConnectionFactory()
throws Exception
getQueueConnectionFactory in interface JmsManagerException
public TopicConnectionFactory getTopicConnectionFactory()
throws Exception
getTopicConnectionFactory in interface JmsManagerException
public void stop()
throws Exception
stop in interface JmsManagerException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||