stateful-session-bean

LazyInitializationException with CDI Managed Bean and Stateful Session Bean

I have a CDI Managed Bean (a bean annotated with @Named that is used on JSF) that has a Stateful Session Bean injected. This session bean is like a service, it has the entity manager (annotated with @PersistenceContext(type= PersistenceContextType.EXTENDED)) and expose come methods to manipulate...

Java EE 6: How to call Stateful Session Bean from Stateless Session Bean?

I have a Stateful Session Bean (SFSB) which acts as authentication module. In the SFSB I store the current user that is logged in. Moreover I have some facades (which are Stateless Session Beans (SLSB)) that handles the JPA/SQL stuff for my entities. In order to check the access permissions of the...

When to use Stateful session bean over Stateless session bean?

A stateful session bean is defined as follows: Stateful Session Beans The state of an object consists of the values of its instance variables. In a stateful session bean, the instance variables represent the state of a unique client-bean session. Because the client interacts (“talks”) with its bean,...

access existing instance stateful inside stateless, java ee 6

Is it possible to access a stateful session bean inside a stateless bean? My problem is that I have a session bean called User and I want to access user info inside a stateless bean... I am trying like this: Ejb Side: @Stateless public class OfferManagerBean implements OfferManagerLocal,...