Re: struts data-source

2008-12-15 Thread Antonio
2008/12/15 Lukasz Lenart lukasz.len...@googlemail.com:
   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

2008-12-15 Thread Dave Newton
--- 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

2008-12-15 Thread m.harig

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 Thread Lukasz Lenart
2008/12/15 m.harig m.ha...@gmail.com:
   and i've gone through data-sources 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