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.
The moose likes EJB and other Java EE Technologies and the fly likes  How to access to a SessionBean in a machine since other SessionBean in other machine Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Reply Bookmark " How to access to a SessionBean in a machine since other SessionBean in other machine" Watch " How to access to a SessionBean in a machine since other SessionBean in other machine" New topic
Author

How to access to a SessionBean in a machine since other SessionBean in other machine

lalala lalala
Greenhorn

Joined: May 20, 2004
Posts: 4
Hi!

I'm using Jboss 4, and I would like to know, how I can access to a SessionBean in one machine since other SessionBean in other machine.

The SessionBean must be access to its jboss and the jboss of the other SessionBean.

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)

Can anyone help me?

Thanks!
Valentin Tanase
Ranch Hand

Joined: Feb 17, 2005
Posts: 704
Hi,

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
Thanks!!!

I have found a solution for the problem.

At the jboss.xml of my jboss, the jndi-name references to external EJB
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to access to a SessionBean in a machine since other SessionBean in other machine
 
Similar Threads
How 2 jboss communicate with each other ?
Simple JBoss Web Service With Eclipse
How to configure jBoss(5.x or above) to accept incoming requests through another machine?
ManagedBean with SessionBean?
How to access to a SessionBean in a machine since other SessionBean in other machine