I'm running a CDI based application on JBoss AS 7.1.1 which uses Conversation Scoped Beans. I need to invoke one of these beans from a RESTeasy Service. Unfortunately when I invoke the Conversation Scoped Bean
@Inject
private ConversationBean service;
@GET
@Produces("text/html")
@Path("/book")
public void bookTicket(Long l) {
service.book(l);
. . . .
}
the following error is returned:
Caused by: org.jboss.weld.context.ContextNotActiveException: WELD-001303 No active contexts for scope type javax.enterprise.context.ConversationScoped
Is there any workaround for this issue ?
Thanks!