stateful-session-bean Questions

3

I am trying to integrate test a Spring Controller method that uses a spring session scoped bean which is injected into the controller. In order for my test to pass I must be able to access my sessi...

7

Solved

I am going through the Java EE 6 tutorial and I am trying to understand the difference between stateless and stateful session beans. If stateless session beans do not retain their state in between ...
Extensive asked 28/2, 2010 at 13:52

2

I am new to ejbs and I want to know whether a stateful session bean will be destroyed or not. I injected a stateful session bean in my servlet. Even after 30min I see that the bean is active. I am ...
Overcritical asked 30/1, 2014 at 14:54

1

I want to do clustering with ear project. I found one solution to run standalone in clustering using standalone-ha.xml configuration. I followed below article. It's working fine. Clustering in doma...
Provision asked 8/10, 2015 at 6:49

2

Solved

Is it allowed (and good practice) to hold some shared informations in our application by using a Singleton Session Bean inside a Stateless Session Bean? The SSB will be injected into the SLSB. @S...
Spaceship asked 25/8, 2015 at 6:25

3

Solved

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 (S...
Kerbela asked 11/7, 2012 at 16:30

2

Solved

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 variable...

2

Solved

I have a simple question but i can't find a answer for Java EE 6! Should a stateful session bean implements Serializable or not? I tested with and without implementing java.io.Serializable and th...
Moke asked 19/2, 2014 at 13:39

2

Solved

I thought that an entity found by em.find was automatically managed by em, even out a transaction, but this class below seems to show the contrary. Was I wrong or what is the mistake in that class?...
Labrecque asked 25/1, 2014 at 21:25

1

I am new to ejbs. I wrote a stateful session bean scoped @SessionScoped. Then I injected the ejb into my servlet. @Local @SessionScoped @Statueful public class CartServiceImpl implements CartServ...
Creodont asked 31/1, 2014 at 8:43

1

Solved

I am using Java EE 5, EJB 3.0, Jboss AS 4.3.2. I have simplest Stateful bean @Local public interface IStateBean { } @Stateful public class StateBean implements IStateBean { private static int ...
Docilla asked 11/11, 2013 at 10:33

2

Solved

I have a stateful EJB that I am using to keep current user information within my application. This EJB is injected into the servlet controller and used to store the last user logged in. However, th...
Colchicine asked 16/12, 2011 at 16:0

1

Solved

If the stateful session bean is going to passivate, its state is written to harddisk and then the bean instance will be freed to serve other request (at least this is my understanding). When the sa...
Nedra asked 19/11, 2011 at 6:38

1

Solved

If I have a @ManagedBean that's @SessionScoped, why would I use a @Stateful EJB? I used it before for shopping carts and maintaining a conversational state, but since a managed bean will be kept du...
Rhona asked 30/1, 2011 at 9:7

2

Solved

I'm learning EJB3 and I'm just curious when it's convenient to use SFSB? I can't find any nice example when SFSB realy solve easily some complex problem. Actually I see that SLSB can be used as we...
Callus asked 6/11, 2009 at 10:35
1

© 2022 - 2024 — McMap. All rights reserved.