• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Junilu Lacar
  • Liutauras Vilda
Sheriffs:
  • Paul Clapham
  • Jeanne Boyarsky
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Piet Souris
  • Carey Brown
Bartenders:
  • Jesse Duncan
  • Frits Walraven
  • Mikalai Zaikin

EJB 3.0 Entity Beans

 
Ranch Hand
Posts: 110
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
author & internet detective
Posts: 41147
848
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 218
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Posts: 41147
848
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
reply
    Bookmark Topic Watch Topic
  • New Topic