File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes EJB and other Java EE Technologies and the fly likes EJB client Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "EJB client" Watch "EJB client" New topic

EJB client

Maximilian Trenks
Ranch Hand

Joined: Jul 22, 2002
Posts: 104
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,

Student of Business Informatics<br />Kepler University Linz, Austria
Andres Gonzalez
Ranch Hand

Joined: Nov 27, 2001
Posts: 1561
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

I'm not going to be a Rock Star. I'm going to be a LEGEND! --Freddie Mercury
I agree. Here's the link:
subject: EJB client
It's not a secret anymore!