Saturday, December 31, 2016

Eclipselink Cache Coordination with JBoss and JMS

Agenda:
  1. Creating JPA project and generating entities.
  2. Configuring persistence properties and JPA project
  3. Testing the JPA project
  4. Update database when entity changed.
  5. Setting up load balance database connection.
  6. Setting Cache Coordination in Eclipselink

Cache Coordination enables EclipseLink to synchronize data changes in a distributed environment. for more information about cache coordination in EclipseLink, click here.

Following are the steps to enable Cache Coordination in JBoss AS7 / JBoss EAP6.
1. create JMS topic

2. creaet JMS connection factory

3. add the cache coordination properties into persistence.xml
<property name="eclipselink.cache.coordination.protocol" value="jms" />

<property name="eclipselink.cache.coordination.jms.topic" value="jms/EclipseLinkTopic" />

<property name="eclipselink.cache.coordination.jms.factory" value="jms/EclipseLinkTopicConnectionFactory" />

<property name="eclipselink.cache.coordination.jms.reuse-topic-publisher" value="true" />

<property name="eclipselink.cache.coordination.jms.host" value="remote://HOST:PORT" />

4. in eclipseLink module.xml, add the following into <dependencies />
<module name="javax.jms.api"/>

5. in hornetq module.xml, add the following into <dependencies />
<module name="org.eclipse.persistence"/>



Done!!

9 comments:

  1. The team’s project management is exceptional designing a company website, with minimal turnover or issues that affect clients.

    ReplyDelete
  2. Their team establishes a transparent and seamless workflow to ensure a successful collaboration.
    brand design company

    ReplyDelete
  3. The team excelled at project management mobile app design service with the utmost transparency, honesty, and organization.

    ReplyDelete
  4. The team understood the project thoroughly to support streamlined collaboration.
    branding studio

    ReplyDelete
  5. This blog post is really great; the standard stuff of the post is genuinely amazing.
    website design studios

    ReplyDelete
  6. I am confident you've got a great enthusiast following there.
    business logo designers

    ReplyDelete
  7. It's not my very first time to visit this blog; I’m visiting this daily and acquire superb info from here day by day.
    best web design company

    ReplyDelete
  8. I continuously continue coming to your website once more simply in case you have posted new contents.
    user experience design firms

    ReplyDelete

LinkWithin

Related Posts Plugin for WordPress, Blogger...