• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Redeploy JAR on WAS

 
Ranch Hand
Posts: 76
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm using ANT for building my EAR file and deployed successfully on WAS 4.
now due to change in method signature I need to redeploy only one jar file.
what All I need to do for this?
I've tried simply by replacing DeployedJar...
thanx in advance
 
Ranch Hand
Posts: 219
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If it is a EJB Jar file, then one way of achieving this would be stop app server. Overwrite the Jar file individually and then re-start the app server. This would make the new jar file avbl. to the system
 
Ranch Hand
Posts: 133
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
if u r building the EAR file (including the deployed code & websphere specific xmi files) then u can use the EARExpander to expand in the installedApps dir & the restart the server.
BUT the recommended way would be to use wscp
- ApplicationServer stop
- EnterpriseApp remove
- EnterpriseApp install
- ApplicationServer start
 
bharat nagpal
Ranch Hand
Posts: 76
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
So Recommended thing is If there is a change in one method signature. I need to Redeploy the EAR file? I tried replacing the DeployedJar(in WAS) file with the newly created one, but the changes are not reflected. This is the only place where I can see the information about the Deployed Jar files in Installed Apps.
 
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have same question here. In WAS3.5, we can re-deploy an individual EJB if there is a change, but in the 4.0 or later, we can only re-deploy the whole enterprise application for a single EJB change? Thanks for any reply.
 
Ranch Hand
Posts: 107
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi,
there is one more approach.
if the individual jar is modified, u can replace the jar file in the exploded directory (InstalledApps) and run ejbDeploy.bat file on the new jar to create the new stubs/skeletons for the same so that the changes will be reflected. this way u dont have to redeploy it.
otherwise u can also open the jar in AAT and generate the stub/skeleton code and save this new jar file into the InstalledApps folder.
hope this helps.
kiran
 
reply
    Bookmark Topic Watch Topic
  • New Topic