Configuration
- WLS 12c (WLS Queue, WLS JMS Bridge)
- JBoss 7.1.1.Final (JBOSS Queue)
Steps on JBOSS AS 7.1.1.Final
Create JMS Queue on JBOSS
Edit standalone-full.xml, add queue configuration as<hornetq-server>
<jms-destinations>
<jms-queue name="VSSQueue">
<entry name="queue/VSS"/>
<entry name="java:jboss/exported/jms/queue/VSS"/>
</jms-queue>
</jms-destinations>
</hornetq-server>
Start JBOSS With Fully Qualified Domain Name (FQDN)
Starting with FQDN allows the connection of WLS bridge originated from yet another host
$ cd $JBOSS_HOME
$ export JAVA_OPTS="$JAVA_OPTS -Djboss.bind.address=jboss_host.company.com"
$ export JAVA_OPTS="$JAVA_OPTS -Djboss.bind.address.management=jboss_host.company.com"
$ bin/standalone.sh -c standalone-full.xml
Steps on WLS 12c
Copy JBOSS JMS libs to <WLS_DOMAIN>/lib
To make WLS talk to JBOSS via JMS, we need to add- hornetq-jms-client.jar (from hornetq-2.2.14.Final/lib) and
- jboss-client.jar (from $JBOSS_HOME/bin/client)
to <WLS_DOMAIN>/lib (Note: JBOSS AS7.1.1.Final uses hornetq-2.2.13, but works with 2.2.14)
Deploy resource adapters jms-notran-adp/jms-xa-adp to WLS
To use JMS bridging, we need to deploy jms-notran-adp/jms-xa-adp to WLS as
- Click Deployments (LHS) > Lock & Edit > click install (RHS) > select /<USER>/Development/Env/wls1211_dev/wlserver/server/lib/jms-xa-adp.rar > choose Install this deployment as an application > select desired target server -> Finish
- Click Deployments (LHS) > check jms-xa-adp > click Start Serving all requests > State should be "Active"
Create JMS System Module
Login to WLS console > (LHS) Services > Messaging > JMS Modules > (RHS) new JMS Modules (System) > select target server -> FinishCreate JMS Server
in WLS console, (LHS) Services > Messaging > JMS Servers > (RHS) click New > enter Name > create and select persistent store > select target server > Finish
Create Subdeployment
in WLS console, (LHS) Services > Messaging > JMS Modules > (RHS) select JMS module we just created > click Subdeployments tab > click New > enter Subdeployment Name > select target JMS server > Finish
Create JMS Queue and ConnectionFactory
| Name | Type | JNDI Name | Subdeployment | Targets | |
|---|---|---|---|---|---|
| MyConnectionFactory | Connection Factory | jms/QCF | Default Targetting | myserver | |
| MyTestQueue | Queue | jms/TestQ | MyTestQueueSubDeploy | MyJMSServer |
Create JMS Bridge
create source destination: queue@WLS
create target destination: queue@JBOSS
create JMS bridge
Restart WLS
Ref:
No comments:
Post a Comment