Have a question trying to use OJB under a J2EE environment. If one deploys web and ejb 
components under one web application, what is best means to ensure proper TxManager is 
employed? The configuration appears to be global. Would seem that web code would want 
a LocalTxManager, EJB's would want a JTATxManager. Is this not the case? Options 
include:

1. Separate web and ejb into separate applications for deployment, and configure each 
according to needs.

2. Create two PBFactory instances, one configured for local and one for JTA?

3. Implement custom JTATxFactory and make it smart enough to detect if under JTS or 
not and act accordingly?

Detecting and ensuring use of container datasource is not an issue, as can add 
JdbcConnectionDescriptor at runtime.

A related question is, does any of this matter when just using PB API and not ODMG? 
One hopes it does somewhat, as don't want commits/rollbacks going through unless 
container is happy.

Thanks. 



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

Reply via email to