wood burning stoves 2.0*
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 The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "EJB client" Watch "EJB client" New topic
Author

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,
Max


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 www.middleware-company.com. 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
 
Consider Paul's rocket mass heater.
 
subject: EJB client