Tuesday 14 January 2014

HOW TO DEVELOP EVENT DEFINITION CREATION USING A MEDITATOR(SOA 11G)




Lab Guides :


STEP 1 :GO TO Jdeveloper.

STEP 2 : Click On File-> New Generic Project -> Click OK.

STEP 3 : Under project name section  give "mylearning_mediatorevents_yourname" -> select "soa" from available list under "Project Technologies" and move towards right under Selected Section.

STEP 4 : Click Next-> select composite with Mediator-> click Finish

STEP 5 : Click on “Event definition creation icon “ as shown in pic (beside green arrow)


STEP 6 : Provide the EDL file name ,click on “+” button below ,select torch buton,select your xsd and finally below page appears :



Step 7 : Drag and drop a mediator activity ,choose option below and click OK



Step 8 : Right click on mediator and select,Published events ,click on “+” button select your Event and below page appears :



STEP 9 :  Finally your mediator will look like this as shown below :



STEP 10 :  Again drag and drop another mediator from component palette, drag and drop on components section,and select same options and finally it looks like as shown below :

STEPS FOR FILWRITE :





 Right Click on External References (right side) under composite.xml and select “Insert” then “FileAdapter”then below page appears :


Just follow the screenshots to complete the wizard(Click Next each time ) :











Select your xsd by clicking on “” icon





Map the mediator2 with FileAdapter and finally looks like this :




STEP 11 : Right click on Mediator2 ,select subscribed events, click “+” button,select “Event1 “created before as shown below :

 

Step 12: Click OK on the above step and finally meaditor 2 is able to subscribe to the published events. Double click on medaitor2 and below page appears :



STEP 13 : Click on “Event Subscriptions” link ,click on “+” button select Event1 and click “ok” and below page appears :





STEP 14 : Click on green icon on right hand side ,select “ static routing rule “ and below page appears :




Step 15 : Select “ Event” from the options above,select “Event1” created before and click on ok. And finally below page appears :




Step 16 : Select “ icon ,and below page appears :




Step 17 : Select create new mapper file,click “OK” and below page appears ,map the elements one to one:




Your complete composite.xml looks like this :



OUTPUT :

Compile Deploy and test your services. J








No comments:

Post a Comment