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 Reda Benzair <re...@smartjog.com> on 2004/07/09 11:24:22 UTC
sharing Cache by 2 application
Hi all,
How to make for sharing one ojb cache whith 2 application and what is
the special configuration for Ojb.properties and repository.xml
I have TOMCAT +Oracle and Webapp 1 + Webapp 2 but I would be user one
repository, one cache
application 1 -------------
-
- OJB cache
-------------------- Oracle
-
application 2 -------------
Thank you for the answer
---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-user-help@db.apache.org
Re: sharing Cache by 2 application
Posted by Brian McCallister <mc...@forthillcompany.com>.
That is exactly how we suggest doing it in an EJB container, should
work as well in a servlet container which supports JNDI.
Look up the howto's on EJB deployment, it should workable.
-Brian
On Jul 9, 2004, at 8:35 AM, Danilo Tommasina wrote:
> Hi,
>
> Just an idea that I never tested...
> You could make the PersistenceBroker factory available as JNDI object
> shared between all applications.
>
> Then you can lookup your JNDI object and get a PersistenceBroker
> trough it.
>
> cheers
> Danilo
>
>
>> Hi all,
>> How to make for sharing one ojb cache whith 2 application and what
>> is the special configuration for Ojb.properties and repository.xml
>> I have TOMCAT +Oracle and Webapp 1 + Webapp 2 but I would be user one
>> repository, one cache
>> application 1 -------------
>> -
>> - OJB cache
>> -------------------- Oracle
>> -
>> application 2 -------------
>> Thank you for the answer
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
>> For additional commands, e-mail: ojb-user-help@db.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
> For additional commands, e-mail: ojb-user-help@db.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-user-help@db.apache.org
Re: sharing Cache by 2 application
Posted by Danilo Tommasina <dt...@risksys.com>.
Hi,
Just an idea that I never tested...
You could make the PersistenceBroker factory available as JNDI object shared between all applications.
Then you can lookup your JNDI object and get a PersistenceBroker trough it.
cheers
Danilo
> Hi all,
>
>
> How to make for sharing one ojb cache whith 2 application and what is
> the special configuration for Ojb.properties and repository.xml
> I have TOMCAT +Oracle and Webapp 1 + Webapp 2 but I would be user one
> repository, one cache
>
> application 1 -------------
> -
> - OJB cache
> -------------------- Oracle
> -
> application 2 -------------
>
>
> Thank you for the answer
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
> For additional commands, e-mail: ojb-user-help@db.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-user-help@db.apache.org