DataBase Route Node

Post on 19-Jan-2016

9 views 0 download

Tags:

description

document about database route node

Transcript of DataBase Route Node

DataBase Route NodeOpen WMQ-->Integration Nodes-->Configurable Services-->New-->Configurable Service.

Name-->Data4(U can Provide AnyName).Type-->SELECT JDBC Provider. Template-->DB2.

ConnectionURLFormat-->Server(182.74.103.11),Port-->50001,Database-->WMB,User-->Eaiuser1,Password-->Eaiuser1.

Select Database-->WMB(Mention),PortNumber-->50001,ServerName-->182.74.103.11,SecurityIdentity-->Trans(U r Wish). These are Mandratory Fields.Next-->Finish.

Right Click JDBC Provider/Data4-->Properties.

Select DataBaseSchemaName-->eaiuser1.(username of Database).

Open Console.TYPE mqsisetdbparms IB9NODE1(Broker Name) -n jdbc::Trans(SecurityIdentifierName) -u (Username)eaiuser1 -p (Password)eaiuser1. As shown in below figure.

Next mqsireload IB9NODE1(Broker Name).

File-->New-->IntegrationProject.

Project Name-->Simple_Pro

Simple_Pro-->New-->Message Flow.

Message Flow Name-->DataBaseRoute.

Drag Nodes As Shown in Figure.

Double Click on DataBase Route Node-->Add Output Terminal-->First

Establish Connection As shown in Figure.

Add BreakPoint As shown in Figure.

Double Click On MQ Input-->Queue name-->IN(Create IN queue in MQ Under Respective Broker QM).

MQ Output-->INT.

Select Input Message Parser(XMLNSC) IN MQ Input.

Double Click on DataBase Route-->Data Source name-->Data4(which we mention in previous) in MQ.

Click On Add.

Provide Table Name,And Column name(which we want to retrieve),Operate-->ASC-->OK.

Now Set Condition Table Name,Column Name,Operator-->=,Value Type-->Element(Because we are pasiing Input Message as xml,so we need to select value Type As Element).And Set Condition($Body/Emp/Name) As Shown In figure.

Click on Filter Expression Table.

Set Condition $Dragon_Status='Completed' which is nothing but table name and Column name where Completed is Retrieve Data,so if it is match message will go to Match Terminal.

Right Click on Message Flow-->Deploy As shown in Figure.

You Can Able to See That Open Input Count Increses to 1.

Create Input Message As shown in Figure.

So,The Condition is Match,so queue went to The MATCH Terminal.

Our output Message as shown in Figure.