Win a copy of Java Concurrency Live Lessons this week in the Threads forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

container compatibility  RSS feed

 
Bernhard Neuhauser
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

As far as i know: J2EE is a huge spec consisting of several subspecs, design patterns and so on ..

This would imply that there is a chance, that an ear would run on more then once container.

But in practice? Is it possible to develope an application with jboss (or glassfish) and deploy it for example on oc4j in the future? Or maybe the other way: Ist it possible to develope an ejb based app with oc4j and use a smaller / cheaper container in the future?

thx for your feedback
Bernhard Neuhauser
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

This would imply that there is a chance, that an ear would run on more then once container.

This is one of the reasons the J2EE specification exists.

If a container supports the spec. and you create an application on it (with the obvious caveate that you don't use any container specific features not in the spec.) then you should be able to deploy it on any other spec. compliant server. There are configuration features that will always be container specific (a DataSource is probably the most common one) but presuming you configure these on your server the app. should just work.

Or that's the theory. In practice the spec. is open to interpretation, so you will always find behaviour that differes from vendor to vendor. Expect some work if you do swap application servers; how much work will differ depending on the server you choose.
 
Bernhard Neuhauser
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So it seems like there are only minor parts uncovered by the ejb spec.
(+ all vendor specific extensions i guess)

thx, thats all i wanted to know
Bernhrad
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!