This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
I am new in EJB technology and I need help. I created simple sesion bean. Here is the listing of source files :
Implementation of the interface:
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?
Joined: Nov 15, 2009
Problem is solved. Thanks to you all for your replies