• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Tim Cooke
  • Ron McLeod
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Devaka Cooray
  • Junilu Lacar
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Stephan van Hulst
  • Peter Rooke
  • Mikalai Zaikin
Bartenders:
  • Himai Minh

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

 
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You can package them in one ear file.
 
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Its better you keep your client in seperate jar file.
 
Ranch Hand
Posts: 321
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
author
Posts: 3892
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Posts: 3892
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
We don't have time for this. We've gotta save the moon! Or check this out:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
reply
    Bookmark Topic Watch Topic
  • New Topic