...
<subsystem xmlns="urn:jboss:domain:messaging:2.0">
<subsystem xmlns="urn:jboss:domain:messaging:2.0"> <hornetq-server>
<journal-file-size>102400</journal-file-size>
<connectors> <http
<http-connector name="http-connector" socket-binding="http">
<param key= <param key="http-upgrade-endpoint" value="http-acceptor"/>
< </http-connector>
<http <http-connector name="http-connector-throughput" socket-binding="http">
<param key="http-upgrade-endpoint" value="http-acceptor-throughput"/>
<param key="batch-delay" value="50"/>
</http-connector> <in- </http-connector>
<in-vm-connector name="in-vm" server-id="0"/>
< </connectors>
<acceptors>
<http-acceptor http-listener="default" name="http-acceptor"/>
<http-acceptor http-listener="default" name="http-acceptor-throughput">
<param <param key="batch-delay" value="50"/>
<param <param key="direct-deliver" value="false"/>
</http-acceptor>
<in-vm-acceptor name="in-vm" server-id="0"/>
</acceptors>
<security-settings>
<security-setting match="#">
<permission type="send" roles="guest"/>
<permission type="consume" roles="guest"/>
<permission type="createNonDurableQueue" roles="guest"/>
<permission type="deleteNonDurableQueue" roles="guest"/>
</security-setting>
< </security-settings>
<address-settings>
<address <address-setting match="#"> <dead-letter-address>jms.queue.DLQ</dead-letter-address>
<expiry-address>jms.queue.ExpiryQueue</expiry-address> <dead-letter-address>
<max-size-bytes>10485760</max-size-bytes> jms.queue.DLQ
<page-size-bytes>2097152</page-size-bytes> </dead-letter-address> <message-counter-history-day-limit>10</message-counter-history-day-limit>
</address-setting> <expiry-address>jms.queue.ExpiryQueue</expiry-address> </address-settings>
<jms-connection-factories> <connection-factory name="InVmConnectionFactory"> <max-size-bytes>10485760</max-size-bytes> <connectors>
<connector-ref connector-name="in-vm"/> <page-size-bytes>2097152</page-size-bytes> </connectors>
<entries> <message-counter-history-day-limit>10</message-counter-history-day-limit>
<entry name="java:/ConnectionFactory"/> </address-setting> </entries>
</connectionaddress-factory> settings>
<connection-factory name="RemoteConnectionFactory"> <jms-connection-factories>
<connectors> <connector-ref connector- <connection-factory name="http-connectorInVmConnectionFactory"/> </connectors>
<entries> <connectors> <entry name="java:jboss/exported/jms/RemoteConnectionFactory"/>
</entries> </connection-factory> <pooled <connector-connectionref connector-factory name="hornetqin-ravm"/> <transaction mode="xa"/>
</connectors> <connectors>
<connector-ref connector-name="in-vm"/> </connectors> <entries> <entries>
<entry name="java:/JmsXA"/> <entry <entry name="java:jboss/DefaultJMSConnectionFactoryConnectionFactory"/> </entries>
</pooled-connection-factory> </jms-connection-factories>
entries>
<jms-destinations> </connection-factory> <jms-queue name="ExpiryQueue">
<entry <connection-factory name="java:/jms/queue/ExpiryQueue"/> RemoteConnectionFactory"> </jms-queue>
<jms-queue name="DLQ"> <entry name="java:/jms/queue/DLQ"/> <connectors>
</jms-queue> <jms-queue name="sourceQ"> <entry <connector-ref connector-name="jms/sourceQhttp-connector"/> <entry name="java:jboss/exported/jms/sourceQ"/>
</jms-queue> <jms-queue name="bridge"> </connectors> <entry name="jms/queue/bridge"/>
<entry name="java:jboss/exported/jms/queue/bridge"/> <entries> </jms-queue> </jms-destinations> </hornetq-server>
<jms-bridge name="bridge-hq-wls" module="custom.oracle.weblogic"> <source> <connection-factory <entry name="ConnectionFactoryjava:jboss/exported/jms/RemoteConnectionFactory"/>
<destination name="jms/queue/bridge"/> </entries>
<context> <property key="java.naming.factory.initial" value="org.apache.activemq.jndi.ActiveMQInitialContextFactory"/> </connection-factory>
<pooled-connection-factory name="hornetq-ra">
<transaction mode="xa"/>
<connectors>
<connector-ref connector-name="in-vm"/>
</connectors>
<entries>
<entry name="java:/JmsXA"/>
<entry name="java:jboss/DefaultJMSConnectionFactory"/>
</entries>
</pooled-connection-factory>
</jms-connection-factories>
<jms-destinations>
<jms-queue name="ExpiryQueue">
<entry name="java:/jms/queue/ExpiryQueue"/>
</jms-queue>
<jms-queue name="DLQ">
<entry name="java:/jms/queue/DLQ"/>
</jms-queue>
<jms-queue name="dfQueue">
<entry name="jms/dfQueue"/>
<entry name="java:jboss/exported/jms/dfQueue"/>
</jms-queue>
<jms-queue name="bridge">
<entry name="jms/queue/bridge"/>
<entry name="java:jboss/exported/jms/queue/bridge"/>
</jms-queue>
</jms-destinations>
</hornetq-server>
<jms-bridge name="outgoing-msg-bridge" module="custom.bridge">
<source>
<connection-factory name="ConnectionFactory"/>
<destination name="jms/queue/bridge"/>
<context>
<property key="java.naming.factory.initial" value="org.apache.activemq.jndi.ActiveMQInitialContextFactory"/>
<property key="java.naming.provider.url" value="tcp://localhost:61616?jms.rmIdFromConnectionId=true"/>
</context>
</source>
<target>
<connection-factory name="ConnectionFactory"/>
<destination name="jms/queue/bridge"/>
<context>
<property key="java.naming.factory.initial" value="weblogic.jndi.WLInitialContextFactory"/>
<property key="java.naming.provider.url" value="t3://127.0.0.1:7001"/>
<property key="java.naming.provider.principal" value="xxx"/>
<property key="java.naming.provider.credential" value="xxx"/>
</context>
</target>
<quality-of-service>AT_MOST_ONCE</quality-of-service>
<failure-retry-interval>10000</failure-retry-interval>
<max-retries>-1</max-retries>
<max-batch-size>500</max-batch-size>
<max-batch-time>500</max-batch-time>
<add-messageID-in-header>true</add-messageID-in-header>
</jms-bridge>
<jms-bridge name="ingoing-msg-bride" module="custom.bridge">
<source>
<connection-factory name="ConnectionFactory"/>
<property key <destination name="java.naming.provider.url" value="tcp://localhost:61617?jms.rmIdFromConnectionId=truejms/dfQ"/> </context>
</source> <target> <context> <connection-factory name="ConnectionFactory"/>
<destination name="jms/queue/bridge"/> <context> <property <property key="java.naming.factory.initial" value="weblogic.jndi.WLInitialContextFactory"/>
<property key="java.naming.provider.url" value="t3://127.0.0.1:7001"/> />
<property key="java.naming.provider.principal" value="dubduanxxx"/>
<property key="java.naming.provider.credential" value="aleinu78xxx"/> </context>
</target> <quality-of-service>AT_MOST_ONCE</quality-of-service> <failure-retry-interval>10000</failure-retry-interval> <max-retries>-1</max-retries> <max-batch-size>500</max-batch-size> </context>
<max-batch-time>500</max-batch-time> <add-messageID-in-header>true</add-messageID-in-header> </jms-bridge> </source>
<jms-bridge name="bridge-wls-whq" module="custom.oracle.weblogic"> <source> <target> <connection-factory name="ConnectionFactory"/>
<destination name="jms/sourceQ"/> <context> <property key="java.naming.factory.initial" value="weblogic.jndi.WLInitialContextFactory <connection-factory name="ConnectionFactory"/>
<property key="java.naming.provider.url" value="t3://127.0.0.1:7001"/> <property key="java.naming.provider.principal" value="dubduan"/> <property key="java.naming.provider.credential" value="aleinu78 <destination name="jms/dfQ"/>
</context> </source> <target> <context> <connection-factory name="ConnectionFactory"/>
<destination name="jms/sourceQ"/> <context> <property key="java.naming.factory.initial" value="org.apache.activemq.jndi.ActiveMQInitialContextFactory"/> .jndi.ActiveMQInitialContextFactory"/>
<property key="java.naming.provider.url" value="tcp://localhost:6161761616?jms.rmIdFromConnectionId=true"/>
</context>
</target> </context>
</target> <quality-of-service>AT_MOST_ONCE</quality-of-service>
<failure-retry-interval>10000</failure-retry-interval>
<max-retries>-1</max-retries>
<max-batch-size>500</max-batch-size>
<max-batch-time>500</max-batch-time>
<add-messageID-in-header>true</add-messageID-in-header>
</jms-bridge>
/ </subsystem>