Wednesday, 15 July 2015

Event Driven Network(EDN) In SOA 11g

Today we are going to discuss how to use EDN in SOA11g,
Events are used to handle the business operations i.e.to transfer the data. Events contains the data in form of XML. In SOA, Events are handled by using either Bpel or Mediator. A process which generates the event is called Event Publisher. A process which consumes the event is called Event Subscriber.

Events are completely follows Fire and Forget mechanism means, Event Publisher don’t wait for the response from Event Subscriber. Even Event Publisher don’t know any information about Event Subscriber and vice versa. Events may contains one publisher with multiple subscribers i.e. one to one as well as one to many.
Let consider an example which demonstrates the EDN. We are going to design two SOA composites i.e. Event Publisher Process, Event Subscriber Process.

Note : We can design both publisher and subscriber in a single composite as well as in two different composites.

Design Event Publisher Process :

  • Create Bpel process as shown below

  • Design the Xsd file as shown below


  • Drag drop the invoke activity from component pallet and follow the below screen shots.
  • Drag drop one assign activity and map the data from input variable to invoke input variable.
  • Finally deploy the composite.
     

Design Event Subscriber Process :

  •   Create Bpel process as shown below
  • Click on add symbol as shown in the above screen shot and choose the required Event which we have created in Event publisher process
  •  Localize the .edl and .xsd files to your current composite.
  • Drag and drop the assign activity and perform the addition operation for calculating the Total marks.
  •  The bpel process will look  like as follows.
Testing
  • Request to the EDN publisher process 
  • Check the instance dashboard in EM for subscriber process.
  • Audit Trail of subscriber process.


No comments:

Post a Comment