You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ojb-user@db.apache.org by Jason McKerr <mc...@nacse.org> on 2003/04/10 23:05:06 UTC

Datasources with Orion/Oracle 9iAS -- FYI

For any of you out there that are using OJB in an Orion or Oracle 9iAS
J2EE environment:

If you're using OJB with Orion/Oracle, using a JNDI datasource with the
OJB property
"ConnectionFactoryClass=org.apache.ojb.broker.accesslayer.ConnectionFactoryManagedImpl"

Then you may have problems. 

For some reason, the OJB doesn't like the Orion specific pooling
interfaces (com.evermind.sql.OrionPooledDataSourc) or maybe Orion
doesn't like OJB Broker.  

Anyway Datasources are not getting released, or cleaned up or
something.  Your system will hang and not be able to access the pool
after a couple of transactions are run.

However, if you use the driver specific pooling setup, this no longer
seems to be a problem.

Orion Users: Section 3.2 of the Orion Datasource configuration
documentation (located here at the following link) shows the right
stuff: http://www.orionserver.com/docs/datasource-configuration.html



Oracle 9iAS Users
The following docs show this for you:

http://otn.oracle.com/sample_code/tech/java/codesnippet/j2ee/jdbc/JDBC_in_J2EE.html

Just an update for anyone doing J2EE with OJB in these app-servers.

Jason McKerr




Re: Datasources with Orion/Oracle 9iAS -- FYI

Posted by Thomas Mahler <th...@web.de>.
Hi Jason,

Thanks for your tip. I order to use "the driver specific pooling setup", 
what settings must be made in OJB.properties and repository.xml?

I'd like to add this hint to our app server documentation.

thanks,
Thomas

Jason McKerr wrote:
> For any of you out there that are using OJB in an Orion or Oracle 9iAS
> J2EE environment:
> 
> If you're using OJB with Orion/Oracle, using a JNDI datasource with the
> OJB property
> "ConnectionFactoryClass=org.apache.ojb.broker.accesslayer.ConnectionFactoryManagedImpl"
> 
> Then you may have problems. 
> 
> For some reason, the OJB doesn't like the Orion specific pooling
> interfaces (com.evermind.sql.OrionPooledDataSourc) or maybe Orion
> doesn't like OJB Broker.  
> 
> Anyway Datasources are not getting released, or cleaned up or
> something.  Your system will hang and not be able to access the pool
> after a couple of transactions are run.
> 
> However, if you use the driver specific pooling setup, this no longer
> seems to be a problem.
> 
> Orion Users: Section 3.2 of the Orion Datasource configuration
> documentation (located here at the following link) shows the right
> stuff: http://www.orionserver.com/docs/datasource-configuration.html
> 
> 
> 
> Oracle 9iAS Users
> The following docs show this for you:
> 
> http://otn.oracle.com/sample_code/tech/java/codesnippet/j2ee/jdbc/JDBC_in_J2EE.html
> 
> Just an update for anyone doing J2EE with OJB in these app-servers.
> 
> Jason McKerr
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
> For additional commands, e-mail: ojb-user-help@db.apache.org
> 
>