Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Parthiv Patel
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can package them in one ear file.
 
Anup Katariya
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Its better you keep your client in seperate jar file.
 
Rishi Singh
Ranch Hand
Posts: 321
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3892
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Parthiv Patel
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3892
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic