use of org.apache.webbeans.spi.ConversationService in project tomee by apache.
the class StatefulConversationScopedTOMEE1138Test method startConversation.
@Before
public void startConversation() {
final WebBeansContext webBeansContext = WebBeansContext.currentInstance();
webBeansContext.registerService(ConversationService.class, new ConversationService() {
@Override
public String getConversationId() {
return "conversation-test";
}
@Override
public String generateConversationId() {
return "cid_1";
}
});
webBeansContext.getService(ContextsService.class).startContext(ConversationScoped.class, null);
}
Aggregations