Re: Struts2 connection pooling using MySQL

2008-02-21 Thread RajiR
Hi, As struts2 comes along with spring integration with struts2-spring-plugin-2.0.11.jar,after starting the tomcat server its unable to load that jar and getting an exception as: SEVERE: Exception starting filter struts2 Unable to load bean: type:com.opensymphony.xwork2.ObjectFactory

Re: Struts2 connection pooling using MySQL

2008-02-21 Thread Dave Newton
--- RajiR [EMAIL PROTECTED] wrote: As struts2 comes along with spring integration with struts2-spring-plugin-2.0.11.jar,after starting the tomcat server its unable to load that jar and getting an exception as: Looks more like you don't have Spring itself on your classpath: Caused by:

Re: Struts2 connection pooling using MySQL

2008-02-20 Thread Jeromy Evans
RajiR wrote: Can't we implement connection pooling in struts2 alone?If so ,may I know the reason please...!!! Thanks. Struts 2 itself doesn't provide a connection pooling implementation and probably shouldn't. MySql provide a pooled DataSource that you can use immediately. Set it up

Re: Struts2 connection pooling using MySQL

2008-02-20 Thread Frans Thamura
hi there i got a too many connection when try use spring-hibernate with struts2 and this is not struts2 problem i think the connection pool is not struts2 responsibility as the controller and if we use spring, this will become injection work with the database tech like ORM ot JDBC F

Re: Struts2 connection pooling using MySQL

2008-02-20 Thread RajiR
Can't we implement connection pooling in struts2 alone?If so ,may I know the reason please...!!! Thanks. nuwan chandrasoma-2 wrote: Hi, Why do not you give a try with Spring. as struts2 has built in support for spring, you can use springs connection pooling very easily. Thanks,

Re: Struts2 connection pooling using MySQL

2008-02-20 Thread Nuwan Chandrasoma
Hi, Why do not you give a try with Spring. as struts2 has built in support for spring, you can use springs connection pooling very easily. Thanks, Nuwan. RajiR wrote: Hi All, Since struts1 has connection pooling mechanism using data-source/ tag,what is the procedure of connection

Re: Struts2 connection pooling using MySQL

2008-02-20 Thread Jeromy Evans
Right. The configuration file the mysql reference refers to is the Container configuration, for example, server.xml or context.xml provided with Tomcat. Every J2EE container provides that configuration. Struts 1 provides some config to simply it, but Struts 2 doesn't provide convenience

Re: Struts2 connection pooling using MySQL

2008-02-20 Thread Laurie Harper
Struts1 provided a data-source configuration element because, at the time that was added, there was no consistent mechanism for configuring data sources that worked across servlet containers. That changed a long time ago and Struts first deprecated, and then removed, its support for the

Re: Struts2 connection pooling using MySQL

2008-02-20 Thread Frans Thamura
eg. http://tomcat.apache.org/tomcat-5.5-doc/jndi-datasource-examples-howto.html is this connectio data source is the best implementation we are using hibernate c3p0, any suggestion F - To unsubscribe, e-mail: [EMAIL

Re: Struts2 connection pooling using MySQL

2008-02-20 Thread RajiR
Hi, In this link : http://dev.mysql.com/tech-resources/articles/connection_pooling_with_connectorj.html, we can preform connection pooling only after configuring it in our configuration files.If it is in the case of struts1, struts-config.xml file has a tag called data-source/ and there we can

Re: Struts2 connection pooling using MySQL

2008-02-20 Thread RajiR
Ok,,thx for the repliesi'll try using JNDI and with spring integration.I have worked using struts2+hibernate,it works fine.. Laurie Harper wrote: Struts1 provided a data-source configuration element because, at the time that was added, there was no consistent mechanism for configuring

Re: Struts2 connection pooling using MySQL

2008-02-20 Thread Frans Thamura
dont forget to share the code. Thx - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]