Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

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

 
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
 
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.
 
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can package them in one ear file.
 
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • 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
  • 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
  • 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
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
 
To do a great right, do a little wrong - shakepeare. twisted little ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic