[jboss-user] [Beginners Corner] - Re: Need help with configuring message bridge from JBM-1.4.0

Karen.Kramer do-not-reply at jboss.com
Wed Mar 25 07:39:44 EDT 2009


Thanks for responding! You're correct!

Since that original question, I have managed to get a messaging bridge working and I will share the code to maybe help others.

outgoing-bridge-service.xml

<?xml version="1.0" encoding="UTF-8"?>
  | <server>
  | <mbean code="org.jboss.jms.server.bridge.BridgeService" name="jboss.jms:service=ISACBridge,name=ISAC
  | Bridge" xmbean-dd="xmdesc/Bridge-xmbean.xml">
  |      <depends optional-attribute-name="SourceProviderLoader">jboss.messaging.destination:service=Queue,name=DisputeStatusMessageQueue</depends>
  |      <depends optional-attribute-name="TargetProviderLoader">jboss.jms:service=JMSProviderLoader,name=MyRemoteJMSProvider</depends>
  |      <depends optional-attribute-name="SourceProviderLoader">jboss.jms:service=JMSProviderLoader,name=JMSProvider</depends>
  |      <attribute name="TargetUsername">guest</attribute>
  |      <attribute name="TargetPassword">guest</attribute>
  |      <!-- These are two separate queues that have been named identically -->
  |      <attribute name="SourceDestinationLookup">/queue/DisputeStatusMessageQueue</attribute>
  |      <attribute name="TargetDestinationLookup">/queue/DisputeStatusMessageQueue</attribute>
  |      <!-- QualityOfServiceMode = 2 means that messages are delivered "Once and Only Once"  -->
  |      <attribute name="QualityOfServiceMode">2</attribute>
  |      <!-- MaxBatchSize = 5 means that the bridge will wait until there are 5 messages before sending and then send as a batch  -->
  |      <attribute name="MaxBatchSize">5</attribute>
  |      <!-- MaxBatchTime = 4000 means if the batch size is not reached with this period, it will send what is there (ms) -->
  |      <attribute name="MaxBatchTime">4000</attribute>
  |      <!-- FailureRetryInterval = 5000 means if there is a connection failure, it will retry (ms) -->
  |      <attribute name="FailureRetryInterval">5000</attribute>
  |      <!-- MaxRetries = -1  means to keep trying indefinitely -->
  |      <attribute name="MaxRetries">-1</attribute>
  |      <attribute name="AddMessageIDInHeader">false</attribute>
  | </mbean>
  | </server>

remote-jms-ds.xml

<?xml version="1.0" encoding="UTF-8"?>
  | <connection-factories>
  | <mbean code="org.jboss.jms.jndi.JMSProviderLoader" name="jboss.jms:service=JMSProviderLoader,name=MyRemoteJMSProvider">
  |      <attribute name="ProviderName">RemoteXAConnectionFactory</attribute>
  |      <attribute name="ProviderAdapterClass">org.jboss.jms.jndi.JNDIProviderAdapter</attribute>
  |      <!-- The combined connection factory -->
  |      <attribute name="FactoryRef">XAConnectionFactory</attribute>
  |      <!-- The queue connection factory -->
  |      <attribute name="QueueFactoryRef">XAConnectionFactory</attribute>
  |      <!-- The topic factory -->
  |      <attribute name="TopicFactoryRef">XAConnectionFactory</attribute>
  |      <attribute name="Properties">
  |         java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
  |         java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces
  |         java.naming.provider.url=jnp://172.16.90.68:1099
  |      </attribute>
  | </mbean>
  | </connection-factories>

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

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



More information about the jboss-user mailing list