public class JMSConnectionHolder extends Object
Constructor and Description |
---|
JMSConnectionHolder(JMSEndpoint jmsEndpoint,
hermes.Hermes hermes,
boolean isTopicDomain,
String clientID,
String username,
String password) |
Modifier and Type | Method and Description |
---|---|
void |
closeAll()
closes sessions and connections
|
String |
getClientID() |
javax.jms.Connection |
getConnection() |
javax.jms.ConnectionFactory |
getConnectionFactory() |
hermes.Hermes |
getHermes() |
JMSEndpoint |
getJmsEndpoint() |
javax.jms.Queue |
getQueue(String name)
return queue by name
|
javax.jms.Session |
getSession() |
javax.jms.Topic |
getTopic(String name)
return topic by name
|
public JMSConnectionHolder(JMSEndpoint jmsEndpoint, hermes.Hermes hermes, boolean isTopicDomain, String clientID, String username, String password) throws javax.jms.JMSException
jmsEndpoint
- hermes
- createQueueConnection
- createTopicConnection
- clientID
- username
- password
- javax.jms.JMSException
public javax.jms.ConnectionFactory getConnectionFactory()
public javax.jms.Connection getConnection()
public String getClientID()
public hermes.Hermes getHermes()
public JMSEndpoint getJmsEndpoint()
public javax.jms.Topic getTopic(String name) throws javax.jms.JMSException, NamingException
javax.jms.JMSException
- , NamingExceptionNamingException
public javax.jms.Queue getQueue(String name) throws javax.jms.JMSException, NamingException
javax.jms.JMSException
- , NamingExceptionNamingException
public javax.jms.Session getSession() throws javax.jms.JMSException
javax.jms.JMSException
public void closeAll()
Copyright © 2019. All Rights Reserved.