Re: Spring context for package

2010-11-25 Thread Josep María Formentí Serra
Well, the project that we are building have a common part (now only user administration) and then we have two independent modules (with some links between theirs). In this case, it would be a good solution use an ear, but some clients are working in tomcat, then we are working with a war. Really,

Re: Spring context for package

2010-11-24 Thread stanlick
Josep -- That sounds a little radical. Do you mind if I ask why? Is the unique namespace per package not enough separation? Hey, if strict separation is what you desire, you could package each S2 package in it's own project and move the package namespace to the web root context and be done

Re: Spring context for package

2010-11-23 Thread Josep María Formentí Serra
Scott, it's interesting, I didn't know that, but i would like to have different application context in the same war, specifically, i would like to have an application context for each package that is defined in struts.xml. Thanks, Josep Maria 2010/11/17 stanl...@gmail.com Josep -- I

Re: Spring context for package

2010-11-17 Thread stanlick
Josep -- I believe this is what you are looking for. http://blog.springsource.com/2007/06/11/using-a-shared-parent-application-context-in-a-multi-war-spring-application/ Peace, Scott 2010/11/17 Josep María Formentí Serra jmforme...@aia.es Thanks Dave and Chris, Chris, that it's nice, we

Re: Spring context for package

2010-11-16 Thread Josep María Formentí Serra
Thanks Dave and Chris, Chris, that it's nice, we are going to modify it in our project. But our real problem is that we have two independent modules (and struts package for each one) and many spring beans have the same name. Then we have to change bean names when we detect a conflict. I think it

Spring context for package

2010-11-12 Thread Josep María Formentí Serra
Hi, We are working in a new project using struts2 + spring + hibernate. We have many packages defined in struts.xml, one for module. We have configured spring using this guide: http://struts.apache.org/2.0.14/docs/spring-plugin.html, where you define one spring context (using the context param:

Re: Spring context for package

2010-11-12 Thread Dave Newton
As far as I know there's nothing in the Spring plugin that currently provides that functionality. Dave 2010/11/12 Josep María Formentí Serra jmforme...@aia.es: Hi, We are working in a new project using struts2 + spring + hibernate. We have many packages defined in struts.xml, one for module.

Re: Spring context for package

2010-11-12 Thread Chris Pratt
If you are talking about per Java package, not that I know of. If you mean per Struts package, same thing. But if you mean per jar file, there is a way. If you set your contextConfigLocation to something like WEB-INF/applicationContext.xml,classpath*:pluginContext.xml then Spring will load your