Re: struts data-source
2008/12/15 Lukasz Lenart : >> where should i use this, this should be in ActionClass or it can be >> in DAO. give me an idea to implement this . > > In action, but you shouldn't use that, it's deprecated solution, > instead implemented Hibernate or JPA layer. Or a simple JNDI call, configuring you data source in your container. Antonio - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: struts data-source
--- On Mon, 12/15/08, m.harig wrote: > how do i implement then . because i need pooled > connections . could anyone tell me about that You may want to ask that on a DB/persistence-oriented forum since it's not really Struts-related. Dave - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: struts data-source
Thanks Lukasz how do i implement then . because i need pooled connections . could anyone tell me about that -- View this message in context: http://www.nabble.com/struts-data-source-tp21011491p21012275.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: struts data-source
2008/12/15 m.harig : > and i've gone through with struts. and i've seen an > example of this. > > javax.sql.DataSource dataSource; > java.sql.Connection myConnection=null; > > dataSource = getDataSource(request); > myConnection = dataSource.getConnection(); > > where should i use this, this should be in ActionClass or it can be > in DAO. give me an idea to implement this . In action, but you shouldn't use that, it's deprecated solution, instead implemented Hibernate or JPA layer. Regards -- Lukasz http://www.lenart.org.pl/ - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
struts data-source
hello all am newbie to struts . am developing a login application . this is my java package structure Action - Helper - DAO . my ActionClass calls Helper method and it'll call DAO method for accessing database . is this correct??? and i've gone through with struts. and i've seen an example of this. javax.sql.DataSource dataSource; java.sql.Connection myConnection=null; dataSource = getDataSource(request); myConnection = dataSource.getConnection(); where should i use this, this should be in ActionClass or it can be in DAO. give me an idea to implement this . thanks in advance -- View this message in context: http://www.nabble.com/struts-data-source-tp21011491p21011491.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org