I am using Restful Service with resteasy implementation and turn ejb. I want to know how we create create session and maintain state in REST service in this case. Is there any examples available?
Simple example what I use:
@Stateless
public class TestResource implements TestResourceLocal {
@Override
public test test(String id, String param) {
//todo
}
}
@Local
@Path("/affilate")
public interface AffiliateResourceLocal {
@GET
@Path("{id}-{param}")
@Produces("application/json")
public void test(@PathParam("id") String id, @PathParam("param") String param);
}