| Author |
accessing beans, declared in spring-config.xml
|
omkar patkar
Ranch Hand
Joined: Aug 25, 2005
Posts: 231
|
|
Hello Guys, I am using Struts 1.2.8 and spring2.0. I declare my beans in the spring-config.xml file which is loaded into the memory when the server is started. Now if in action class i want to access a bean already instantiated in the memory when the xml file was loaded. Can any one tell me which class in spring i can use for this purpose ? Many thanks in advance. mkar Patkar
|
Thanks and Regards
Omkar Patkar (SCJP 1.4)[url]http://javacollectionsnotes.blogspot.com[/url] | [url]http://omkar-myscjpexp.blogspot.com[/url]
|
 |
Herman Schelti
Ranch Hand
Joined: Jul 17, 2006
Posts: 387
|
|
hi Omkar, a small example from the book Pro Spring (chapter 19) You won't even need this if you declare your Struts Actions as Spring Beans Herman
|
 |
 |
|
|
subject: accessing beans, declared in spring-config.xml
|
|
|