I've tried something simillar to this too. JNDI seemed like the best place to reference it to me, since I already had a class to retrieve connections from the Weblogic pool in place. It turned out that while I could place the OracleConnectionPoolDataSource in JNDI, what I need to do is put the entire pool there, but the OracleConnectionCacheImpl object is not serializable, and therefore throws a java.io.NotSerializableException when I try to put it in JNDI. Unless anyone else has any ideas, I guess I'm stuck with the servel context. Thanks.

David Graham wrote:

This introduces another problem in that I will have to pass the connection to my business objects from my action classes, but I think it will work. Any ideas are welcome. Thanks.


You can either put the DataSource in JNDI for your business objects to look up or pass the DataSource into the business layer directly. There's no reason to pass Connection objects into the business layer.

David


_________________________________________________________________
The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail



--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]





---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to