Posted: Tue May 06, 2008 2:19 am Post subject: MQ V7 Beta JMS setup
Knight
Joined: 27 Oct 2003 Posts: 561
I'm using MQ V7 Beta and ran the lab which comes with the education.beta.zip. I used the new feature of creating JMS administered objects from MQ Explorer (context, connection factory, destination, etc). Then as instructed I ran the sender.java program provided in the lab (this program was run from the java perspective window of MQ explorer/eclipse) - it worked and demonstrated that the sender.java program could get a connection with a queue open for output and queue messages to it.
Next, I created a project in Netbeans and ran the sender.java program from the Netbeans IDE. I get the following:
My question: what steps should I take in order for the JMS administered objects created in MQ V7 MQ Explorer to be made available to programs running from non-eclipse IDEs or stand alone?
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
at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:645)
at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:288)
at javax.naming.InitialContext.getURLOrDefaultInitCtx(InitialContext.java:325)
at javax.naming.InitialContext.lookup(InitialContext.java:392)
at sender.send(sender.java:37)
at sender.main(sender.java:19)
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