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 » how to use JMSAdmin?

Post new topic  Reply to topic
 how to use JMSAdmin? « View previous topic :: View next topic » 
Author Message
mailtosathiyan@gmail.com
PostPosted: Sun Aug 21, 2005 10:43 pm    Post subject: how to use JMSAdmin? Reply with quote

Novice

Joined: 02 Aug 2005
Posts: 13

hi
when i used JMSAdmin to create QCF nd Q
with this option in JMSAdmin.config
INITIAL_CONTEXT_FACTORY=com.sun.jndi.fscontext.RefFSContextFactory
PROVIDER_URL=file:/C:/myjndi
it's working fine

but with this option in JMSAdmin config
INITIAL_CONTEXT_FACTORY=com.ibm.websphere.naming.WsnInitialContextFactory
PROVIDER_URL=iiop://localhost:2809
i m getting the error like this


5724-H72, 5655-L82, 5724-L26 (c) Copyright IBM Corp. 2002,2005. All Rights Reser
ved.
Starting Websphere MQ classes for Java(tm) Message Service Administration

Initializing JNDI Context...
INITIAL_CONTEXT_FACTORY: com.ibm.websphere.naming.WsnInitialContextFactory
PROVIDER_URL: iiop://localhost:2809
Class specified by INITIAL_CONTEXT_FACTORY not found in CLASSPATH

Error: java.lang.ClassNotFoundException: com.ibm.websphere.naming.WsnInitialContextFactory
so what jar i have set in the classpath?
regards
sathiya
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Mon Aug 22, 2005 3:28 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

JMSAdmin is really only good for two things:
  1. File system contexts
  2. WAS version 4 or less


It will not create permanent entries in the JNDI of WAS version 5 or later.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
mailtosathiyan@gmail.com
PostPosted: Mon Aug 22, 2005 4:29 am    Post subject: how to run JMSAdmin using this option? Reply with quote

Novice

Joined: 02 Aug 2005
Posts: 13

my problem is i m unable to run JMSAdmin with following option in JMSAdmin.config

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

getting error like this
Initializing JNDI Context...
INITIAL_CONTEXT_FACTORY: com.ibm.websphere.naming.WsnInitialContextFactory
PROVIDER_URL: iiop://localhost:2809
Class specified by INITIAL_CONTEXT_FACTORY not found in CLASSPATH

how to resolve this and run JMSAdmin?
anyone tell me what jar files i have to add to the classpath to run JMSAdmin using above option
?
regards
sathiya
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Mon Aug 22, 2005 4:49 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

Try running <WAS-install>/bin/setupCmdLine(.sh/.bat) and then running JMSAdmin.

But again, if you're trying to create resources in WAS 5 or later, you *should not* use JMSAdmin.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Mon Aug 22, 2005 6:15 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

Also,
Using Java -> Guidance For Users -> Prerequisites wrote:
To use the WebSphere MQ JMS administration tool, you need one of the following service provider packages, supplied with WebSphere MQ:

Lightweight Directory Access Protocol (LDAP) - ldap.jar, providerutil.jar.
File system - fscontext.jar, providerutil.jar.
These packages provide the Java(TM) Naming and Directory Service (JNDI) service. This is the resource that stores physical representations of the administered objects. Users of WebSphere MQ JMS probably use an LDAP server for this purpose, but the tool also supports the use of the file system context service provider. If you use an LDAP server, configure it to store JMS objects. For information to assist with this configuration, see the documentation for your LDAP server.

_________________
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 » how to use JMSAdmin?
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.