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

J2EE Compliance Test

 
Sam Gehouse
Ranch Hand
Posts: 281
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 5093
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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).
 
Jeroen Wenting
Ranch Hand
Posts: 5093
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic