This week's book giveaway is in the Java in General forum.
We're giving away four copies of Think Java: How to Think Like a Computer Scientist and have Allen B. Downey & Chris Mayfield on-line!
See this thread for details.
Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General 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