Yes, it helps and I know I can get it done if I set the context
element in server.xml,
but if I set the datasource in server.xml, do I need to set the
<datasource> in struts-config.xml again??

If I am right, I think if datasource is setup in server.xml, it has
the scope of entire Tomcat, that means all webapps can use that
datasource. Also it can be retrieved by JNDI.

If the datasource is setup in struts-config.xml, the scope becomes
struts only and is specific to only one webapp, and it can't be
retrieved by JNDI.

So I can setup datasource in both ways, setup in server.xml has much
more flexibilty and benifit from JNDI, why do I need to setup in
struts-config.xml??

once again, thanks, ^^

Regards

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to