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 » JMSAdmin / CNInitialContextFactory / WAS 4.0.3

Post new topic  Reply to topic
 JMSAdmin / CNInitialContextFactory / WAS 4.0.3 « View previous topic :: View next topic » 
Author Message
paton
PostPosted: Fri Jun 21, 2002 7:55 am    Post subject: JMSAdmin / CNInitialContextFactory / WAS 4.0.3 Reply with quote

Newbie

Joined: 21 Jun 2002
Posts: 6

Hi

I've seen other posts refering to the error message:

"JNDI initialisation failed, please check your JNDI settings and service"

when running the JMSAdmin tool.

Has anyone had this using the com.ibm.ejs.ns.jndi.CNInitialContextFactory with WAS 4.0.3 (and found a solution)?

I have seen the posts / tutorials refering to the Persistent Name Server in VAJ, but want to know if the JMSAdmin tool can use WAS 4.0.3 was the name service.

Thanks
Paul
Back to top
View user's profile Send private message Send e-mail
jlamond
PostPosted: Fri Jun 21, 2002 8:01 am    Post subject: Reply with quote

Voyager

Joined: 28 May 2002
Posts: 94
Location: Paris

With WebSphere 4.x you should use : com.ibm.websphere.naming.WsnInitialContextFactory as your context factory. I have to admit that the documentation is not great but it does work fine.
_________________
Jean-Marc
Back to top
View user's profile Send private message Send e-mail
paton
PostPosted: Fri Jun 21, 2002 8:17 am    Post subject: WsnInitialContextFactory Reply with quote

Newbie

Joined: 21 Jun 2002
Posts: 6

Hi Jean-Marc

thanks for the quick reply.

I have tried using

com.ibm.websphere.naming.WsnInitialContextFactory

but then the JMSAdmin tool gives me a

javax.jms.JMSException: Unsupported JNDI service provider.

Thanks
Paul
Back to top
View user's profile Send private message Send e-mail
jlamond
PostPosted: Fri Jun 21, 2002 8:40 am    Post subject: Reply with quote

Voyager

Joined: 28 May 2002
Posts: 94
Location: Paris

Hi Paul,

Can you provide me with a summary of your jmsadmin.config (only revelant part) as well as what you are currently using as classpath.

Regards,

JM
_________________
Jean-Marc
Back to top
View user's profile Send private message Send e-mail
jlamond
PostPosted: Fri Jun 21, 2002 8:44 am    Post subject: Reply with quote

Voyager

Joined: 28 May 2002
Posts: 94
Location: Paris

Here my setting :

INITIAL_CONTEXT_FACTORY=com.ibm.websphere.naming.WsnInitialContextFactory

PROVIDER_URL=iiop://localhost/

And my system classpath :

C:\MQSeries\Java\Lib;C:\SQLLIB\java\db2java.zip;C:\SQLLIB\java\runtime.zip;C:\SQLLIB\java\sqlj.zip;C:\SQLLIB\bin;c:\MQSeries\java\lib\com.ibm.mq.jar;c:\MQSeries\java\lib\com.ibm.mqjms.jar;c:\MQSeries\java\lib\connector.jar;c:\was4\lib\ns.jar;c:\was4\lib\j2ee.jar

Don't forget that your WAS admin server must be running in order to access the WAS NameSpace

Regards,

JM
_________________
Jean-Marc
Back to top
View user's profile Send private message Send e-mail
paton
PostPosted: Fri Jun 21, 2002 9:00 am    Post subject: JMSAdmin / WsnInitialContextFactory Reply with quote

Newbie

Joined: 21 Jun 2002
Posts: 6

Hi.

My config is the same (below), and I still get:

javax.jms.JMSException: Unsupported JNDI service provider: com.ibm.websphere.naming.WsnInitialContextFactory

It could be that the version of ma88 which is installed is an older one than you have. The setup.ini file reads:

MsiVersion=1.10.1029.1

Thanks
Paul

************
config:

PROVIDER_URL=iiop://localhost/
INITIAL_CONTEXT_FACTORY=com.ibm.websphere.naming.WsnInitialContextFactory

CLASSPATH: I included all the .jars you mentioned, and in the same order, but took the liberty of not looking for the SQLLIB entries:

set LIB=C:\MQSeries\Java\lib\
set CP=%CP%;%LIB%com.ibm.mq.jar
set CP=%CP%;%LIB%com.ibm.mqjms.jar
set CP=%CP%;%LIB%connector.jar
set CP=%CP%;%LIB%ns.jar
set CP=%CP%;%LIB%j2ee.jar
Back to top
View user's profile Send private message Send e-mail
jlamond
PostPosted: Fri Jun 21, 2002 9:16 am    Post subject: Reply with quote

Voyager

Joined: 28 May 2002
Posts: 94
Location: Paris

I'm using the exact same version as you do and I just (yesterday) to WAS 4.0.3. and everything is working, and the process was much easier that the one from WAS 3.5.4. By shure to also have mqseries\java\lib as part of your execution path "PATH" as well as the websphere\appserver\jre\bin.

here's my complete jmsadmin.bat file :

@echo off

rem ----------------------------------------------
rem IBM MQSeries JMS Admin Tool Execution Script
rem for Windows NT
rem
rem Note that the properties passed to the java
rem program are defaults, and should be edited
rem to suit your installation if necessary
rem ----------------------------------------------

cls
java -DMQJMS_LOG_DIR="%MQ_JAVA_INSTALL_PATH%\log" -DMQJMS_TRACE_DIR="%MQ_JAVA_INSTALL_PATH%\trace" -DMQJMS_INSTALL_PATH="%MQ_JAVA_INSTALL_PATH%" com.ibm.mq.jms.admin.JMSAdmin %1 %2 %3 %4 %5
_________________
Jean-Marc
Back to top
View user's profile Send private message Send e-mail
jlamond
PostPosted: Fri Jun 21, 2002 9:22 am    Post subject: Reply with quote

Voyager

Joined: 28 May 2002
Posts: 94
Location: Paris

Also, don't forget (i'm referring to your classpath), that the ns.jar and j2ee.jar must come from the WAS 4.x directory and not the MQSeries\java directory.
_________________
Jean-Marc
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 » JMSAdmin / CNInitialContextFactory / WAS 4.0.3
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.