Setup of distributed cache clear

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Setup of distributed cache clear

Nicolas Mervaillie
Hi,

I'm currently working on the setup of a load balanced OfBiz infrastructure :
x Apache HTTP servers, x Ofbiz instances, x db instances (just load
balancing, no fail-over through session replication).
Everything goes just fine, the OfBiz installation is a breeze.

OK. Then I change a product label on one of the instances through the admin
tools. The modification does not apply on the other instances (they keep
displaying the cached label).
I guess I have to setup the jms service and the entity engine to handle the
cache invalidation but I didn't find any documentation/posts on this
subject.
I played around with the distributed cache and JNDI parameters without
success so far.

=> Does I need an external JMS server ? How to setup the JNDI services in
OfBiz ? How to setup the entity engine ?

=> In order to get the full system working, are there any issues I am not
aware of ?  (pool configuration for job execution ?)

Any help appreciated.
Thanks in advance.

Nicolas Mervaillie
Reply | Threaded
Open this post in threaded view
|

Re: Setup of distributed cache clear

Jacques Le Roux
Administrator
Quick answer : did you have a look at, distributedClearCacheLineBy* services ?

For the pool(s), as long you don't want to explicitly set it on sepcific server(s) there should not be any problems.

Jacques
 
De : "Nicolas Mervaillie" <[hidden email]>

> Hi,
>
> I'm currently working on the setup of a load balanced OfBiz infrastructure :
> x Apache HTTP servers, x Ofbiz instances, x db instances (just load
> balancing, no fail-over through session replication).
> Everything goes just fine, the OfBiz installation is a breeze.
>
> OK. Then I change a product label on one of the instances through the admin
> tools. The modification does not apply on the other instances (they keep
> displaying the cached label).
> I guess I have to setup the jms service and the entity engine to handle the
> cache invalidation but I didn't find any documentation/posts on this
> subject.
> I played around with the distributed cache and JNDI parameters without
> success so far.
>
> => Does I need an external JMS server ? How to setup the JNDI services in
> OfBiz ? How to setup the entity engine ?
>
> => In order to get the full system working, are there any issues I am not
> aware of ?  (pool configuration for job execution ?)
>
> Any help appreciated.
> Thanks in advance.
>
> Nicolas Mervaillie
>
Reply | Threaded
Open this post in threaded view
|

Re: Setup of distributed cache clear

Jacques Le Roux
Administrator
> Quick answer : did you have a look at, distributedClearCacheLineBy* services ?

Oops, I meant distributedClearCache* and  distributedCache* (search for strings)
 
> For the pool(s), as long you don't want to explicitly set it on sepcific server(s) there should not be any problems.

Of course, this does no mean that you could experienced problems if you do so. It's the goal !

>
> Jacques
>  
> De : "Nicolas Mervaillie" <[hidden email]>
>
> > Hi,
> >
> > I'm currently working on the setup of a load balanced OfBiz infrastructure :
> > x Apache HTTP servers, x Ofbiz instances, x db instances (just load
> > balancing, no fail-over through session replication).
> > Everything goes just fine, the OfBiz installation is a breeze.
> >
> > OK. Then I change a product label on one of the instances through the admin
> > tools. The modification does not apply on the other instances (they keep
> > displaying the cached label).
> > I guess I have to setup the jms service and the entity engine to handle the
> > cache invalidation but I didn't find any documentation/posts on this
> > subject.
> > I played around with the distributed cache and JNDI parameters without
> > success so far.
> >
> > => Does I need an external JMS server ? How to setup the JNDI services in
> > OfBiz ? How to setup the entity engine ?
> >
> > => In order to get the full system working, are there any issues I am not
> > aware of ?  (pool configuration for job execution ?)
> >
> > Any help appreciated.
> > Thanks in advance.
> >
> > Nicolas Mervaillie
> >
>
Reply | Threaded
Open this post in threaded view
|

Re: Setup of distributed cache clear

Nicolas Mervaillie-2
Hi Jacques

Thanks for the reply.

Yes, I did have a look to the distributed cache parameters.
Activating the distributed cache causes a JNDI lookup problem on the JMS
connection factory (which seems normal : no JMS server activated and
registered on startup)
I tried to setup the JMS service and register it in JNDI but with no
success.

In fact, what I don't get is that the JMS service use a different JNDI
context (OpenJMS InitialContext)
How does this JNDI interact with the "standard" OfBiz JNDI context ?

