wood burning stoves*
The moose likes EJB and other Java EE Technologies and the fly likes Urgent........please respond..question about EAR files Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Urgent........please respond..question about EAR files" Watch "Urgent........please respond..question about EAR files" New topic
Author

Urgent........please respond..question about EAR files

Parthiv Patel
Greenhorn

Joined: Feb 10, 2003
Posts: 10
Hi,
I have a question regarding packaging of EAR files(specially in a Websphere Studio Application Developer).
I know that all the EJBs would be in a ejb-jar file.(JAR)
and all servlets/html will go in a (WAR)
the application client module would go in another JAR file.
I have developed 4 stateless session beans,
and the client application will be java standalone program(which also needs some helper classes). I dont have any web modules.
the point where I am confused is , how do I package my client program should it be within the EAR file that I deploy OR
since the client is a java standalone program(run from the console) should it be depolyed as a seperate JAR file along with its helper classes.
Thanks
Colin Spear
Greenhorn

Joined: Jul 10, 2002
Posts: 5
I'm no expert, but it would be logical to jar the client separately. Of course there is nothing stopping you from doing both.
Parsuram panigrahi
Greenhorn

Joined: Feb 18, 2003
Posts: 17
You can package them in one ear file.
Anup Katariya
Greenhorn

Joined: Oct 23, 2002
Posts: 29
Its better you keep your client in seperate jar file.


SCJP
Rishi Singh
Ranch Hand

Joined: Dec 09, 2000
Posts: 321
hi parthiv,
I think you need to bundle together the client.jar along with ejb.jar while assembling the application.ear file.Then you can deploy the ear file.
Rishi Singh
SCJP,SCWCD
Kyle Brown
author
Ranch Hand

Joined: Aug 10, 2001
Posts: 3892
    
    5
The *only* supported configuration for WebSphere is to bundle the EJB-JAR file with the client JAR file into an EAR file. Then you *must* use the launchclient.bat file to start your J2EE client container and invoke your application's main().
Kyle


Kyle Brown, Author of Persistence in the Enterprise and Enterprise Java Programming with IBM Websphere, 2nd Edition
See my homepage at http://www.kyle-brown.com/ for other WebSphere information.
Parthiv Patel
Greenhorn

Joined: Feb 10, 2003
Posts: 10
Hi Kyle,
Could you elucidate what 'launchclient.bat' is about...and also when I deploy an EAR file..
to run the client application do I need to be in the same directory as the deployment locaction..??
As I am deploying my EAR file on a Websphere Application Server for z/OS, how do I run my standalone java program??
Kyle Brown
author
Ranch Hand

Joined: Aug 10, 2001
Posts: 3892
    
    5
Go to the WebSphere InfoCenter and do a search for "launchClient". That will explain how the J2EE client container works. BTW, have you figured out how to start the J2EE client container in WSAD yet? Pick your application client (which must be associated with the SAME EAR file your EJB-JAR is associated with) and use the Run>Run... menu to pick "WebSphere 5 Application Client".
Kyle
 
wood burning stoves
 
subject: Urgent........please respond..question about EAR files