This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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: 3703

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 ]

My Blog: Down Home Country Coding with Scott Selikoff
I agree. Here's the link:
subject: Tool to validate bean
Similar Threads
why use assertion rather than xception Handling
Validation of XML and XSL
XML Verification question
XML Code
need a free schema vaidation tool