About the pools : do you mean that even if I have several OfBiz instances,
no more than one instance will execute a given job ?

Nicolas


2007/10/19, Jacques Le Roux <[hidden email]>:

>
> > Quick answer : did you have a look at, distributedClearCacheLineBy*
> services ?
>
> Oops, I meant distributedClearCache* and  distributedCache* (search for
> strings)
>
> > For the pool(s), as long you don't want to explicitly set it on sepcific
> server(s) there should not be any problems.
>
> Of course, this does no mean that you could experienced problems if you do
> so. It's the goal !
>
> >
> > Jacques
> >
> > De : "Nicolas Mervaillie" <[hidden email]>
> >
> > > Hi,
> > >
> > > I'm currently working on the setup of a load balanced OfBiz
> infrastructure :
> > > x Apache HTTP servers, x Ofbiz instances, x db instances (just load
> > > balancing, no fail-over through session replication).
> > > Everything goes just fine, the OfBiz installation is a breeze.
> > >
> > > OK. Then I change a product label on one of the instances through the
> admin
> > > tools. The modification does not apply on the other instances (they
> keep
> > > displaying the cached label).
> > > I guess I have to setup the jms service and the entity engine to
> handle the
> > > cache invalidation but I didn't find any documentation/posts on this
> > > subject.
> > > I played around with the distributed cache and JNDI parameters without
> > > success so far.
> > >
> > > => Does I need an external JMS server ? How to setup the JNDI services
> in
> > > OfBiz ? How to setup the entity engine ?
> > >
> > > => In order to get the full system working, are there any issues I am
> not
> > > aware of ?  (pool configuration for job execution ?)
> > >
> > > Any help appreciated.
> > > Thanks in advance.
> > >
> > > Nicolas Mervaillie
> > >
> >
>
Reply | Threaded
Open this post in threaded view
|

Re: Setup of distributed cache clear

Jacques Le Roux
Administrator
Hi Nicolas,

De : "Nicolas Mervaillie" <[hidden email]>


> Hi Jacques
>
> Thanks for the reply.
>
> Yes, I did have a look to the distributed cache parameters.
> Activating the distributed cache causes a JNDI lookup problem on the JMS
> connection factory (which seems normal : no JMS server activated and
> registered on startup)
> I tried to setup the JMS service and register it in JNDI but with no
> success.
>
> In fact, what I don't get is that the JMS service use a different JNDI
> context (OpenJMS InitialContext)
> How does this JNDI interact with the "standard" OfBiz JNDI context ?

No time for that for the moment...

> About the pools : do you mean that even if I have several OfBiz instances,
> no more than one instance will execute a given job ?

Yes, job status is used for that.

Jacques

> Nicolas
>
>
> 2007/10/19, Jacques Le Roux <[hidden email]>:
> >
> > > Quick answer : did you have a look at, distributedClearCacheLineBy*
> > services ?
> >
> > Oops, I meant distributedClearCache* and  distributedCache* (search for
> > strings)
> >
> > > For the pool(s), as long you don't want to explicitly set it on sepcific
> > server(s) there should not be any problems.
> >
> > Of course, this does no mean that you could experienced problems if you do
> > so. It's the goal !
> >
> > >
> > > Jacques
> > >
> > > De : "Nicolas Mervaillie" <[hidden email]>
> > >
> > > > Hi,
> > > >
> > > > I'm currently working on the setup of a load balanced OfBiz
> > infrastructure :
> > > > x Apache HTTP servers, x Ofbiz instances, x db instances (just load
> > > > balancing, no fail-over through session replication).
> > > > Everything goes just fine, the OfBiz installation is a breeze.
> > > >
> > > > OK. Then I change a product label on one of the instances through the
> > admin
> > > > tools. The modification does not apply on the other instances (they
> > keep
> > > > displaying the cached label).
> > > > I guess I have to setup the jms service and the entity engine to
> > handle the
> > > > cache invalidation but I didn't find any documentation/posts on this
> > > > subject.
> > > > I played around with the distributed cache and JNDI parameters without
> > > > success so far.
> > > >
> > > > => Does I need an external JMS server ? How to setup the JNDI services
> > in
> > > > OfBiz ? How to setup the entity engine ?
> > > >
> > > > => In order to get the full system working, are there any issues I am
> > not
> > > > aware of ?  (pool configuration for job execution ?)
> > > >
> > > > Any help appreciated.
> > > > Thanks in advance.
> > > >
> > > > Nicolas Mervaillie
> > > >
> > >
> >
>