wood burning stoves 2.0*
The moose likes EJB and other Java EE Technologies and the fly likes how to use application client to invoke the ejb's from eclipse juno ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "how to use application client to invoke the ejb Watch "how to use application client to invoke the ejb New topic
Author

how to use application client to invoke the ejb's from eclipse juno ?

gurpeet singh
Ranch Hand

Joined: Apr 04, 2012
Posts: 924
    
    1

i'm learning ejb 3 from manning ejb 3 in action. currently i'm on chapter 2. i have downloaded the chapter wise example from their site and created the project in eclipse juno. for accessing various ejb components like session ejb , the author has used clients which contains main method. further the author says that this client runs in ACC which is application client container. following is a paragraph from the book

Any Java class with a main method can be run inside the ACC. Typically, though,
an application client is packaged in a JAR file that must contain a MainClass in
the Manifest file. Optionally, the JAR may contain a deployment descriptor
(application-client.xml) and a jndi.properties file that contains the environment
properties for connecting to a remote EJB container. Let’s assume you
packaged up your application client classes in a JAR file named chapter2-client.
jar. Using Sun Microsystems’s GlassFish application server, you could launch
your application client inside the ACC as follows:
appclient -client chapter2-client.jar


the code samples that i downloaded from the author's site contains source code of application client. i have copied the source files for the client in my project. i would like to know how to run the application client now from the eclipse ide , so that the client can access the ejb's i have created ??
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: how to use application client to invoke the ejb's from eclipse juno ?