Author |
Message
|
pmarie |
Posted: Fri Apr 05, 2002 5:12 am Post subject: |
|
|
Novice
Joined: 04 Apr 2002 Posts: 23
|
I tried to use the MQS JMS API with JNDI and a file system as service provider. I was not able to make it work. This is what I set in the JMSAdmin.config:
INITIAL_CONTEXT_FACTORY=com.sun.jndi.fscontext.RefFSContextFactory
PROVIDER_URL=file://D:/MQSeries/PMStuff/SMABTP
SECURITY_AUTHENTICATION=none
When starting JMSAdmin, I always get the following error:
"JNDI initialisation failed, please check your JNDI settings and service"
I tried several syntaxes for the PROVIDER_URL parameter, but none of them worked.
Any idea?
Patrick MARIE |
|
Back to top |
|
 |
abmanesh |
Posted: Fri Apr 05, 2002 6:28 am Post subject: |
|
|
Apprentice
Joined: 06 Nov 2001 Posts: 39
|
May be you have tried this. The syntax for the provider url has only one forward slash not two
file:/drive:/path
|
|
Back to top |
|
 |
bower5932 |
Posted: Fri Apr 05, 2002 8:40 am Post subject: |
|
|
 Jedi Knight
Joined: 27 Aug 2001 Posts: 3023 Location: Dallas, TX, USA
|
Here is what I have in my jmsadmin.config:
INITIAL_CONTEXT_FACTORY=com.sun.jndi.fscontext.RefFSContextFactory
PROVIDER_URL=file:c://support//jms//2002
SECURITY_AUTHENTICATION=none
and it works fine. |
|
Back to top |
|
 |
pmarie |
Posted: Fri Apr 05, 2002 8:42 am Post subject: |
|
|
Novice
Joined: 04 Apr 2002 Posts: 23
|
I have tried it. It does not work either.
The directory I point to is empty because I am in the stage of creating a new JNDI environment. Is this correct or should I initialize the JNDI environment with another command? |
|
Back to top |
|
 |
StefanSievert |
Posted: Fri Apr 05, 2002 10:19 am Post subject: |
|
|
 Partisan
Joined: 28 Oct 2001 Posts: 333 Location: San Francisco
|
Quote: |
On 2002-04-05 08:42, pmarie@fr.ibm.com wrote:
I have tried it. It does not work either.
The directory I point to is empty because I am in the stage of creating a new JNDI environment. Is this correct or should I initialize the JNDI environment with another command?
|
Patrick,
is the class com.sun.jndi.fscontext.RefFSContextFactory accessible (CLASSPATH)?
Do you get any other error messages/exceptions?
What is your runtime environment, are you running this from within an IDE (eg. Visual Age for Java) or from the command line?
_________________
Stefan Sievert
IBM Certified * MQSeries
In the end everything is right. If not, it's not the end.
[ This Message was edited by: StefanSievert on 2002-04-05 10:20 ] |
|
Back to top |
|
 |
ShereneJames |
Posted: Sun Apr 07, 2002 10:09 am Post subject: |
|
|
Newbie
Joined: 01 Apr 2002 Posts: 3
|
pmarie,
This syntax is correct.It works for me.
INITIAL_CONTEXT_FACTORY=com.sun.jndi.fscontext.RefFSContextFactory
PROVIDER_URL=file://D:/MQSeries/PMStuff/SMABTP
SECURITY_AUTHENTICATION=none
1.check classpath for com.sun.jndi.fscontext.RefFSContextFactory.
2.And you have to create your staging directory D:/MQSeries/PMStuff/SMABTP before you run JMSAdmin tool |
|
Back to top |
|
 |
pmarie |
Posted: Sun Apr 07, 2002 2:25 pm Post subject: |
|
|
Novice
Joined: 04 Apr 2002 Posts: 23
|
Yes, it does work now.
I indeed missed the java.sun.jndi.fscontext.RefFSContextFactory in my classpath.
Thanks a lot.
Patrick MARIE |
|
Back to top |
|
 |
|