posted 19 years ago
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.