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.
Any one could help?
Thanks in advance.
Regards
Michal Jacykiewicz
------------------------------------------------------
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/