-
1. Re: External EJB reference
bao Oct 1, 2001 8:07 AM (in response to cmouttet)Hi cmouttet,
i have the same problem, can anyone help us?
bao -
2. Re: External EJB reference
p_d_austin Oct 1, 2001 8:30 AM (in response to cmouttet)Check the order of the elements in jboss.xml against the dtd to make sure the document is valid.
-
3. Re: External EJB reference
cmouttet Oct 2, 2001 10:24 AM (in response to cmouttet)Now I know what's going wrong.
I thought that the jboss.xml is the JBoss equivalent for sun-j2ee-ri.xml. That was my problem. The jboss.xml files must be included in the component's jar files.
We have to spit up the sun-j2ee-ri.xml <enterprise-beans> entries containing the <jndi-name> in every single component jboss.xml. Under <ejb-ref> ... <jndi-name> the jnp://host:1099/ must be added.
Starting with a very small 2-EJB-sized application. But every EJB must be in a different jar file to use external access.
Good luck
Chris -
4. Re: External EJB reference
p_d_austin Oct 2, 2001 10:57 AM (in response to cmouttet)You can package more than one ejb in an ejb jar if the ejb-jar.xml and jboss.xml has an entry for each ejb.
Paul -
5. Re: External EJB reference
cmouttet Oct 2, 2001 1:36 PM (in response to cmouttet)Paul,
thats right. This is what the manual mentioned as internal reference call.
My original problem was that I have more ejb.jar files in an ear file. One EJB from one jar references an other EJB in a different jar file. That is the external reference. I misunderstood the jboss.xml intention.
Chris -
6. Re: External EJB reference
youandwhosearmy Nov 14, 2001 5:50 PM (in response to cmouttet)As an additional note (I was working on this problem myself) the new documentation talks about this here:
http://www.jboss.org/online-manual/HTML/ch07s13.html -
7. Re: External EJB reference
lvyuawen Jan 8, 2002 12:05 AM (in response to cmouttet)The online manual is not enough about the external ejb reference. If Bean A want to call Bean B , it must have the B's home and interface classes in its jar files.
I hope this could be help! and following post may be useful too!
EJB External Refence - Packaging Home and Remote Interfaces Posted: Nov 27, 2001 1:49 PM Reply
What is the best way to deploy several EJB jars that call each other? It appears that you have to have the home and remote interfaces either:
1) Packaged in the calling JAR
2) In the Classpath of JBOSS Application Server as
a) A single JAR which contains all Home and Remote Interfaces
b) A jar for each Home and Remote Interface
Issues:
1) Does adding Jars to the classpath require server re-starts
2) Does modifying an existing jar -- cause potential problems if JBOSS caches the classes in that jar
What are the best practices for this architecture?
Tom
lvyuawen
Posts: 3
Registered: Dec, 2001
Re: EJB External Refence - Packaging Home and Remote Interfaces Posted: Jan 7, 2002 9:47 PM Reply
I have tried many days to master how to implement the external ejb reference before finding your post.
And your post help me so much and thank you very much.
It is hard to say , but i think the best way is
Pachaged in the calling JAR.
1.that means a Engineer change order(ECO) should be brought to software development process.
thanks again£¡