Does it really say CabinJEB in jboss.xml ?
Sorry, typo. Had problems pasting. It is CabinEJB.
Thank you for the link. I had already tried the suggestions outlined in section 'External EJB ref.' some time ago, but I'm not shure whether I got the URL correct. The syntax says <jndi-name>jnp://otherserver/application/beanB</jndi-name>.
So otherserver must be localhost in my case.
But what does application refer to exactly? I assumed that it was the name of the applications deployed, eg. cabin (from cabin.jar) or travelagent. Is this a correct assumption?
It is a naming convention to avoid conflicts.
This part of the config gets very confusing, especially
when everything has the same name.
I've probably got the example below wrong :-)
In your example this convention would be:
In English, the travel agent bean has the address
it uses the bean at
calling it the short name
Thank you very much for your quick answers. I upgraded to the latest cvs-version as of March the 7'th. and compiled it successfully. I re-deployed my cabin- and travelagent.jar's and was able to make a b2b-communication.
It turned out that the code I copied from the book all-ready conformed to EJB 2.0 standard, but jboss 2.4.4 did not support CMP 2.0 as you stated.
The code in the book and the online-doc is sufficient to successfully deploy the beans.
The doc reg. Mr. Monson-Haefels cabin-example is found at http://jboss.org/online-manual/HTML/ch14.html#d0e12038.
It is not neccessary though to include the Cabin*.class-files to the travelagent.jar. But this may have historical reasons why this is done this way.
I have a quick question about deploying the TravelAgentBean.
I have following the previous post and successfully run the Client_1 and Client_2 without problem. After I deploy the the TravelAgent as a separate jar file, I got an exception
I don't see the "Nested ..." excepiton as before. Then, I try to put my cabin.jar to the deploy folder, jar it together with the travelAgent.jar, ... But, it still give me the same error. (In the mean time, the Client_1, Client_2 are all working fine.)
Do I need to put the Cabin.jar in some specific place? or there is something wrong about my ejb-jar.xml or jboss.xml? Hope someone can help me on this.
My ejb-jar.xml contains:
and my jboss.xml looks like:
In TravelAgentBean.java, I have
Thanks in advance.
do tou include de interfaces of CabinEJB in the trabelEJB jar?????
hmm...no. But I included the cabin.jar inside TravelJEB.jar. (why would i do that, I don't know and guess that is not right coz it still didn't work!)
By the way, after I jar all the files for Travel and Cabin in just one jar file (and hence, 'the travel.jar include the cabin interface) and deploy it to JBoss, all Client_1, 2, 3 are working fine.
But, I still want to deploy them as separate jars and sort of confuse about doing B2B call. As in many situations, jar files are prepared by several sub-teams. And B2B call should be very common scenario in EJB. I will try your suggestion and see how it goes. Thanks.