• MAGE Grid Middleware Components
    • BPEL4Grid Engine
  • Grid Development Tools (GDT)
  • Virtualization Components
    • Xen Grid Engine (XGE)
    • Image Creation Station (ICS)
  • GridVPN

GDT

  • Login
  • Help/Guide
  • About Trac
  • Preferences
  • Wiki
  • Timeline
  • Search
wiki:NotificationTutorialUnicore

Context Navigation

  • ← Previous Version
  • View Latest Version
  • Next Version →


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.

http://ds.informatik.uni-marburg.de/MAGE/gdt/images/tutorial/NewJavaProjectUnicore.png

Fig. 1 – Creation of a new Java project

http://ds.informatik.uni-marburg.de/MAGE/gdt/images/tutorial/NewServicePageUnicore2.png

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.

http://ds.informatik.uni-marburg.de/MAGE/gdt/images/notificationtutorial/unicoreWSNWizard.png

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.

Download in other formats:

  • Plain Text

Trac Powered

Powered by Trac 0.12
By Edgewall Software.

Visit the MAGE project at
http://mage.uni-marburg.de/