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 Martin Dengler <ma...@gmx.de> on 2003/11/06 14:44:51 UTC
ojb and distributed applications
hi @all,
i am an "ojb newbie";
any help is appreciated concerning the following questions:
1. ojb supports the definition of more than one jdbc-connection descriptor
element at repository.xml;
- does that mean, that persistent data could be stored across more than one
physical database server?
- how about distributed transactions? does ojb implement a "2-phase-commit"
transaction service? if not, is it possible to use an external JTS-compatible
transaction manager, provided by a J2EE Container?
2. the docu says: "OJB does connection pooling per default, expect for
datasources"
- does that mean, that OJB can be used with external managed connection
pooling (e.g. j2ee container connection pooling)?
- how do i specify in repository.xml, whether a connection is of type
datasource or not?
thanx for helpin
marty
--
NEU FÜR ALLE - GMX MediaCenter - für Fotos, Musik, Dateien...
Fotoalbum, File Sharing, MMS, Multimedia-Gruß, GMX FotoService
Jetzt kostenlos anmelden unter http://www.gmx.net
+++ GMX - die erste Adresse für Mail, Message, More! +++
---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-user-help@db.apache.org
Re: ojb and distributed applications
Posted by Thomas Mahler <th...@web.de>.
Hi Martin,
Martin Dengler wrote:
> hi @all,
>
> i am an "ojb newbie";
> any help is appreciated concerning the following questions:
>
> 1. ojb supports the definition of more than one jdbc-connection descriptor
> element at repository.xml;
> - does that mean, that persistent data could be stored across more than one
> physical database server?
yes!
> - how about distributed transactions? does ojb implement a "2-phase-commit"
> transaction service?
No, we do not implement our own transaction service. This would go much
beyond the original scope of our project.
> if not, is it possible to use an external JTS-compatible
> transaction manager, provided by a J2EE Container?
Yes, that's the recommended way to go.
In OJB properties you can set up your specific environment. E.G:
...
ConnectionFactoryClass=
org.apache.ojb.broker.accesslayer.ConnectionFactoryManagedImpl
...
OJBTxManagerClass=org.apache.ojb.odmg.JTATxManager
...
JTATransactionManagerClass=
org.apache.ojb.otm.transaction.factory.JBossTransactionManagerFactory
> 2. the docu says: "OJB does connection pooling per default, expect for
> datasources"
> - does that mean, that OJB can be used with external managed connection
> pooling (e.g. j2ee container connection pooling)?
Yes!
> - how do i specify in repository.xml, whether a connection is of type
> datasource or not?
!-- Datasource example -->
<jdbc-connection-descriptor
jcd-alias="default"
default-connection="true"
platform="Sapdb"
jdbc-level="2.0"
jndi-datasource-name="java:DefaultDS"
username="sa"
password=""
eager-release="true"
batch-mode="false"
useAutoCommit="0"
ignoreAutoCommitExceptions="false"
>
<sequence-manager className=
"org.apache.ojb.broker.util.sequence.SequenceManagerNextValImpl">
</sequence-manager>
</jdbc-connection-descriptor>
Doku is here:
http://db.apache.org/ojb/repository.html#jdbc-connection-descriptor
cheers,
thomas
> thanx for helpin
>
> marty
>
---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-user-help@db.apache.org