| Author |
Spring Configurations
|
Shrinivas Mujumdar
Ranch Hand
Joined: Aug 27, 2004
Posts: 328
|
|
Hello Ranchers, I am creating one war file which consisits of many jars in its lib directory.I have two JAR Files say A.jar & B.jar where indivisually these jar files contain springConfig.xml & inside these files i am defining one class using <bean id="abc".....> tag...Now interesting stuff is in both config files i need the same class (which is existing in some 3rd Jar say C.jar)so i have defined it in each file with same id(attribue of bean tag)..Initially i thought it won't work..but its working fine... I am unable to get whether two different instances are being created or spring is using same instance for both JARs(A & B) Ya One more thing is I have placed applicationContext.xml along with web.xml (i.e.under WEB-INF) which points to inividual springConfig.xml in A & B respectively Thanx in Advance Shrinivas
|
 |
Shrinivas Mujumdar
Ranch Hand
Joined: Aug 27, 2004
Posts: 328
|
|
Hey Ranchers, Need your Help!!! Shrinivas
|
 |
Christophe Verré
Marshal
Joined: Nov 24, 2005
Posts: 14361
|
|
|
Did you try to define your bean with singleton="false" ?
|
[SCBCD Wall of Fame] [My Blog]
All roads lead to JavaRanch
Help Japan. Make a donation.
|
 |
 |
|
|
subject: Spring Configurations
|
|
|