This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
The moose likes Websphere and the fly likes replacing class files instead of new build Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Products » Websphere
Bookmark "replacing class files instead of new build" Watch "replacing class files instead of new build" New topic
Author

replacing class files instead of new build

Pranav Sharma
Ranch Hand

Joined: Oct 27, 2003
Posts: 257
All,
Just wanted to know if it was possible to replace a compiled class file in the {WAS_HOME}/installedapps directory instead of making a new build

TIA
Joe Matthew
Ranch Hand

Joined: Jun 10, 2008
Posts: 66
You can. But why would you?


Regards,<br />Joe<br /> <br />"Always program as if the person who will be maintaining your program is a violent psychopath that knows where you live."<br />--Martin Golding
Pranav Sharma
Ranch Hand

Joined: Oct 27, 2003
Posts: 257
Well to bypass the process of moving the single file to the QA environment, make a build, ftp the ear deploy it. Sometimes its just quicker to drop the class file in the exploded ear and restart the app. Its ugly I know, but its so darn easy sometimes
Pranav Sharma
Ranch Hand

Joined: Oct 27, 2003
Posts: 257
o, Joe as I hit submit, I realised that you were probably being a smart ass
Kyle Brown
author
Ranch Hand

Joined: Aug 10, 2001
Posts: 3879
Go to the WebSphere Infocenter online (here is the link for 6.1: http://publib.boulder.ibm.com/infocenter/wasinfo/v6r1/index.jsp) and look for "Hot deployment". It will walk you through the process.


Kyle Brown, Author of Persistence in the Enterprise and Enterprise Java Programming with IBM Websphere, 2nd Edition
See my homepage at http://www.kyle-brown.com/ for other WebSphere information.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: replacing class files instead of new build
 
Similar Threads
Error with jar file
How to get ear file using ant., by replacing a class file in ear
Spring Testing woes
Fun runtime issues!
Referencing .class files in an Eclipse project