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 » JMS with file system as service provider

Post new topic  Reply to topic
 JMS with file system as service provider « View previous topic :: View next topic » 
Author Message
pmarie
PostPosted: Fri Apr 05, 2002 5:12 am    Post subject: Reply with quote

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
View user's profile Send private message
abmanesh
PostPosted: Fri Apr 05, 2002 6:28 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
bower5932
PostPosted: Fri Apr 05, 2002 8:40 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger
pmarie
PostPosted: Fri Apr 05, 2002 8:42 am    Post subject: Reply with quote

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
View user's profile Send private message
StefanSievert
PostPosted: Fri Apr 05, 2002 10:19 am    Post subject: Reply with quote

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
View user's profile Send private message
ShereneJames
PostPosted: Sun Apr 07, 2002 10:09 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
pmarie
PostPosted: Sun Apr 07, 2002 2:25 pm    Post subject: Reply with quote

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
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 » JMS with file system as service provider
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.