Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

is ejb portable?  RSS feed

 
rama rajesh
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,

I read like ejb is portable and distributed component. but while deploying or building ejb,the configuration file is like "weblogic-ejb-jar.xml" file like that(server name) , right? then we can't copy the ear(ejb) file from one server to another server , right?

please somebody clarify my simple doubt.
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes you can; its one of the main design drivers of JEE. The server specific deployment files will be ignored. You will need deployment files for whatever application server you move the file to.

You will find some servers (WebSphere specifically) implement the specifications in a stricter way then others, so deploying on a new server type might expose any mistakes you have made, but it is perfectly doable.
 
Jeanne Boyarsky
author & internet detective
Sheriff
Posts: 36417
454
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Rama,
If you stick completely to the standards, you can deploy the ear as is. The weblogic-ejb-jar.xml file is a WebLogic extension and therefore not portable. In practice many people choose the convenience of such extensions.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!