-
1. Re: Two dependent EJBs
pazu Oct 19, 2001 8:40 AM (in response to jon_evans)Perhaps you should add both beans .jar files to a single .ear file. JBoss puts all jar files contained it the ear in the classpath for the application.
-
2. Re: Two dependent EJBs
nhebert Oct 20, 2001 7:51 PM (in response to jon_evans)Jon,
As you describe your EJB deployment as being two
jar files, it is important to view deployed
jar, war, and ear files as *separate* deployment
units. As such they would have no class loader
visibility across the deployment units.
If there are any dependencies, you must include
the Home and Remote interfaces of the dependent
component. That way you have visibility even
if the dependent component is deployed in another
app server.
It is an easy trap to view a JBoss app server
install as an island. It might not be. It may be
part of a federation of app servers running on
different machines. In this very possible scenario
class loader visibility across deployment units
on seperate machines is impossible.
As Marcus, pointed out, if you have close coupling
where two components always occur together, then it
makes sense to deploy them togther in the same
DU.
Just my thoughts.
Cheers,
Noel. -
3. Re: Two dependent EJBs
benwilcock Oct 24, 2001 5:30 AM (in response to jon_evans)Have a look at the answer I gave to Rich at theis address. It may be just what you are looking for.
http://www.jboss.org/modules/bb/index.html?module=bb&op=viewtopic&t=forums/ luck,
Ben