-
1. Re: which is the best way to test modular EB project ?
michele.mazzei Aug 27, 2012 9:45 AM (in response to michele.mazzei)I think JNDI should be the simplest solution: using JNDI I can load an EJB of another module (using modules dependencies in order to see the classes):
@Stateless
public class MyService {
@EJB(mappedName="java:global/multi/multi-ejb/DummyService")
private DummyService service;
....
}
In this manner I can load an external EJB inside my module without redeploying the entities.jar module saving time.
-
2. Re: which is the best way to test modular EB project ?
soneill Aug 28, 2012 2:08 AM (in response to michele.mazzei)I've had a similar issue https://community.jboss.org/message/756291?tstart=0
My structure is:
ear
--lib
----entities.jar
----utilities.jar
--web.war
any ideas on a solution for having things work with just an @EJB notation?
-
3. Re: which is the best way to test modular EB project ?
michele.mazzei Sep 2, 2012 10:01 AM (in response to soneill)I think a possible solution is the inter-app example included in the jboss quickstart examples: in this example we have 2 different wars and an ejb jar used in common by both wars.
http://www.jboss.org/jdf/quickstarts/jboss-as-quickstart/inter-app/