Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JNDI Binding

 
Anant Kabra
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I have a question regarding storing objects in the JNDI name space...
After I have stored an object in JNDI, when I do a lookup, do I get a reference to this object or do I get a copy of the object.
More specifically, if I do a lookup, and make a change to the state of the object, is this change available to another lookup of the same object or do I have to rebind the object to JNDI to persist the change?
Conversely, lets say two classes have done a JNDI lookup on the same object. If one class makes a change to it's reference of the object, is this change available through the reference that the other class already have?
Thanks,
-- Anant
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic