Win a copy of Terraform in Action this week in the Cloud forum!
  • 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Tim Cooke
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Rob Spoor
  • Bear Bibeault
Saloon Keepers:
  • Jesse Silverman
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Piet Souris
  • Al Hobbs
  • salvin francis

EJB client

Ranch Hand
Posts: 104
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi there,
I can't find any information on what steps I have to take in order to build a client.jar.
I assume you have to do the following:
- include the class file of the client into the jar file
- same with primary key classes and the remote and home interfaces
- include a deployment descriptor (which one ?)
- include the client.jar file in the ejb-jar.xml deployment descriptors <ejb-client-jar>
I use Websphere 5.0 and Weblogic 6.1. For both I didn't find any client container. I want to test starting the EJB client from a workstation other then the workstation where the Weblogic/Websphere Servers are running.

Can you tell me if I am right with my assumptions ?
Many thanx,
Ranch Hand
Posts: 1561
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Maximilian. First of all, I would recommend you to read Mastering EJB Book from Ed Roman, freely available at It explains in detail all the files you need.
You can create the jar far manually by typing in the DOS command prompt. I do not know the command, since I started from the begining using Ant build tool to do it. I also recommend using this Open Source tool to build your archives. In the long term it'll save you a LOT of time, trust me.
I did not understand when you stated you didn't find any "client container" . In my client.jar, I would put the interfaces (home and remote in your case, the client itself -a java file-, and application.xml (this file name depends on the application server you're using). This xml file says : "my client will have a reference to this ejb", something like that. Please check your application server documentation for more details.
hope this helps
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
    Bookmark Topic Watch Topic
  • New Topic