I have an application in a .ear
: a .war
archive and a .jar
with EJBs.
There are two clusters of servers. I want to deploy my .war
on one cluster and the .jar
to another, so that both of them can be individually deployed and to allow proper load balancing.
Currently I'm getting the following error:
Error resolving ejb-ref 'over.9.thousand.Servlet/statefulEjbBean' from
module 'war' of application 'application'.
The ejb-ref does not have an ejb-link and the JNDI name of the target bean
has not been specified.
Attempts to automatically link the ejb-ref to its target bean failed
because no EJBs in the application were found to implement the
'this.is.StatefulEjbBeanRemote' interface.
Please link or map this ejb-ref to its target EJB and ensure
the interfaces declared in the ejb-ref are correct.
Seems that the EJBs cannot be injected into the servlets from the .war
. I need to inject EJB2 and EJB3 session beans.
The app server is Weblogic 10.
Please share your ideas on how this can be configured.