genman is right.  I was able make this work, but it wasn't immediately obvious 
how.  I needed to do this because I am using both local and HA JMS 
destinations.  HA JMS destinations need to use a JDBC persistence manager that 
all point to the same database so that when the destination bounces to a new 
cluster node, it can restore the messages to the destination.  For local JMS 
destinations, this causes big problems because multiple cluster nodes will 
collide at the database.  I used the file persistence manager for my local 
destinations.  Here were the steps I followed to make this work (I already had 
the JDBC persistence manager configured.)

1) Set up file-pm-service.xml in deploy/jms.  Change all object names so that 
they don't collide with the jdbc pm (i.e. LocalDestinationManager, 
LocalMessageCache, LocalCacheStore, and LocalPersistenceManager.)

2) Create a 2nd invoker (i.e. LocalInvoker) in jbossmq-service.xml that is a 
copy of the Invoker (with local versions of all configured interceptors.)  
LocalInvoker needs to use LocalDestinationManager.

3) Point jvm-il-service.xml at LocalInvoker instead of Invoker.  (All other 
invokers (e.g. UIL2) still point at Invoker.

4) Modify my local destinations to point at LocalDestinationManager instead of 
DestinationManager (e.g.
<mbean code="org.jboss.mq.server.jmx.Topic" 
name="jboss.mq.destination:service=Topic,name=MyTopic">
  |   <depends optional-attribute-name="DestinationManager">
  |     jboss.mq:service=LocalDestinationManager
  |   </depends>
  | </mbean>

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3856445#3856445

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3856445


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to