-
1. Re: stateful vs stateless vs pojo conversation component
swd847 Mar 10, 2009 8:45 AM (in response to thiagu.m)You cannot use Stateless beans in conversation scope, only stateful. Stateless beans can only be bound to the stateless scope.
Stateless and stateful beans offer the following additional features:
- More advanced Container managed transactions, including REQUIRES_NEW
- The ability to inject an entityManager using @PersistenceContext instead of @In so you can get a transaction scoped entityManager.
- Instance pooling for stateless beans so you do not have to create a new bean every request
- Passivation to disk for statefull beans, so if the server is running low on memory idle beans can be swapped out.Performance wise it depends on the app and what you are using them for.
-
2. Re: stateful vs stateless vs pojo conversation component
thiagu.m Mar 12, 2009 7:30 AM (in response to thiagu.m)thank you for ur reply
now i am clear with stateful and statelessby
Thiagu