File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java in General and the fly likes J2EE Compliance Test 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 » Java in General
Bookmark "J2EE Compliance Test" Watch "J2EE Compliance Test" New topic
Author

J2EE Compliance Test

Sam Gehouse
Ranch Hand

Joined: Jul 21, 2003
Posts: 281
Is there any toolkit available which will identify if code (and or architecture) is J2EE compliant?

I am familiar with J2EE compliance with Servers, Driver etc.

However, I was thinking if any tool is available that will be code-centric to identify if the code and architecture itself is J2EE compliant and will identify vialations etc.
Jeroen Wenting
Ranch Hand

Joined: Oct 12, 2000
Posts: 5093
If it runs without error on a J2EE certified application server it's considered compliant.
There's nothing that forces you to adopt a specific architecture, thank the gods for that.

The only testsuites are for server certification. If you're creating a J2EE application server contact Sun for details.


42
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336


If it runs without error on a J2EE certified application server it's considered compliant.

If only it were that consistant! Some app servers are "more compliant" than others, so to speak. JBoss, for example is very forgiving of not 100% compliant apps, whereas WebSphere is completely intollerant. I'd say if you can run it on more than a couple of J2EE certified app servers then it is probably compliant. Closer than that, its very hard to say (since there are other possibilities, such as IO operations in an EJB method which doesn't turn up in normal system test).


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
Jeroen Wenting
Ranch Hand

Joined: Oct 12, 2000
Posts: 5093
Websphere will accept a lot of noncompliant code if you use their own APIs.
If you use only standard APIs it won't.

JBoss still isn't certified J2EE compliant AFAIK, certainly most versions are not.

As to "more compliant", that usually means an appserver not supporting something it should rather than supporting something it should not

So get a certified server and don't use any proprietary APIs that server supplies and your app SHOULD work on any certified server.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: J2EE Compliance Test
 
Similar Threads
J2EE Compliant application
jakarta HTTPClient J2EE compliance
how to make a jsp page available on my website
Does one need Experience ?
How can an application be J2EE complaint?