This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Java Interview Guide and have Anthony DePalma on-line!
See this thread for details.
The moose likes JBoss/WildFly and the fly likes Remote EJB call hangs forever Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "Remote EJB call hangs forever" Watch "Remote EJB call hangs forever" New topic

Remote EJB call hangs forever

Fabiano Sandi

Joined: Apr 05, 2013
Posts: 2
I started an application with ejb, a simple example extract from
I have JBoss 4.2.2 installed and deployed the ejb with success, the client application was able to access the declared method, but i did all in local machine.

i would like to access the ejb from another pc in the same network, so i changed 'localhost' to <Internal_IP> in the client test, initialized jboss with '-b' option and tried but no success and no
error, the application hangs forever.The lookup was fine, but when i call the method it never get called and never returns.

Here is my code:
The output is:
before lookup
after lookup: jboss.j2ee:jar=HelloWorldService.jar,name=EjbHelloWorldBean,service=EJB3

I have disabled the antivirus and firewall to certify that nothing was bloking...

After this i started jboss with '-b <INTERNAL_IP>' and then it worked but i cant't access my projects in the server machine with localhost like i did before. I have to put the <INTERNAL_IP>,i would like to avoid this behavior
if it's possible.

can anybody help me, please? i'm starting with ejb and i don't know what else to make.

Thank you very much and sorry for my english!
Jaikiran Pai

Joined: Jul 20, 2005
Posts: 10441

Fabiano, if you are starting with EJBs then I would recommend you use JBoss AS7 instead of 4.2.2 (which is very old). JBoss AS7 also has quickstart examples which include EJB examples too

[My Blog] [JavaRanch Journal]
Fabiano Sandi

Joined: Apr 05, 2013
Posts: 2
Jaikiran, thanks for your response!

In our company we use JBoss 4.2.2 for a long time and we are studying an update of this version, but it still going to take some time. For now i have to make this work test and a new functionally(ejb) in old version of jboss, that's why i can't base my work in jboss7, but thanks for the recommendation.

Any idea about the situation described above?
I agree. Here's the link:
subject: Remote EJB call hangs forever
jQuery in Action, 3rd edition