| java.lang.Object com.bostechcorp.cbesb.runtime.jms.JMSHandler
All known Subclasses: com.bostechcorp.cbesb.runtime.jms.JMSProducerHandler, com.bostechcorp.cbesb.runtime.jms.JMSConsumerHandler,
JMSHandler | public class JMSHandler (Code) | | |
Field Summary | |
final protected transient Log | logger |
Constructor Summary | |
public | JMSHandler(String jndiInitialContextFactory, String jndiProviderUrl, String jndiConnectionFactoryName, String userName, String password, String destinationStyle, String consumerDestName, String producerDestName, String replyDestName) | public | JMSHandler(String jndiInitialContextFactory, String jndiProviderUrl, String jndiConnectionFactoryName, String userName, String password, String destinationStyle, String consumerDestName, String producerDestName, String replyDestName, boolean transactional) | public | JMSHandler(String jndiInitialContextFactory, String jndiProviderUrl, String jndiConnectionFactoryName, String userName, String password, String destinationStyle, String consumerDestName, String producerDestName, String replyDestName, boolean transactional, String dLQName) |
logger | final protected transient Log logger(Code) | | |
JMSHandler | public JMSHandler(String jndiInitialContextFactory, String jndiProviderUrl, String jndiConnectionFactoryName, String userName, String password, String destinationStyle, String consumerDestName, String producerDestName, String replyDestName) throws JMSException, ConfigurationException, ResourcesConnectionException(Code) | | Initialize the connection from JNDI
Parameters: jndiInitialContextFactory - Parameters: jndiProviderUrl - Parameters: jndiConnectionFactoryName - Parameters: userID - Parameters: password - Parameters: destinationStyle - "queue", "topic" Parameters: destinationName - Parameters: replyDestinationName - throws: JmsConfigurationException - throws: JmsConnectionException - |
JMSHandler | public JMSHandler(String jndiInitialContextFactory, String jndiProviderUrl, String jndiConnectionFactoryName, String userName, String password, String destinationStyle, String consumerDestName, String producerDestName, String replyDestName, boolean transactional) throws JMSException, ConfigurationException, ResourcesConnectionException(Code) | | Initialize the connection from JNDI
Parameters: jndiInitialContextFactory - Parameters: jndiProviderUrl - Parameters: jndiConnectionFactoryName - Parameters: userID - Parameters: password - Parameters: destinationStyle - "queue", "topic" Parameters: destinationName - Parameters: replyDestinationName - throws: JmsConfigurationException - throws: JmsConnectionException - |
JMSHandler | public JMSHandler(String jndiInitialContextFactory, String jndiProviderUrl, String jndiConnectionFactoryName, String userName, String password, String destinationStyle, String consumerDestName, String producerDestName, String replyDestName, boolean transactional, String dLQName) throws JMSException, ConfigurationException, ResourcesConnectionException(Code) | | Parameters: jndiInitialContextFactory - Parameters: jndiProviderUrl - Parameters: jndiConnectionFactoryName - Parameters: userName - Parameters: password - destinationStyle: "queue", "topic" Parameters: consumerDestName - Parameters: producerDestName - Parameters: replyDestName - Parameters: transactional - Parameters: dLQName - throws: JMSException - throws: ConfigurationException - throws: ResourcesConnectionException - |
close | public void close()(Code) | | |
commit | public boolean commit() throws JMSException(Code) | | |
getConnection | public Connection getConnection()(Code) | | |
getSession | public Session getSession()(Code) | | |
isClosed | public boolean isClosed()(Code) | | |
isTransactional | public boolean isTransactional() throws JMSException(Code) | | can tell wether session is transacted
true or false wether the Session is transacted throws: JMSException - |
listQueuedMessages | public Enumeration listQueuedMessages() throws javax.jms.JMSException(Code) | | throws: javax.jms.JMSException - |
messageToString | public String messageToString(Message msg) throws JMSException(Code) | | |
receiveFiltered | public Message receiveFiltered(String filter, boolean noLocal, boolean needWait) throws JMSException, ResourcesConnectionException(Code) | | Recevie message from queue or topic
throws: JMSException - throws: JmsConnectionException - |
reply | public void reply(Message originalMessage, Message replyMessage) throws JMSException, ConfigurationException(Code) | | Parameters: originalMessage - Parameters: replyMessage - throws: JmsConfigurationException - |
rollback | public boolean rollback() throws JMSException(Code) | | |
send | public Message send(String replyDestinationName, long replyTimeout, Message message) throws JMSException, ConfigurationException, ResourcesConnectionException(Code) | | Parameters: destinationStyle - Parameters: targetDestinationName - Parameters: replyTimeout - Parameters: message - throws: JMSException - throws: JmsConfigurationException - throws: JmsConnectionException - |
setConnection | public void setConnection(QueueConnection connection)(Code) | | |
setExceptionListener | public void setExceptionListener(ExceptionListener listener) throws JMSException(Code) | | listener,in case of lost connection implement the listener to takeactions throws: JMSException - |
|
|