Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Remote EJB call hangs forever

 
Fabiano Sandi
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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/


 
Fabiano Sandi
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic