The Artima Developer Community
Sponsored Link

Java Answers Forum
J M S Topic Connectivity Help

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Varanasi R Pushpeswar

Posts: 6
Nickname: ravieswar
Registered: May, 2004

J M S Topic Connectivity Help Posted: Dec 30, 2004 3:31 AM
Reply to this message Reply
Advertisement
Hi i have got prob..with jms topic establish....,

thisis the code i have written in my sessionbean class...

Context t = new InitialContext();
System.out.println("hi u r in hellosessionbean after context"+message);

TopicConnectionFactory tpc = (TopicConnectionFactory) t.lookup("helloconfactory");
System.out.println("hi u r in hellosessionbean after connectionfactory");



TopicConnection con = tpc.createTopicConnection(); con.start();
System.out.println("hi u r in hellosessionbean after topic onnection");

TopicSession sess = con.createTopicSession(false,Session.AUTO_ACKNOWLEDGE);
System.out.println("hi u r in hellosessionbean after topic sesson");

===================
Problem down below
=================================================
Topic topic = (Topic) t.lookup("hellotopic");
==================================================
System.out.println("hi u r in hellosessionbean after topic ");


this is the piece of code i worte to create the topic connection...

i dont understand it is stuck before topic creation where ever i put its declaration....

...?

Topic: Package problems... Previous Topic   Next Topic Topic: J M S Help

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use