aspose file tools*
The moose likes EJB and other Java EE Technologies and the fly likes Connection to remote Glassfish server Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Connection to remote Glassfish server" Watch "Connection to remote Glassfish server" New topic
Author

Connection to remote Glassfish server

Roman Shvets
Greenhorn

Joined: Nov 15, 2009
Posts: 2
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

Joined: Nov 15, 2009
Posts: 2
Problem is solved. Thanks to you all for your replies
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Connection to remote Glassfish server