File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes EJB and other Java EE Technologies and the fly likes Tool to validate bean Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Tool to validate bean" Watch "Tool to validate bean" New topic

Tool to validate bean

Pradeep Kadambar
Ranch Hand

Joined: Oct 18, 2004
Posts: 148

Is there a tool to validate the Java Beans against the specification. Any tool that comes with eclipse or Ant/Maven plugin?

Roger Chung-Wee
Ranch Hand

Joined: Sep 29, 2002
Posts: 1683
I think any tool would be supplied by the EJB server provider. For example, Oracle Server's EJB Verifier validates the ejb-jar.xml against Document Type Definition (DTD) and verifies EJB classes classes for inconsistencies, WebLogic Server's appc compiler validates the deployment descriptors for compliance with the current specifications.

SCJP 1.4, SCWCD 1.3, SCBCD 1.3
Pradeep Kadambar
Ranch Hand

Joined: Oct 18, 2004
Posts: 148
Not necessarily the EJB spec validator, can any tool verify against normal Java Bean spec.
Scott Selikoff
Saloon Keeper

Joined: Oct 23, 2005
Posts: 3753

Not really. There are some like Eclipse that make a good effort to. What you have to keep in mind is that although J2EE technology is designed to be modular, most implementations are still highly dependent on the application server platform. The best test is to deploy on a specific platform and record the errors on deployment.
[ March 26, 2008: Message edited by: Scott Selikoff ]

[OCA 8 Book] [Blog]
I agree. Here's the link:
subject: Tool to validate bean
It's not a secret anymore!