1
votes

I have successfully compiled, deployed, and tested a simple, Remote, Stateless Session Beans on my local machine using this tutorial.

The program just prints out "Hello World" in NetBeans output window when run.

However I wish to run the client application on another home machine which doesn't has GlassFish or JavaEE installed. I read here that, to do this I need to create a stand alone Java Application; however I am unsure about the steps to take to obtain the same result.

I am new to EJB architecture. Any help is greatly appreciated.

1

1 Answers

1
votes

It's simple. On the first step create standalone application. For example in main method get remote instance of the bean through InitialContext (I suppose, that you define Stateless bean through Remote Interface). Then you can work with bean. Please, remember remote access through InitialContext is different on the different servers type (jboss,weblogic,glassfish). In final look at link: InitialContext on jboss