[jboss-user] [Beginners Corner] - Access remote interface in EAR

Klaus_JBOSS42 do-not-reply at jboss.com
Tue Aug 19 07:33:27 EDT 2008


I have an EAR file containing an EJB with some business logic and a WAR exposing some functionality as web services. So the structure is as follows:
-- WAR
-- EJB

The EJB within the EAR contains a remote interface I also want to use outside of it. Meaning other EJBs should use and implement the exact same interface. The EJB within the EAR will use JNDI to find the other beans and use the remote interface to do its stuff.

Now comes the fun part. If the outside EJBs are deployed into a running JBOSS (4.2.1) with the EAR in already deployed things work fine. If the JBOSS is started with them i get a "ClassDefNotFound" runtime exception (the remote interface cannot be found). So, I figure there is a dependency issue here - the new ones are being deployed before the EAR is deployed. I played around configuring it with annotations but couldn't get it done right. How do set a dependency to an remote interface?


View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4171234#4171234

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4171234

More information about the jboss-user mailing list