Thanks for that. I thought jboss would take care of that automagically :)

It works fine as one jar and I managed to get it going by including
the interfaces and primary key of the entitybean in the jar file like
you said.


I guess it would be a common requirement to have multiple jars that
reference one another and it would take away from jboss's autodeployer
if you had to manually put the jars in the classpath.  It would also
seem clumsy to have to include the interfaces in the jar since they
are already known to jboss.  Maybe the jboss.xml could point to the
.jar containing the interfaces?

The book I'm reading makes it seem that this should be handled by the
deployment implementation.  Maybe when a jar is deployed the jar can
be added to the classpath?


ANYWAY: A Big thank you to everyone involved in jboss; I'm amazed by
the speed of development! Great work!


Nortje, Andrew writes:
 > Geoff
 > 
 > If you are just learning this stuff put everything in one big jar file. The
 > problem you have is that you have to tell jBoss where to find the beans in
 > the other jar file. You need to add <ejb-ref> in both your jboss.xml and
 > ejb-jar.xml like this 
 > 
 > jboss.xml
 >          <ejb-ref>
 >            <ejb-ref-name>ejb/InternalAccount</ejb-ref-name>
 >            <jndi-name>account/InternalAccount</jndi-name>
 >          </ejb-ref>
 > 
 > ejb-jar.xml
 >       <ejb-ref>
 >         <description>Link to InternalAccount</description>
 >         <ejb-ref-name>ejb/InternalAccount</ejb-ref-name>
 >         <ejb-ref-type>Session</ejb-ref-type>
 >         <home>com.uni.account.InternalAccountHome</home>
 >         <remote>com.uni.account.InternalAccountRemote</remote>
 >       </ejb-ref>
 > 
 > This is not all. You need to add the interfaces (home and remote) of the
 > referenced ejb in your jar file. This still gave me errors and seems pretty
 > ugly and messy. Another solution is to have the two jar's in the jboss
 > CLASSPATH. I did not try this and went for the one big jar solution. When I
 > have more time I will try for more elegant solutions.


--
--------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Problems?:           [EMAIL PROTECTED]

Reply via email to