Hi my friends,
pitching for my big blog about service discovery, I found something rather interesting:
@Path("/mypath")
@Singleton
public MyTestEJBBean{
@Inject MyService anInstance;
@PostConstruct
public void registerEndpointToZooKeeper(){
System.out.println("Doing some zookeeper stuff here");
}
@Get
@Produces("application/json")
public void actionForGetEndpoint(){
System.out.println("Something else happens here");
}
}