Posted: Tue Jul 17, 2007 7:28 am Post subject: NoInitialContextException
Novice
Joined: 28 Jun 2007 Posts: 13
I am trying to put the messages into the queue using JMS. I am using java class with Main method. But I am getting below error when I am trying to create a queue connection. Please let me know what should i set up.
javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial
What InitialContextFactory are you trying to use, from your standalone non-J2EE/Java Enterprise application? _________________ I am *not* the model of the modern major general.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum