Vous êtes sur la page 1sur 8

config mq server of esb end

1.create queue manager and default dead letter queue


crtmqm -u Death.Queue esbmqm

2.create local queue to receive the message processed


runmqsc esbmqm
define qlocal(esb.response.queue)

3.create transmission queue: esb.transmission.queue


define qlocal(esb.transmission.queue) usage(XMITQ)

4. create remote queue: to.javaee


define qremote(to.javaee) rname(In.Queue) rqmname(javaeemqm) xmitq(esb.transmission.queue)

5. create listener: LISTENER.TCP,port:1416


define listener(LISTENER.TCP) port(1416)

6.create sender channel


define channel(channelss.sender) chltype(SDR) conname('10.10.47.224(1438)') xmitq(esb.transmissi
note: 10.10.47.224 is the ip of javaee end,1438 is the mq listener port of javaee end; 10.10.47.

7. create receive channel use receive the message processed from javaee
define channle(channel.response) chltype(RCVR) xmitq(TCP)

config mq server of javaee end


1.create queue manager and default dead letter queue; queued manager's name is javaeemqm,and its de
crtmqm -u Death.Queue javaeemqm

2.create local queue named In.Queue to receive the message from esb
runmqsc javaeemqm
define qlocal(In.queue)

3.create local queue named Reply.Queue


define qlocal(Reply.Queue)

4.create transmission queue named javaee.transmission.queue


define qlocal(javaee.transmission.queue) usage(xmitq)

5.create remote queue called to.esb


define qremote(to.esb) rqmname(esbmqm) xmitq(javaee.transmission.queue)

6.create listener named LISTENER.TCP and set its port 1438


define listener(LISTENER.TCP) port(1438)

7.create receive channel to accept the messsage from esb end


define channle(channel.sender) chltype(RCVR) xmitq(TCP)
note: channel.sender is receive channel name,the name is the same as sender channel name of esb en

8.create send channel to return the message processed to esb end


define channel(channel.response) chltype(SDR) conname('10.10.47.249(1416)') xmitq(javaee.transmis

Note: 10.10.47.249 is the ip of esb end,1416 is the mq listener port of esb end
channel.response is the name of sender channel,and it is the same as receive channel name of esb
10.10.47.224 is local address. If create a sender channel,the parameter locladdr is valid and req
install tocfT24ra-ra.rar to websphere enviroment
1. Resource Adapters--> Install tocfT24ra-ra.rar using default values
2. Resource adapters-->TOCF T24 Resource Adapter
Create new J2C Connection Factory, Input the value of Name,JNDI Name
Name:T24 JCA Connection Factory
JNDI NAME:jca/t24ConnectionFactory
3.Resource adapters-->TOCF T24 Resource Adapter-->T24 JCA Connection Factory-->Custom properties-->
ActionTimeout:120
envVariables:OFS_SOURCE=GCS
hosts:127.0.0.1
ports:20002

Config JMS
1.Service Integration Bus-->Buses
Create new Service Integration Bus: BrowserBus

2.Service Integration Bus --> Buses --> BrowserBus


Switch to tab 'Local Topology' and add a new Bus member-->Select Websphere MQ Server option-->ins
3.JMS-->Connection Factories
Create new JMS Connection Factories-->Websphere MQ messaging Provider
Name:T24 JMS Connection Factory
JNDI NAME:jms/t24CxFactory
Bus: BrowserBus
4.JMS-->Queue Connection Factories
Create a new Queue Connection Factories-->Websphere MQ messaging Provider-->
Name:T24 Queue Connection Factory
JNDI NAME: jms/t24QueueCxFactory
Bus:BrowserBus
5. JMS-->Queues
Create a new JMS Queue-->Websphere MQ messaging Provider-->
Name:T24 OFS Queue
JNDI Name:jms/t24OFSQueue
Bus:BrowserBus
Queue name: In.Queue
Queue Manager:javaeemqm

6.JMS-->Queue-->T24 OFS QUEUE-->Websphere MQ Connection Properties


Queue Manager Host : 127.0.0.1
Queue Manager Port: 1438

7. JMS-->Queues
Create a new JMS Queue-->Websphere MQ messaging Provider-->
Name:T24 OFS Reply Queue
JNDI Name:jms/t24OFSReplyQueue
Bus:BrowserBus
Queue name: Reply.Queue
Queue Manager:javaeemqm

8. JMS-->T24 OFS Reply Queue-->Websphere MQ Connection Properties


Queue Manager Host : 127.0.0.1
Queue Manager Port: 1438

7.JMS-->Activation Specification
Create a new Activation specification-->Websphere MQ messaging Provider-->
Name: T24 OFS Message MDB
JNDI NAME:jms/t24OfsMessageMDB
Destination JNDI NAME:jms/t24OFSQueue
Queue Manager or Queue sharing group name: javaeemqm
Host Name: 127.0.0.1
Port: 1438
Server Connection Channel: SYSTEM.DEF.SVRCONN

deploy Browserweb.war under websphere enviroment


Enterprise Applications-->Install and start BrowserWeb.war using default values

deploy tocfee.ear under websphere enviroment


Enterprise Applications-->Install and start tocfee.ear using default values

Integrate websphere and mq

1.login the websphere console


2. modify JMS Connection Factory
Resource-->JMS-->Connection Factories-->T24 JMS Connection Factory,modify the following fields:
Queue Manager: javaeemqmq
Hostname:127.0.0.1
port:1438

3.modify Queue In.Queue attribute


Resource-->JMS-->Queue-->T24 OFS Queue,modify the following fields:
Queue Name:In.Queue
Queue manager or Queue sharing group name:javaeemqm
onclick link Websphere MQ Queue connection Attribute,modify the following fields
Queue manager host:127.0.0.1
Queue manager port:1438
Server connection channel name:BrowserBus

4.modify T24 OFS Reply Queue


Resource-->JMS-->Queue-->T24 OFS Reply Queue, modify the following fields:
Queue name: to.esb
Queue manager or Queue sharing group name:javaeemqm
onclick link Websphere MQ Queue connection attribute,modify the following fields:
Queue manager host:127.0.0.1
Queue manager port:1438
Server connection channel name:BrowserBus
Destination JNDI name: jms/t24OFSQueue

5.modify Activation specification


Resource-->JMS-->Activation specification, modify the following fields:
Queue Manager:javaeemqm
Hostname:127.0.0.1
Port:1438
Server connection channel:SYSTEM.DEF.SVR.CONN

6.Modify MQ server info


Servers-->Server types-->T24 MQ Server,modify the following
WebSphere MQ Server Name:javaeemqm
Server Type: Queue manager
Websphere MQ Host:127.0.0.1
Websphere MQ port:1438
Websphere MQ channel:SYSTEM.DEF.SVRCONN

7.modify Resource references


Enterprise Applications-->TOCF-EE_EAR-->Resource refernces
modify the column of Target Resource JNDI NAME
eis/t24ConnectionFactory: jca/t24ConnectionFactory
queue/t24OFSReplyQueue: jms/t24OFSReplyQueue
queue/t24OFSQueue:jms/t24OFSQueue
queue/t24OFSReplyQueue: jms/t24OFSReplyQueue
queue/requestQueue:jms/t24OFSQueue
queue/responseQueue:jms/t24OFSReplyQueue

8.modify Activation specification


Enterprise Applications-->TOCF-EE_EAR-->Manager modules -->TOCFPLUGIN-->Resource Adapter-->J2C Ac
Name:T24 Plugin Resource Adapter(old: com.temenos.tocf.common.jca.OFSMessageListner)
JNDI name:jca/t24PluginsResourceAdapter(old: eis/com.temenos.tocf.common.jca.OFSMessageListner)

9.modify J2C Connection Factory Custom properties


Rescource Adapter-->J2C Connection Factories-->T24 JCA Connection Factory-->Custom properties
actionTimeout:120
envVariables:OFS_SOURCE=GCS
ports:20002 ( need create a startagent.bat file for the port)

Node:when you create Queue or Connection Facotories or Activation specification, please select the
(10.10.47.249)
ne ip,When create sender channel,localaddr parameter is valid and required

Death.Queue

dr(10.10.47.224)
ion properties
tion-->T24 Plugin Resource Adapter

mple,you can select Node=PC2011060201rcmNode01

Vous aimerez peut-être aussi