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 » NoInitialContextException

Post new topic  Reply to topic
 NoInitialContextException « View previous topic :: View next topic » 
Author Message
skurka
PostPosted: Tue Jul 17, 2007 7:28 am    Post subject: NoInitialContextException Reply with quote

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

Thanks
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Tue Jul 17, 2007 8:15 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

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.
Back to top
View user's profile Send private message
skurka
PostPosted: Tue Jul 17, 2007 1:52 pm    Post subject: Reply with quote

Novice

Joined: 28 Jun 2007
Posts: 13

Yes.
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Tue Jul 17, 2007 2:14 pm    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

What Context Factory?
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » NoInitialContextException
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.