...
Wiring a reference to a service using the ZeroMQ is done as follows in Java (note the ZeroMQ
annotation is in the org.fabric3:fabrice3-binding-zeromq-api
module):
Code Block | ||
---|---|---|
| ||
public class Client ...{ @ZeroMQ(target="ZMQService") protected Service service; public void invoke(){ service.invoke("message"); } } @ZeroMQ(service="ZMQService") public class ServiceImpl implements Service { public void invoke(String message){ //.... } } |
...