@Retention(value=RUNTIME) @Target(value=TYPE) public @interface Remote
Usage notes: The most common way of invoking a remote service is via the Caller facility in ErraiIOC:
@Remote
public class MyService { void serviceMethod(); } public class ClientClass {@Inject
private Caller<MyService> myService; ... private void callRemoteService() { myService.call(new RemoteCallback() { ... }).serviceMethod(); } }
Another mechanism for invoking a remote service is the MessageBuilder.createCall()
API.
Copyright © 2013-2015 JBoss, a division of Red Hat. All Rights Reserved.