This week's book giveaway is in the General Computing forum. We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line! See this thread for details.
I have been investigating and I have found that sinde a SessionBean must be access to an EntityBean of other machine (modifying jboss.xml and ejb-jar.xml)
If I understand you correctly, your question is about accessing an EJB deployed onto another server instance. Because I�m not a JBoss expert, I�m goanna give you some hints but related to WebLogic (JBoss might use similar algorithms). First off all you have to understand that the server might implement a special algorithm for optimizing the access to collocated ejb objects. What I mean is this: if you have ejbA deployed to two or more WebLogic instances within a cluster and you have ejbB calling ejbA, then in order to optimize the access WebLogic will always redirect your call to the ejbA instance located on the same server instance as ejbB. And there is no way to alter this behavior. Not sure if JBoss will allow you to modify the default behavior, but I have my doubts. The only solution you have is to use a technique named "pinned services". This way you�ll use a heterogeneous deployment and you�ll deploy ejbA to a single instance in the cluster. This will force WebLogic to hit the unique ejb object, which will be located on a different server instance. Again in a homogenous deployment you have no control over the way the collocated ejb objects are called. Regards.
I think, therefore I exist -- Rene Descartes
lalala lalala
Greenhorn
Joined: May 20, 2004
Posts: 4
posted
0
Thanks!!!
I have found a solution for the problem.
At the jboss.xml of my jboss, the jndi-name references to external EJB