This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Java in General and the fly likes Accessing objects already created in memory ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Accessing objects already created in memory ?" Watch "Accessing objects already created in memory ?" New topic
Author

Accessing objects already created in memory ?

omkar patkar
Ranch Hand

Joined: Aug 25, 2005
Posts: 231
Hi Guys,

please help me in this issue :-

I want to access object already created in the memory. For example, generally in web application when the server starts based upon the configuration files like web.xml OR struts-config.xml OR spring-config.xml etc., ....server creates instances of the classes mentioned in the configuration files. Now, how can i access these objects ?

Thanks in advance
Omkar Patkar.


Thanks and Regards
Omkar Patkar (SCJP 1.4)[url]http://javacollectionsnotes.blogspot.com[/url] | [url]http://omkar-myscjpexp.blogspot.com[/url]
Anupam Sinha
Ranch Hand

Joined: Apr 13, 2003
Posts: 1088
Store the reference of the object somewhere and access it.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Accessing objects already created in memory ?
 
Similar Threads
RE-POST: How to read the details of already parsed struts-config
Why it is better to make objects immutable whenever possible?
Accessing objects already created in memory ?
How to read the details of already parsed struts-config
Dynamically Load Struts Config Based On URL