File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
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
Author

J2EE deployment involving ejb-jar and war

Preetham Chandrasekhar
Ranch Hand

Joined: Nov 05, 2003
Posts: 98
All,

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?

Thanks


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

Joined: Feb 01, 2005
Posts: 580
    
    5
Preetham,

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).

Regards,
Reza


Independent Consultant — Author, EJB 3 in Action — Expert Group Member, Java EE 6 and EJB 3.1
 
 
subject: J2EE deployment involving ejb-jar and war