aspose file tools*
The moose likes Object Relational Mapping and the fly likes JMS Clustering Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "JMS Clustering" Watch "JMS Clustering" New topic
Author

JMS Clustering

syed aliarshad
Greenhorn

Joined: Jun 20, 2012
Posts: 11
Hello,

I guess I have the same situation here..

I am using Toplink as ORM. I have implemented caching too using cache coordination.

Below are the lines that I have added in Toplink-session.xml file for caching.

------------------------------------------------------------------------------------------------------------------------

<remote-command>
<commands>
<cache-sync>true</cache-sync>
</commands>
<transport xsi:type="jms-topic-transport">
<topic-host-url>tcp://someurl.com:61616</topic-host-url>
<topic-connection-factory-name>java:comp/env/jms/CacheTopicConnectionFactory</topic-connection-factory-name>
<topic-name>java:comp/env/jms/topicname</topic-name>
<jndi-naming-service>
<initial-context-factory-name>org.apache.activemq.jndi.ActiveMQInitialContextFactory</initial-context-factory-name>
</jndi-naming-service>
</transport>
</remote-command>
------------------------------------------------------------------------------------------------------------------------


The above settings are working fine for one node cache. I want to make the JMS Cluster having more than one cache node. How can I achieve this?


Thanks
 
Consider Paul's rocket mass heater.
 
subject: JMS Clustering