Re: how to better save a trans in DBCP?

2005-12-06 Thread pc leung
Will a Connection.close() close a connection and decrease the number of connections in connection pool? Connection con = null; try { ds = (DataSource)myContext.lookup("jdbc/oracleServer"); pooledCon = ds.getConnection("scott", "tiger"); pooledCon.setAutoCommit(false); pooledCon.setTransacti

Re: how to better save a trans in DBCP?

2005-12-06 Thread pc leung
thanks On 12/6/05, Varley, Roger <[EMAIL PROTECTED]> wrote: > > I have classes which deal with tables individually. > > In each class, it has the following lines to get connection pooling > > and then commit a single table. > > > > Context envCtx = (Context) ctx.lookup("java:comp/env"); > > DataSo

how to better save a trans with DBCP?

2005-12-06 Thread pc leung
I have classes which deal with tables individually. In each class, it has the following lines to get connection pooling and then commit a single table. Context envCtx =3D (Context) ctx.lookup("java:comp/env"); DataSource ds =3D (DataSource) envCtx.lookup("jdbc/myERP"); conn =3D ds.getConnection();

how to better save a trans in DBCP?

2005-12-06 Thread pc leung
I have classes which deal with tables individually. In each class, it has the following lines to get connection pooling and then commit a single table. Context envCtx = (Context) ctx.lookup("java:comp/env"); DataSource ds = (DataSource) envCtx.lookup("jdbc/myERP"); conn = ds.getConnection(); stmt

Re: Displaying PDF's within a servlet

2005-11-27 Thread pc leung
Is the Apache FOP okay for you? It supports servlets generating PDF page. On 11/26/05, Mark <[EMAIL PROTECTED]> wrote: > Check out either PDFBox, it allows you to convert PDF pages into JPG. > > > On 11/23/05, Caldarale, Charles R <[EMAIL PROTECTED]> wrote: > > > > > From: Khawaja Shams [mailto:[E

Re: tomcat 5.5 logging

2005-11-02 Thread pc leung
e is no > requirement for this file according to the 5.5 doc. > > hope this helps. > > - andy > pc leung < [EMAIL PROTECTED]> wrote: > http://tomcat.apache.org/tomcat-5.5-doc/logging.html > The above page shows that logging-log4j.jar and commong-logging.jar > needs to

tomcat 5.5 logging

2005-11-02 Thread pc leung
http://tomcat.apache.org/tomcat-5.5-doc/logging.html The above page shows that logging-log4j.jar and commong-logging.jar needs to put in $CATALINA_HOME/common/lib. If I have two files of jar already in my struts webapp lib, Why do I still need to place them in $CATALINA_HOME/common/lib? In additi