sesion mean conversional state.
or session mean i need to identify user when his made a second request that this is a his second request?
how can i archieve this using EJB?
I know how to do this using Servlets.
Samanthi perera wrote:
I read that Entity beans are the worst part of EJB3.SO can we replace the Entity beans with Anyother thing?
Where did you read that? As I said in another post, there are no entity *beans* in EJB3. They are just entities. And I have never heard that they are the worst part of EJB3. EJB2.x entity beans, yes, that's a different story.
In this example i used Entity beans for Persistance.
Nope, you are wrong! You are not using entity beans at all! What you use, is called "entities", not entity beans.
Please put some effort to use the proper terminology.
Entity beans are EJB 2.1 legacy, and are managed by the EJB container (so they really are type of EJBs)
Entities are a JPA artifact, and they are not managed by the EJB container, but by the JPA provider instead (so they are not EJBs at all)
SCJP 6 (86% - the hard way), SCBCD 5 (81% - the hard way)