wood burning stoves*
The moose likes EJB and other Java EE Technologies and the fly likes J2EE deployment involving ejb-jar and war 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 "J2EE deployment involving ejb-jar and war" Watch "J2EE deployment involving ejb-jar and war" New topic

J2EE deployment involving ejb-jar and war

Preetham Chandrasekhar
Ranch Hand

Joined: Nov 05, 2003
Posts: 98

I currently have an ear which contains an ejb-jar file and a war file. So far...so good. All is working fine. I have a local interface of a stateless ejb that i use in the war and access the apis in the ejb. So with no specific configuration...the ear/ejb classloader is accessible to the war and hence all works just fine. Now I would like to split out the war from the ear and place it outside the ear. How can I use this setup...whats the configuration i have to do? Is it app server specific? Also I guess in this case I am forced to have all the interfaces of the ejb packaged as part of the client which in this case is the war?


"In theory, there is no difference between theory and practice. But, in practice, there is."<br /> - Jan L.A. van de Snepscheut
Reza Rahman
Ranch Hand

Joined: Feb 01, 2005
Posts: 580

Firstly why do you need to do this? What you are asking is possible, but might be difficult depending on the vendor (using remoting, global JNDI names, etc).


Independent Consultant — Author, EJB 3 in Action — Expert Group Member, Java EE 6 and EJB 3.1
It is sorta covered in the JavaRanch Style Guide.
subject: J2EE deployment involving ejb-jar and war
Similar Threads
manifest classpath
problem with the injection of an EJB that resides in a jar
How to deploy ejb application on two jvms?
Having trouble injecting EJB into a servlet
Global JNDI access with EJB 3.1 and JBoss 6