Friday, June 27, 2014

WLS 12c to JBOSS 7.1.1.Final JMS Bridging Setup

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
    1. 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
    2. 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 -> Finish

Create 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 Nameselect target JMS server > Finish

Create JMS Queue and ConnectionFactory

Name Sorted Ascending Type JNDI Name Subdeployment Targets 
MyConnectionFactoryConnection Factoryjms/QCFDefault Targettingmyserver
MyTestQueueQueuejms/TestQMyTestQueueSubDeployMyJMSServer

create/select subdeployment and target server

Create JMS Bridge

    create source destination: queue@WLS
    create target destination: queue@JBOSS
    create JMS bridge


    Restart WLS 

        Ref:

        No comments:

        Post a Comment