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.
thank you for ur reply
now i am clear with stateful and stateless