Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
gurpeet singh
Ranch Hand
Posts: 924
1
Fedora Java Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ??
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic