Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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
- (10:38:12) slegrik left the room (quit: Ping timeout: 240 seconds).
- (10:40:38) atomatom1 left the room (quit: Remote host closed the connection).
- (10:41:31) atomatom [[email protected]] entered the room.
- (10:43:29) ddadlani [ddadlani@nat/redhat/x-jibxrrmztabttrze] entered the room.
- (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 ?
- (10:44:21) mbarkley: vwjuicew: correct. there's also in the @Service annotation that lets you specify another String as the name
- (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 ?
- (10:47:19) mbarkley: vwjuicew: correct. only useful for listening. not for sending
- (10:48:46) vwjuicew: mbarkley: ok. Thank you Max ! :)
- (10:49:09) mbarkley: vwjuicew: you're welcome :)
Advertisement
Add Comment
Please, Sign In to add comment