| org.jboss.mq.il.ha.examples.HAJMSClient
HAJMSClient | public class HAJMSClient extends ServiceMBeanSupport implements MessageListener,ExceptionListener,HAJMSClientMBean(Code) | | Helps to manually test the HAIL
author: Ivelin Ivanov |
disconnect | public void disconnect() throws JMSException(Code) | | |
getConnectionException | public String getConnectionException()(Code) | | |
getLastMessage | public String getLastMessage() throws JMSException(Code) | | |
onException | public void onException(JMSException connEx)(Code) | | Acknowledges connenction exception.
Should be invoked every time the HAIL singleton moves.
|
onMessage | public void onMessage(Message msg)(Code) | | Handle JMS message
See Also: javax.jms.MessageListener.onMessage(javax.jms.Message) |
publishMessageToTopic | public void publishMessageToTopic(String text) throws JMSException(Code) | | |
sendMessageToQueue | public void sendMessageToQueue(String text) throws JMSException(Code) | | |
startService | protected void startService() throws Exception(Code) | | create connection, sessions and subscribe for topic and queue
|
stopService | protected void stopService() throws Exception(Code) | | unsubscribe from topic, queue,
stop sessions and connection
|
|
|