Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to know which beans(entity,session,message) are used in project

 
Kousik Majumder
Ranch Hand
Posts: 239
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

I am new in EJB.
Can somebody tell me what are the ways to know which beans are used in the project like Entity or Session or Message-driven beans.

Please help.
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ask the person/people who wrote the project? Or look at the code?
 
vk jain
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Analysis application.xml file kept at META-INF folder. It will have all the entries related to all the bean deployed in the application.
 
Mark E Hansen
Ranch Hand
Posts: 650
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
vk jain wrote:Analysis application.xml file kept at META-INF folder. It will have all the entries related to all the bean deployed in the application.

No ... for EJB3 (at least) entries in the application.xml are optional. It can all (most?) be done through the use of annotations in the source code.
I have an EJB3-based J3EE application which includes entities and session beans, and no application.xml at all.
 
Jeremiah Orr
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Most IDEs have a straightfoward way to find this out. For example, in RAD (Eclipse-based) you can go to the Enterprise Explorer, then expand [your project] > [the icon with 3.0], then it has all MDBs and Session Beans. For JPA entities, you can expand [your project] > JPA Content.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic