No. I cant understand.

Is your "classes/com/swiftmq/jndi/" path
is inside **a jar file**. Then it wont work.

If it is an ordinary dierctory, give
"classes/com/swiftmq/jndi/" in your
**CLASSPATH**.

Balakrishnan.

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Michal
Jacykiewicz
Sent: Friday, June 22, 2001 6:01 PM
To: [EMAIL PROTECTED]
Subject: [developers] File jndiprovider.properties is not read


Thanks!
Now it works - but only if the file jndi.properties is located in
'classes' directory. Still does not work if it is in
classes/com/swiftmq/jndi/jndi.properties file. I've got the same
exception.

On Friday, June 22, 2001, Balakrishnan wrote:
> But I think the file name should be jndi.properties
> Ofcouse, it has to be in your classpath.

> It works fine for me!!!

> Balakrishnan.

> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Michal
> Jacykiewicz
> Sent: Friday, June 22, 2001 4:04 PM
> To: [EMAIL PROTECTED]
> Subject: [developers] File jndiprovider.properties is not read

> Please take a look at documentation of javax.naming.Context interface
> and paragraph "Resource Files". There is clearly stated that
> 'environment' for InitialContext might be in resource file (in fact
> properties file). I would like to put there something like this
> java.naming.provider.url=smqp://localhost:4001/timeout=10000
> and not to hard-code it in java source file.
> But it doesnt't work. I've got "javax.naming.NamingException: missing
> JNDI environment property: Context.PROVIDER_URL
(java.naming.provider.url)"
> I have tried to locations of file jndiprovider.properties :
> classes/jndiprovider.properties
> and classes/com/swiftmq/jndi/jndiprovider.properties
> where 'classes' is directory where compiled classes are stored.
> But in both cases it does not work.


------------------------------------------------------
SwiftMQ developers mailing list * http://www.swiftmq.com
To unsubscribe from this list, send an eMail to
[EMAIL PROTECTED] and write in the body of your message:
UNSUBSCRIBE developers <your-email-address>
Archive: http://www.mail-archive.com/developers@mail.iit.de/


------------------------------------------------------
SwiftMQ developers mailing list * http://www.swiftmq.com
To unsubscribe from this list, send an eMail to 
[EMAIL PROTECTED] and write in the body of your message:
UNSUBSCRIBE developers <your-email-address>
Archive: http://www.mail-archive.com/developers@mail.iit.de/




Reply via email to