• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Knute Snortum
  • Bear Bibeault
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Tim Holloway

Connection to remote Glassfish server

 
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
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!