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
posted 6 years ago
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