• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

JBOSS Clustering

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

Am facing a problem as described below

I need to cache some data for performance optimization.
For this I have bound my data object in the InitialContext.
Once bound it is not fetched again from anywhere and is used from the context itself.
There is also a method to invalidate this caching which simply gets the data again and re binds it in the context.
This works properly in case of a Standalone machine but when Clustering is done, the data is set for the each cluster node. This is also fine as there would not be any change in the performance but when it comes to invalidate the data, it is not possible to invalidate from all the nodes at a single go.

I read somewhere that the solution is to bind the object in the clusters shared context which runs on a different port. This would work in case of cluster but would cause a problem in case of Standalone machine.

As the same code is run for some clients on Standalone machines and for some on Clustered environment, have no clue how to solve this.

If you have a solution please reply ASAP.

Thanks,
Beena.
 
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have heard something about HAJNDI in JBoss, which is used for binding objects in a cluster.

As the same code is run for some clients on Standalone machines



What do you mean by standalone machine? Is it a standalone java application that you are talking about or are you talking about a application running on a JBoss server which is NOT in a clustered environment?

If its the latter, then i do believe that using HAJNDI should as well work in a non-clustered environment. I havent read the docs yet.
 
Jaikiran Pai
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Section 16.2 of the following chapter explains HA-JNDI:
http://docs.jboss.org/jbossas/jboss4guide/r4/html/cluster.chapt.html

Also, i did read in a discussion that HA-JNDI works even in a single machine cluster.
 
reply
    Bookmark Topic Watch Topic
  • New Topic