This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes EJB and other Java EE Technologies and the fly likes EJB specifications Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "EJB specifications" Watch "EJB specifications" New topic

EJB specifications

chandana sapparapu
Ranch Hand

Joined: Sep 28, 2002
Posts: 63
I know all the concepts of EJB. But I haven't read EJB specs yet. What I want to know from you is:
1. Are the app deployment specifications the same for every app server.
That is, in Weblogic, I have to use WEB-INF dir which has web.xml folder, and the app root directory has a .war file(for web apps)
If I want to deploy my bean in Websphere, is the directory structure same?
This takes me back to my original question, are there specs by sun as to how to name the directories and deployment descriptors.
2. How easy/tough is it to move my app from one server to another server(in terms ofthe knowledge that I would require. I know that EJBs can be moved from one server to another server without making any changes in the code).
Lasse Koskela

Joined: Jan 23, 2002
Posts: 11962
The structure of an .ear is always the same, as is the structure of a .war. However, this does not mean that the applications are portable as such.
First of all, each application server vendor has the option of using a vendor-specific deployment descriptor for a J2EE module, which obviously isn't portable.
Second, there are some differences in how the application interacts with the container. For example, some application servers have some constraints on how a JNDI name should look like. You should take a look at TSS' clustering experiences to see examples of real-life portability issues.

Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
Chris Mathews
Ranch Hand

Joined: Jul 18, 2001
Posts: 2712
One of the other major pains in migrating between Application Servers is the difference in class loading.
Pradeep bhatt
Ranch Hand

Joined: Feb 27, 2002
Posts: 8904

Chris is back.

Chris Mathews
Ranch Hand

Joined: Jul 18, 2001
Posts: 2712
Originally posted by Pradeep Bhat:
Chris is back.

Yes, after an extended sabbatical I have returned! Unlike Lasse, I have made a resolution to spend more time on the Ranch over the next year. Just don't tell my wife or kids!
Thanks for noticing Pradeep... now where is that emoticon for the smiley with a tear in its eye when you need it?
Pradeep bhatt
Ranch Hand

Joined: Feb 27, 2002
Posts: 8904

Chris, I am still waiting for your JMX article?
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
subject: EJB specifications
Similar Threads
My First Mock Exam question :)
Problem referencing EJB in web application on Websphere
DAO and EJB etc..
Distributed EJB lookup problem