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 Ma...@bedag.ch on 2005/01/18 18:03:36 UTC
Multible webapps on tomcat using ojb
I'm running 2 seperate apps in one Tomcat server. Both use ojb to access
the db.
With one app this works fine. But the second app uses the same
connection the first one uses.
Both apps get the PersistanceBroker with
PersistenceBrokerFactory.getDefaultPersistanceBroker(). But I have two
separate repository_database.xml for each app.
Is there only one defaultPersistanceBroker in my Tomcat runtime
environment?
How can I run several apps? Using PBKey top create my PersistanceBroker.
Which of my repository_database.xml will be used?
Thanks for help
Markus
Re: Multible webapps on tomcat using ojb
Posted by Jim Theodoridis <oj...@tera.gr>.
I am running 2 seperate apps in tomcat 5.xx too wixh have access to same db
i am not using JNDI jars are in each app and I have no problem
>I'm running 2 seperate apps in one Tomcat server. Both use ojb to access
>the db.
>With one app this works fine. But the second app uses the same
>connection the first one uses.
>
>Both apps get the PersistanceBroker with
>PersistenceBrokerFactory.getDefaultPersistanceBroker(). But I have two
>separate repository_database.xml for each app.
>
>Is there only one defaultPersistanceBroker in my Tomcat runtime
>environment?
>How can I run several apps? Using PBKey top create my PersistanceBroker.
>Which of my repository_database.xml will be used?
>
>Thanks for help
>Markus
>
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-user-help@db.apache.org
Re: Multible webapps on tomcat using ojb
Posted by "Robert r. Sanders" <ro...@ipov.net>.
Are the OJB jars in the web application's lib directories? (stupid
question, but still...) If its not that then I'm not really sure what
it would be...
Markus.Lauber@bedag.ch wrote:
>I'm running 2 seperate apps in one Tomcat server. Both use ojb to access
>the db.
>With one app this works fine. But the second app uses the same
>connection the first one uses.
>
>Both apps get the PersistanceBroker with
>PersistenceBrokerFactory.getDefaultPersistanceBroker(). But I have two
>separate repository_database.xml for each app.
>
>Is there only one defaultPersistanceBroker in my Tomcat runtime
>environment?
>How can I run several apps? Using PBKey top create my PersistanceBroker.
>Which of my repository_database.xml will be used?
>
>Thanks for help
>Markus
>
>
>
>
--
Robert r. Sanders
Chief Technologist
iPOV
www.ipov.net
---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-user-help@db.apache.org
Re: Multible webapps on tomcat using ojb
Posted by Reda Benzair <re...@smartjog.com>.
hello
solution you can use OJB whith JNDI tomcat resources !
you add defaultBroket to server.xml ressources and alle webapp can acces
to same repository.xml
>I'm running 2 seperate apps in one Tomcat server. Both use ojb to access
>the db.
>With one app this works fine. But the second app uses the same
>connection the first one uses.
>
>Both apps get the PersistanceBroker with
>PersistenceBrokerFactory.getDefaultPersistanceBroker(). But I have two
>separate repository_database.xml for each app.
>
>Is there only one defaultPersistanceBroker in my Tomcat runtime
>environment?
>How can I run several apps? Using PBKey top create my PersistanceBroker.
>Which of my repository_database.xml will be used?
>
>Thanks for help
>Markus
>
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-user-help@db.apache.org