• Post Reply Bookmark Topic Watch Topic
  • New Topic

EJB 3.0 Entity Beans

 
murali kankanala
Ranch Hand
Posts: 110
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Friends,

I read some of the tutorials on EJB 3.0, all of the tutorials explains JPA always they never talk about Entity Beans.

1) That means in EJB 3.0 no more Entity Beans only JPA Entities and EntityManager ? Could you please explain me ?
2) EJB 3.0 expalins deployment descriptors not required, if that is true how and where should i configure pool of instances ?


thanks,
Murali
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 35709
408
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Murali,
1) Yes. JPA replaced entity beans in EJB 3.
2) Deployment descriptors are optional. You are allowed to specify everything using annotations. In practice, some things makes sense to put in an annotation like a remote interface name. Others make sense to stay in the deployment descriptor like a transaction timeout.
 
Amol Nayak
Ranch Hand
Posts: 218
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
EJB 3.0 expalins deployment descriptors not required, if that is true how and where should i configure pool of instances ?


You dont specify pool settings in deployment descriptor, it is done in an application server vendor specific way.
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 35709
408
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Amol Nayak wrote:
EJB 3.0 expalins deployment descriptors not required, if that is true how and where should i configure pool of instances ?


You dont specify pool settings in deployment descriptor, it is done in an application server vendor specific way.

Some app servers put them in an "extensions" descriptor. You are correct that it isn't a good example though since it's non-standard. How about a JNDI reference as a better example?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!