| George Daswani 2005-09-26, 8:50 pm |
| You need to create a DataSource in the WAS Admin - standard J2EE stuff
(Connection Pool)..
During portlet processing (eq. doView), you retrieve a JDBC connection by
looking up the ConnectionPool via JNDI, then close said connection in the
finally block..
Sharing the exact same database connection (if you made the conn handle a
static variable) will lead you to a deadlock.
<darnley_etienne@bankone.com> wrote in message
news:702927184.1127748600146.JavaMail.wassrvr@ltsgwas007.sby.ibm.com...
> Hello everyone! How do you enable portlets to share connections to a
> database? Is it a good practice to have multiple portlets share a
> connection to a DB, or should they use separate connections.
|