vwjugow

chat errai @Service

May 27th, 2014
199
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.22 KB | None | 0 0
  1. 10:37:04) mbarkley: vwjuicew: a @Service class that implement message callback is a plain errai bus messaging service. errai will create a messaging service using the simple class name as a subject and invoke the callback method when a message is received
  2. (10:38:12) slegrik left the room (quit: Ping timeout: 240 seconds).
  3. (10:40:38) atomatom1 left the room (quit: Remote host closed the connection).
  4. (10:41:31) atomatom [[email protected]] entered the room.
  5. (10:43:29) ddadlani [ddadlani@nat/redhat/x-jibxrrmztabttrze] entered the room.
  6. (10:43:31) vwjuicew: mbarkley: ok, so if I annotate class MySimpleClass with @Service, and I send a message with errai bus to "MySimpleClass" subject, the callback of that class will be invoked ?
  7. (10:44:21) mbarkley: vwjuicew: correct. there's also in the @Service annotation that lets you specify another String as the name
  8. (10:46:41) vwjuicew: mbarkley: yeah, ok. So if I won't use that subject, and I'm subscribing that class to a different subject, the @service is of no use for me right ?
  9. (10:47:19) mbarkley: vwjuicew: correct. only useful for listening. not for sending
  10. (10:48:46) vwjuicew: mbarkley: ok. Thank you Max ! :)
  11. (10:49:09) mbarkley: vwjuicew: you're welcome :)
Advertisement
Add Comment
Please, Sign In to add comment