Hi,
apologies if this is an obvious question, but I can't work it out.
If you're trying to configure a datasource in Struts 1.1, what's the
preferred method?
The only way I've got this work using the struts-config file is if
I force the data source to be org.apache.struts.util.GenericDataSource,
as in:
<data-source key="horizon"
type="org.apache.struts.util.GenericDataSource">
[..]
</data-source>
None of the pooling methods from, for example, the
org.apache.commons.dbcp package seem to work at all.
Looking at the source code (around line 1080 in
org.apache.struts.action.ActionServlet.java), this seems to be
deliberate.
Could someone explain all this to me? Obviously, I can configure
connection pools manually outside of the Struts framework, but I assume
there are advantages in doing so in a Struts-centric way if you can, and
the DBCP implementation looks quite nice, if I could only get it to
work.
I'd be grateful for any guidance anyone had on this.
thanks,
Graham
--
Graham Stark, Virtual Worlds
phone: (+044) 01908 618239 mobile: 07952 633185
Homepage http://www.virtual-worlds.biz
Virtual Learning Arcade http://www.bized.ac.uk/virtual/vla
Virtual Economy http://www.bized.ac.uk/virtual/economy
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]