Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Connection to remote Glassfish server

 
Roman Shvets
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

I am new in EJB technology and I need help. I created simple sesion bean. Here is the listing of source files :

Bean interface:



Implementation of the interface:



Client program:



I use Sun Glassfish server v2.1 and NetBeans IDE 6.1. I compiled, packed to jar archive the content of my beans package and successfully deployed it.
Then I tried to run the client program form console but I got the following error message:



Then I tried to run my client part of program from NetBeans IDE. I've got success. I was very confused. I have not defined any additional parameters to run this program. After searching over the web I found that there is some file "jndi.proterties" in javaee.jar that defines the default parameters. As far as I know NetBeans looks for my JNDI service on the local machine on 1099 port (that's why my program ran successfully in NetBeans).

After that I tried to connect to remote GlassFish server. I installed GlassFish to another computer. It's IP is 192.168.100.1. I have a full access to that computer. I successfully deployed my session bean on it. Than I modified my client part of program like this:




When I tried to run the program I got the following error:



What parameters should I use to run this program?

Thanks,
 
Roman Shvets
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Problem is solved. Thanks to you all for your replies
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic