• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

EJB client

 
Maximilian Trenks
Ranch Hand
Posts: 104
  • Mark post as helpful
  • send pies
  • 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,
Max
 
Andres Gonzalez
Ranch Hand
Posts: 1561
  • Mark post as helpful
  • send pies
  • 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 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
 
Consider Paul's rocket mass heater.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic