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
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
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??
Joined: Aug 10, 2001
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
subject: Urgent........please respond..question about EAR files