@Retention(value=RUNTIME) @Target(value=METHOD) public @interface Command
Example:
@Service("TestSvc")
public class ServiceWithMultipleEndpoints {@Command("foo")
public void foo(Message message) { ... }@Command("bar")
public void bar(Message message) { ... } }
To compose a message with a command, specify a command
in the MessageBuilder like this:
MessageBuilder.createMessage() .toSubject("TestSvc") .command("bar") .done() .repliesTo(new MessageCallback() { ... }) .sendNowWith(bus);
Service
,
MessageBuilder
public abstract String[] value
Copyright © 2013-2015 JBoss, a division of Red Hat. All Rights Reserved.