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.
- Finally deploy the composite.
Design Event Subscriber Process :
- Click on add symbol as shown in the above screen shot and choose the required Event which we have created in Event publisher process
- Drag and drop the assign activity and perform the addition operation for calculating the Total marks.
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