wood burning stoves*
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
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "Remote EJB call hangs forever" Watch "Remote EJB call hangs forever" New topic
Author

Remote EJB call hangs forever

Fabiano Sandi
Greenhorn

Joined: Apr 05, 2013
Posts: 2
I started an application with ejb, a simple example extract from http://www.bullraider.com/java/ejb3/tutorials/152-steps-for-ejbhelloworld-with-jboss
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 0.0.0.0' 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
Marshal

Joined: Jul 20, 2005
Posts: 10068
    
163

Fabiano, if you are starting with EJBs then I would recommend you use JBoss AS7 http://www.jboss.org/jbossas/downloads instead of 4.2.2 (which is very old). JBoss AS7 also has quickstart examples which include EJB examples too http://www.jboss.org/jdf/quickstarts/get-started/



[My Blog] [JavaRanch Journal]
Fabiano Sandi
Greenhorn

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: http://aspose.com/file-tools
 
subject: Remote EJB call hangs forever