Forums Register Login
Easy JNDI bind problem
I am attempting to bind an object with the name "myapp/myobject" to the jndi tree using ic.bind("myapp/myobject",myObject).
When I do this, a NameNotFoundException is raised. Looking into the jndi documentation, your jndi name cannon contain the "/" or "." characters. How do I bind this object then?
You need to create a "subcontext" named "myapp" and then bind with the name "myobject" into that subcontext. Alternatively you can create a Name object by adding two parts into it.
Wink, wink, nudge, nudge, say no more ... https://richsoil.com/cards

This thread has been viewed 490 times.

All times above are in ranch (not your local) time.
The current ranch time is
May 20, 2018 04:26:59.