Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Easy JNDI bind problem

 
Joshua White
Ranch Hand
Posts: 97
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
All,
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?
Thanks,
Joshua
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
it's a teeny, tiny, wafer thin ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!