Package ch.rasc.wamp2spring.annotation
Annotation Interface WampProcedure
Annotation that denotes a method that is called when the Dealer receives a
CallMessage and the procedure name matches the configured value() or
name() attribute.
If no procedure name is configured the method listens for the name
'beanName.methodName'
The method feed in the following example listens for CallMessage
that are sent with the procedure name 'myService.feed'.
The method fetchNews is called by the library when a CallMessage
with the procedure name 'fetch.news' arrives.
@Service
public class MyService {
@WampProcedure
public List feed() {
}
@WampProcedure("fetch.news")
public List fetchNews() {
}
}
-
Optional Element Summary
Optional Elements
-
Element Details
-
value
Register the annotated method with this procedure name. If empty the default 'beanName.methodName' is used.- Default:
- ""
-
name
Register the annotated method with this procedure name. If empty the default 'beanName.methodName' is used.- Default:
- ""
-