ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » IBM MQ Java / JMS » MQ V7 Beta JMS setup

Post new topic  Reply to topic
 MQ V7 Beta JMS setup « View previous topic :: View next topic » 
Author Message
ivanachukapawn
PostPosted: Tue May 06, 2008 2:19 am    Post subject: MQ V7 Beta JMS setup Reply with quote

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)
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Tue May 06, 2008 1:31 pm    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

Use a file JNDI... : using Java manual and JMSAdmin
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » MQ V7 Beta JMS setup
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.