This content has been marked as final.
Show 2 replies
-
1. Re: JMS communication between Tomcat app and JBOSS AS 4.2.2`
tpawankumar Feb 14, 2008 11:20 PM (in response to jaya_srini)Hi,
I have recieved messages on my tomcat application.Following is the codeProperties props = new Properties(); props.setProperty("java.naming.factory.initial","org.jnp.interfaces.NamingContextFactory"); props.setProperty("java.naming.factory.url.pkgs", "org.jboss.naming"); props.setProperty("java.naming.provider.url", "jnp://localhost:1099"); Context context = new InitialContext(props); TopicConnectionFactory tcf = (TopicConnectionFactory) context.lookup("TopicConnectionFactory");; conn = tcf.createTopicConnection(); topic = (Topic) context.lookup("topic/testTopic"); session = conn.createTopicSession(false, TopicSession.AUTO_ACKNOWLEDGE); conn.start(); TopicSubscriber recv = session.createSubscriber(topic); recv.setMessageListener(this);
For listening messages i have placed the following jars in commom/lib
jbossall-client.jar and jnp-client.jar.
My application is able to recieve messages from Jboss JMS.
Hope this helps you. -
2. Re: JMS communication between Tomcat app and JBOSS AS 4.2.2`
jaya_srini Feb 15, 2008 8:58 PM (in response to jaya_srini)thank you very much!!
jaya