wood burning stoves 2.0*
The moose likes EJB and other Java EE Technologies and the fly likes How to know which beans(entity,session,message) are used in project Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "How to know which beans(entity,session,message) are used in project" Watch "How to know which beans(entity,session,message) are used in project" New topic
Author

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

Kousik Majumder
Ranch Hand

Joined: Sep 30, 2007
Posts: 229
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.


Thanks in Advance,
Kousik
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

Ask the person/people who wrote the project? Or look at the code?


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
vk jain
Greenhorn

Joined: Oct 05, 2007
Posts: 21
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

Joined: Apr 01, 2009
Posts: 643
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

Joined: Jan 20, 2010
Posts: 6
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.
 
Don't get me started about those stupid light bulbs.
 
subject: How to know which beans(entity,session,message) are used in project
 
Similar Threads
What mechanism do Stateful session bean use to store the session.
live customer project involving entity beans
Entity beans implementation
Timer Service registration
Need detailed steps to create EJB in websphere 6.1