• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Bear Bibeault
  • Junilu Lacar
  • Martin Vashko
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Scott Selikoff
  • salvin francis
  • Piet Souris

applicationContext.xml

 
Ranch Hand
Posts: 240
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have a case where I have a WebApp using Struts/Spring called MyWeb. The MyWeb defines an applicationContext.xml for struts/spring etc.

This WAR is then bundled into MyApp.ear where it is joined by a commonServices.jar. The commonServices.jar contains beans and implementations and its own applicationContext.xml mapping. MyWeb makes use of beans from the commonServices.jar file as well.

How can I make SpringContextLoader listener class load the bean mapping file defined in the commonServices.jar file and also the bean mapping file defined in the MyWeb application?

Thanks in advance for any tips.
 
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

You can use Struts plugin which is provided by Spring. In this case you can have the beans loaded by spring and controller by struts..

hope this is what you were looking for.. or could you elobrate in more.

regards
Magesh
 
Why am I so drawn to cherry pie? I can't seem to stop. Save me tiny ad!
Sauce Labs - World's Largest Continuous Testing Cloud for Websites and Mobile Apps
https://coderanch.com/t/722574/Sauce-Labs-World-Largest-Continuous
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!