Thx,

1. Create its local reference for project(in our case, we set reference in
web.xml) ???

2. i used all things described in site.pdf of OJB about using JNDI,

repository.xml :

jndi-datasource-name="jdbc/myDs"
username="sa"
password=""
batch-mode="false"
useAutoCommit="0"
ignoreAutoCommitExceptions="false"

<sequence-manager
className="org.apache.ojb.broker.util.sequence.SequenceManagerNextValImpl">
</sequence-manager>


OJB.properties :

PersistenceBrokerFactoryClass=
org.apache.ojb.broker.core.PersistenceBrokerFactorySyncImpl
ConnectionFactoryClass=
org.apache.ojb.broker.accesslayer.ConnectionFactoryManagedImpl
JTATransactionManagerClass=
org.apache.ojb.tm.transaction.factory.WebsphereTransactionManagerFactory



In my code , i use PB transaction , broker.beginTransaction ,
commitTransaction ..
with PersistenceBrokerFactorySyncImpl it give me an error that
beginTransaction dont supported .

I used the default impl
PersistenceBrokerFactoryClass=
org.apache.ojb.broker.core.PersistenceBrokerFactoryImpl
with this factory  my search queries in the application work good with the
JNDI of Websphere , but withe CRUD Operation wiche using transaction dont
work : transaction Boundary some thing like this....
i think is problem withe transaction JTA and Websphere !!!!! can you help me
????



thx



On 11/9/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:

Create datasource on websphere as CMP & create JNDI for that.
Create its local reference for project(in our case, we set reference in
web.xml)
& map it in repositiry file as follows.

<jdbc-connection-descriptor

jcd-alias="SQLJDBCProvider"

default-connection="true"

platform="MsSQLServer"

jdbc-level="3.0"

jndi-datasource-name="java:comp/env/dsForB2C"

>


----- Original Message -----
From: "Marwane" <[EMAIL PROTECTED]>
To: "OJB Users List" <ojb-user@db.apache.org>
Sent: Wednesday, November 08, 2006 10:54 PM
Subject: Need OJB config with Websphere DataSource JNDI


> Hi,
> if someone has configured  OJB with websphere datasource jndi ???
> thx a lot
>


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


Reply via email to