• Post Reply Bookmark Topic Watch Topic
  • New Topic

Help running simple JMS

 
Greg Fox
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Context context = new InitialContext();
ConnectionFactory connectionFactory =
(ConnectionFactory)context.lookup("ConnectionFactory");
Connection connection = connectionFactory.createConnection();
session = connection.createSession(false,
Session.AUTO_ACKNOWLEDGE);

I am trying to run a simple JMS application using the Sun AppServer 8.

I constantly get a NoInitialContextException. I know about setting up properties and passing them as a parameter to the InitialContext constructor, but I am not sure what the appropriate information is for the default server.

Can someone give me a quick tutorial on how to run a simple JMS chat app. using Sun AppServer 8? Please provide me with the properties that I would need to set for the InitialContext.

All I really need to do is verify that my code works and I can be done for the day.

Thanks in advance.
 
Zeeshan Faisal
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Kindly explain your question in detail with some more code
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!