Hi G�nther,

----- Original Message -----
From: "Bodlak G�nther gbo09" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, October 18, 2002 1:15 PM
Subject: ojb in other app server than jBoss


> Hi,
>
> how can I get ojb working in other application servers than jBoss?
> I would like to use it in oracles oc4j.

For PB-api using, you could try the following:

* only use datasources from the managed environment
* use ConnectionFactoryClass=
org.apache.ojb.broker.accesslayer.ConnectionFactoryPassThroughImpl
in OJB.properties
* useAutoCommit=0
in OJB.properties
* Do a PB.clearCache() (this will be fixed soon) before PB.close()
For first testing you could use the 'normal' PB-api.

Sample beans you could find under
jakarta-ojb\src\ejb\org\apache\ojb\ejb


If you want to use the ODMG-api, you have to know how to
lookup the TransactionManager of your AppServer.
e.g.
JBoss: "java:/TransactionManager"
Weblogic: "javax.transaction.TransactionCoordinator"

If you know this it should be possible to get ODMG working
within oc4j.
First you have to implement a TransactionManagerFactory
in org.apache.ojb.otm.transaction.factory. In this package
you could find implementations for JBoss,WebSphere, Weblogic.
Then let OJB knows your factory therefore change in OJB.properties:

JTATransactionManagerClass=org.apache.ojb.otm.transaction.factory.MyMana
gerFactory

OJB.properties:
ConnectionFactoryClass=org.apache.ojb.broker.accesslayer.ConnectionFacto
ryPassThroughImpl
useAutoCommit=0
OJBTxManagerClass=org.apache.ojb.odmg.JTATxManager
JTATransactionManagerClass=org.apache.ojb.otm.transaction.factory.MyMana
gerFactory

To get a Implementation instance within your container
without an mbean lookup, you could try
Implementation odmg = OJBJ2EE_2.getInstance();

>
> Is there  a connector implemantation for ojb available?
> I found only the jboss mbean stuff in the docs ...

We currently started with a JCA connector implementation for OJB,
thus the answer is no. I could not say how long it would take to
implement. First we implement the OTM layer, then we complete
the JCA stuff.

HTH

regards,
Armin

>
> Many thanks
> Guenther
>


--
To unsubscribe, e-mail:   <mailto:ojb-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:ojb-user-help@;jakarta.apache.org>

Reply via email to