Author: edwardsmj
Date: Wed Oct 29 03:55:31 2008
New Revision: 708868
URL: http://svn.apache.org/viewvc?rev=708868&view=rev
Log:
@EventTypes annotations added (as examples)
Modified:
tuscany/sandbox/event/samples/event-jms/src/main/java/weather/WeatherPublisher.java
tuscany/sandbox/event/samples/event-jms/src/main/java/weather/WeatherSubscriberComponent.java
Modified:
tuscany/sandbox/event/samples/event-jms/src/main/java/weather/WeatherPublisher.java
URL:
http://svn.apache.org/viewvc/tuscany/sandbox/event/samples/event-jms/src/main/java/weather/WeatherPublisher.java?rev=708868&r1=708867&r2=708868&view=diff
==============================================================================
---
tuscany/sandbox/event/samples/event-jms/src/main/java/weather/WeatherPublisher.java
(original)
+++
tuscany/sandbox/event/samples/event-jms/src/main/java/weather/WeatherPublisher.java
Wed Oct 29 03:55:31 2008
@@ -18,6 +18,7 @@
*/
package weather;
+import org.osoa.sca.annotations.EventTypes;
import org.osoa.sca.annotations.Remotable;
// FIXME: At the moment, we need this @Remotable to make sure all the
processing
@@ -25,6 +26,7 @@
@Remotable
public interface WeatherPublisher {
+ @EventTypes("ExampleEvent")
void publishWeatherReport(String report);
}
Modified:
tuscany/sandbox/event/samples/event-jms/src/main/java/weather/WeatherSubscriberComponent.java
URL:
http://svn.apache.org/viewvc/tuscany/sandbox/event/samples/event-jms/src/main/java/weather/WeatherSubscriberComponent.java?rev=708868&r1=708867&r2=708868&view=diff
==============================================================================
---
tuscany/sandbox/event/samples/event-jms/src/main/java/weather/WeatherSubscriberComponent.java
(original)
+++
tuscany/sandbox/event/samples/event-jms/src/main/java/weather/WeatherSubscriberComponent.java
Wed Oct 29 03:55:31 2008
@@ -22,7 +22,7 @@
import org.osoa.sca.annotations.Consumer;
import org.osoa.sca.annotations.Remotable;
-
+import org.osoa.sca.annotations.EventTypes;
/**
@@ -32,6 +32,7 @@
public class WeatherSubscriberComponent {
@Consumer(name="weatherSubscriber")
+ @EventTypes("ExampleEvent")
public void onWeather(String report) {
System.out.println("Weather report received at " + new Date() + ": " +
report);
}