On 9/29/06, Antonio Petrelli <[EMAIL PROTECTED]> wrote:
Patrice Le Cozler ha scritto: > My business logic is not in actions but is not struts-independant > since it > uses datasources initialized during struts servlet loading. Is there a > way > to get theses datasources and more generally get struts config from > another > servlet inside the same webapp ? For datasources, you can use JNDI (the simplest way): http://tomcat.apache.org/tomcat-5.5-doc/jndi-datasource-examples-howto.html Or you can use Spring IoC container (this is what I prefer): http://www.springframework.org/ About Struts config, I don't know how you it is useful for a webservice, what do you want to do with it?
The struts action will still be used. I just wanted to reuse the same config for the webservice as I don't know how to configure datasources in an axis service. I should probably redirect my question to an axis or spring list... Thanks for your help Antonio. Ciao
Antonio --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]