| Version 15 (modified by stancho, 2 years ago) (diff) |
|---|
Notifications for Unicore Services
Last updated: Apr. 01, 2011
To be able to use the WS-notifications in Unicore note that the Unicore container needs some additional web services. The good news is that they are already implemented as a part of the container. However you must either edit the configuration file wsrflite.xml manually and add the following lines, or enable GDT2 to do it for you:
<!-- Notification start -->
<service name="NotificationConsumer?" wsrf="false" persistent="false">
<interface class="de.fzj.unicore.wsrflite.xmlbeans.wsn.NotificationConsumer?" /> <implementation class="put.here.your.notification.ConsumerService?"/>
</service>
<service name="NotificationProducer?" wsrf="true" persistent="false">
<interface class="de.fzj.unicore.wsrflite.xmlbeans.wsn.NotificationProducer?" /> <implementation class="de.fzj.unicore.wsrflite.xmlbeans.wsn.impl.NotificationProducerHomeImpl?" />
</service>
<service name="Subscription" wsrf="true" persistent="false">
<interface class="de.fzj.unicore.wsrflite.xmlbeans.wsn.ISubscription" /> <implementation class="de.fzj.unicore.wsrflite.xmlbeans.wsn.impl.SubscriptionHomeImpl?"/>
</service>
<!-- Notification end -->
Start the wizard and create a service.

Fig. 1 – Creation of a new Java project

Fig. 2 - Input to the new Unicore 6 Service Wizard.
On Figure 2 go to next and then edit the Unicore 6 Notification Service Wizard.

Fig. 3 - Unicore 6 Service Notification Wizard.
The files that the user has to edit are the service class implementation (MathService?) and the client class (MathClient?). The methods that can be edited contain in their body
begin-user-code
end-user-code.