• Post Reply Bookmark Topic Watch Topic
  • New Topic

EJB and WODA

 
Ice Head
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If the ear and ejb jar files contain Server specific xml files(weblogic-ejb-jar.xml and weblogic-application.xml) then how could we call ejb's as write once and deploy anywhere? Won't we have to modify the module? Are the server specific xml files compulsory?
 
Bill Shirley
Ranch Hand
Posts: 457
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
the "write once, deploy anywhere" claim is a statement about Java in general.

the web server you're using should run anywhere that an equivalent JVM is available

there are certainly a lot of application server specific deployment details, sometimes because EJB doesn't specify how something should be done, other times because the server is trying to differentiate it's value to the customer,

some application servers may allow you to put all server specific configuration information external to a JAR/WAR/EAR/et al. AR but in reality it's not tough to reconfigure an AR to contain different server specific information, and could be automated with your build tools

of course, trying to maintain a consistency in that case could be a headache
 
Scott Selikoff
author
Bartender
Posts: 4033
18
Eclipse IDE Flex Google Web Toolkit
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"Ice Head"

There aren't many rules that you need to worry about here on the Ranch, but one that we take very seriously regards the use of proper names. Please take a look at the JavaRanch Naming Policy and adjust your display name to match it.

In particular, your display name must be a first and a last name separated by a space character, and must not be obviously fictitious.

Thanks!
Scott
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!