Patching/updating Java Applications in the WebLogic environment.

Hi All,
I'd like to get some feedback on our process and hear if there is some better/different
ideas out there on how to handle patching/upgrading java applications in the WebLogic
environment.
Here is our process:
1) We build using ANT our Enterprise application.
2) We deploy our application using InstallAnywhere to drop the structure into
an environment.
If a patch or update is needed, we again build the Patch/Update using ANT, generating
checksums for each file in every ear/war/jar file as well as any supporting files
(.xml, .properties, .sh, etc.) used in the production structure. We then compare
checksums against what is in production and come up with PATCH_(ear/war/jar) files
with only the changed classes and duplicate production structure with the changed
supporting files.
Using ANT scripts and InstallAnywhere, we backup the files to be replaced in production,
overwrite supporting files, extract packages (ear/war/jar), overwrite classes
with new ones, re-package the ear/war/jar files into production environment and
restart the server.
We patch at a class level due to the configuration settings internal to the package
files (ear/war/jar) that we don't want the customer to have to re-configure everytime
we do a partial release.
Right now, the whole process is automated except the creation of the Patch ANT
script that extracts, overwrites updated classes, updates manifests, then re-packages.
Any ideas on improvements or complete re-engineering of our process to help so
we can get closer to 100% automation?
Thanks,
John

The chances of two applications running at exactly the same time are miniscule. If they each have a connection to the database, and are both trying to modify the same table, then chances are one will be slightly after the other its changes would be committed last. In the case where one might delete a row just before another tries to access that row, you're going to have some sort of problem. However, those circumstances are pretty rare, and even so, some small amount of exception handling can deal with them gracefully.

Similar Messages

  • Error message: 'you can't open the application because the Classic environment is no longer supported'

    I get the error message 'you can't open the application because the Classic environment is no longer supported', when will this issue be fixed? I need to use a program to analyse videos called 'J watcher' that is vital for my thesis. It worked in the last operating system but refuses to open in this one. When will this issue be fixed/what can I do about it?

    Is there any way to fix this?
    Yes, but it's not easy.
    I've only tested this on Snow Leopard, but I think it will work in Lion. You need to have Java installed, which it's not by default in Lion. Since I'm not using Lion myself, I can't tell you how to do that.
    Download the Java/Mac version (1.0) of the application from JWatcher Downloads. You'll get a zip archive. Expand it. Now you have an application called "JWatcher_V1.0." This is only the installer. It won't run, because it has PowerPC-only version of the Java application stub.
    Select the line of text below in your browser and copy it to the clipboard:
    /System/Library/Frameworks/JavaVM.framework/Versions/A/Resources/MacOS
    In the Finder, select Go > Go to Folder... from the menu bar (this menu may be slightly different in Lion.) Paste the clipboard contents into the text box. You should now see a folder with two files in it, one of which is named "JavaApplicationStub." Leave that window open.
    Now right-click on the icon of JWatcher_V1.0 and select "Show Package Contents" from the contextual menu. A new Finder window opens. Open the folder called "MacOS". Inside that folder is a file also named "JWatcher_V1.0". Move it to the Trash. Drag the file JavaApplicationStub to where it was. Rename the file (it will be copied, not moved) JWatcher_V1.0. Close the Finder window.
    Now double-click the installer. It should launch. Install the application wherever you choose. You're not done yet.
    The installer creates a folder named, once again, "JWatcher_V1.0". Inside it is an application. That, too, is named "JWatcher_V1.0". Select it, and do exactly the same thing you did before with the installer: replace the binary inside with a copy of JavaApplicationStub.
    You should now be able to run it.

  • How to call java application in Windows NT environment?

    I have a JDBC application running against oracle database on NT server. There is another non-java application need to call my java application. The programs that non-java program can call are .exe, .dll, and .bat files. I wrote a Dos script and save it as .bat file. Every time this .bat file was called, the dos screen will be shown. Anything I can do to let Dos screen not shown, or anything I can do to wrap my java classes into an .exe file? Thanks in advance.

    If your tool can run a .exe and supply arguments, why not simply invoke "javaw <jvm-args> <class> <class-args>"?

  • Can you reload web application from the Weblogic console?

              Good day, eh!
              Can you reload all your jsp/servlet classes of your
              web application from the Weblogic console?
              A one big button labeled 'Reload application' would be very
              good property in Weblogic
              Thanks for Your answers
              - hoser
              

    Hi,
              I agree it is a much needed feature. Suppose I just change an init
              param of one application in the web.xml, I don't want to take down the
              15 other webapps running on my server just to be able to have that web
              app restart and re-read is configuration. Of course, I could program
              some servlet that allows changing application attributes and to enable
              restarting, but really this a)does not cover all the cases (i.e. addind
              an EBJ reference binding to web.xml) b) should be provided by the app
              server, not programmed by every little programmer again & again.
              Mathieu
              Jeff Nowakowski wrote:
              >
              > The URL you give refers to redeploying EJBs, not web applications. Being
              > able to redeploy a web application would be a very convenient feature.
              >
              > -Jeff
              >
              > Gene Chuang <[email protected]> wrote in message news:[email protected]...
              > > Button is already there!
              > >
              > > http://www.weblogic.com/docs51/techdeploy/hotdeploy.html#consoledeployejb
              > >
              > > Gene
              > >
              > > "hoser" <[email protected]> wrote in message
              > > news:[email protected]...
              > > >
              > > > Good day, eh!
              > > >
              > > > Can you reload all your jsp/servlet classes of your
              > > > web application from the Weblogic console?
              > > >
              > > > A one big button labeled 'Reload application' would be very
              > > > good property in Weblogic
              > > >
              > > > Thanks for Your answers
              > > >
              > > > - hoser
              > >
              > >
              

  • How to invoke a java application in the middle of the process

    In the middle of one process, I want to invoke a java application. After the java application, the process will continue and select a path based on the result of the java application. Which activity can be used to invoke a java application in the middle of the process?
    Thanks

    BPM Changes:
    1. Under 'External Resources' create a new resource of type 'Server Configuration'. Specify the host port and path of your servlet here. This will be invoked from your process. Lets name this configuration as 'myExternalConf'.
    2. Create an interactive activity say 'InvokeMyApplication' in your process. The main task of this application should be external task. (Implementation Type = External)
    3. Create the prepareMethod method say 'prepareExternal'. Set the arguments for this method as output arguments. These arguments will be available to you in your external servlet.
    4. Create the commit method say 'commitExternal'. Set the arguments as input arguments. The external servlet will return these arguments back to the process.
    5. Check the 'Use configuration' checkbox for your main task (external task). Select 'myExternalConf' here.
    Servlet changes:
    When the user executes your 'InvokeMyApplication' activity, he will be taken to the external servlet of your external application. You will be passed the currentActivity, currentParticipant, instanceID and one more argument (which I dont remember :( ) as url parameters.
    1. In this servlet, open a PAPI/PAPI WS session for the participant passed to the servlet as url parameter
    2. Use the currentActivity ( passed in url parameter), to call prepare method on this activity. This will return you with the arguments defined in 'prepareExternal' method.
    3. Using these argumets, or otherwise, you can do whatever you want in this servlet. When done prepare the arguments to pass back to BPM.
    4. call papiService.activityCommit and return the arguments.
    5. Flow goes back to your BPM application
    Some code that might help:
    Servlet calling prerpare:
    ProcessServiceSession papisession = null;
    try{
    papisession = initializePapi();
    fuego.papi.Arguments args = fuego.papi.Arguments.create();
    args = papisession.activityPrepare(activity, instanceId, args);
    Map<String, Object> argsMap = args.getArguments();
    return argsMap;
    protected ProcessServiceSession initializePapi(){
    Properties configuration = new Properties();
    try {
    InputStream inputStream = getClass().getClassLoader().getResourceAsStream("bpm.properties");
    if(inputStream == null)
    throw new IOException();
    configuration.load(inputStream);
    } catch (IOException ex) {
    log.log(Level.WARNING, "Could not load bpm.properties", ex);
    return null;
    Servlet calling commit:
    public void commitToALBPM(Map parameters){
    try{
    papisession = initializePapi();
    fuego.papi.Arguments args = fuego.papi.Arguments.create();
    Set s = parameters.keySet();
    Iterator propNames = s.iterator();
    while (propNames.hasNext()){
    String key = (String)propNames.next();
    String val = (String)parameters.get(key);
    args.putArgument(key, val);
    papisession.activityCommit(activity, instanceId, args);
    catch (OperationException e)
    HTH
    Satinder

  • How to put Java application in the MS. Windows System tray

    dear all,
    Is it possible to make a Java application communicate with the MS. Explorer and to put a Java application in the MS. Windows System tray
    Regards

    http://www.esus.com/docs/GetQuestionPage.jsp?uid=624
    or look for madcap on sourceforge

  • How can i let my java application closes the other opened windows

    how can i let my java application closes the other opened windows: like any other Microsoft Internet Explorer windows ... provided that my java application is not the one i used to open those other windows.... thanks in advance

    you'll have to use JNI to access the windowAPI
    then you need a list of window handles ... I think there was a function called getWindow and in order to close them you use sendMessage .... for details check out msdn (microsoft developer network)
    somwhere I saw a tool called JUtil, which might help you getting started on accessing the win api from java
    regards
    Spieler

  • How to upload a java application into the oracle DB

    Hello,
    I am in search of an issue that is worrying me now for weeks. I have a java application which is independent. Now I want to upload this application to the oracle DB.The idea is for the application to sit on the DB and do it work from there, which is to transfer data to another 3rd party independent system. What is the best way of doing this? Is there any utility which can help me to upload a java application to the DB?
    Also after uploading the application in the DB, how can it be called? Is there any tutorial to guide me please?
    Thank you all for brain storming

    Check the docs for "Java Stored Procedure":
    http://www.oracle.com/pls/db92/print_hit_summary?search_string=java+stored+procedure

  • Can't open application because the Classic environment on longer supported

    I created a droplet on my 2013 Macbook Pro and emailed it to My 2013 Macbook Air, both are running Maveriks. On the Air the app is locked and says "Can't open application because the Classic environment on longer supported"

    Try: open the droplet in AppleScript Editor and re-save and email again (edit: right-click the droplet and select "Compress" as Frank suggested).

  • HT5621 i could not update my applications since the account that applied was when i was in the US...it says that i needed to change itunes store here in the philippines and how do i do that?

    i could not update my applications since the account that applied was when i was in the US...it says that i needed to change itunes store here in the philippines and how do i do that?

    Click here and follow the instructions to change the iTunes Store country.
    (87167)

  • Automatic publishing a Java application in the web?

    Do you remember the nama of that tool which publish a Java application in the web, as is?

    :^))
    here it is...
    http://www.creamtec.com/webcream/index.html

  • Update Java Application

    Hello
    I have a problem with updating a Java Application.Yesterday i have made a modification to a class from my application but today when i am running the application it still runs the old version.The JAR file doesn't update.What can i do?
    Thank you!

    The JAR file doesn't update.What can i do? Provide an example of how you are running your app? If you are running the app from the JAR file, then you need to rebuild your JAR file. Compiling doesn't automatically update the class files in the JAR file. You have to recreate the JAR file.

  • Updating my application with the users

    Im in the process of making a java application.
    Im making a complete application but i need to update it on a regularly basis on the users machines. Its a financial application and there are a lot of changes every year to the application, so theres no way i can avoid making changes to it.
    So how do i update the application?
    Can i just download a new jar file for each new version and use it instead of the old?

    jacob_hansen wrote:
    Anyway if i just need to make a button in my application which can download a new jar file to replace the current - how do i do that?Use the DownloadService. Actually, that is not strictly necessary, since JWS updates are automatic.
    Or to put that another way. Use webstart.
    Edit 1:
    From earlier..
    ..Its very simple to you and me, but many of my users can manage clicking something on their desktop and thats about it.Obviously your understanding of webstart is very 'minimal'.
    Let us compare the two experiences..
    ||Step||InstallShield installer||JWS|
    |Find the application & download(1)|Click a link to a .exe|Click a link to a .jnlp|
    |Choose what do do with it|Choose 'Save As' or 'Run'|-|
    |If 'Save As'|Double click the downloaded EXE (to run it)|-|
    |Allow the security prompt|-|Applies only to extended permissions apps.|
    |Choose whether to allow desktop shortcut/menu items|-|Applies only to sand-boxed JWS apps.|
    |Run the app.|Double click the desktop shortcut or click the menu item|Same|
    |Update the app.|Click your hypothetical 'Update Button'|- (happens automatically)|
    1) The InstallShield installer might offer, what? Windows and Linux/Unix variants? The user has to pick the correct one. Webstart works for Mac, Unix/Linux and Windows. No 'choice' necessary on the user's part.
    So, ultimately starting a downloaded webstart app. is just as easy as starting your InstallShield app., but the IS app. user has to click the 'Update' button, which is not necessary for webstart, unless you wish to take active control of the download, and attach it to your 'update' button.
    I'm just curious as to what your next (pathetic) excuse for not trying webstart will be.
    Edited by: AndrewThompson64 on Jan 8, 2010 6:19 PM

  • How to integrate a Java Application in the portal

    Hi:
    I have developed a pure and simple Java Application just like a test, only Java, no EJB, no JSP. JUST PURE JAVA. I need to put this application in my Oracle9iAS Portal and i've found something about developing EAR and WAR. But i can't find the way to put my app in the portal.
    Does anybody know how can i put my app in the portal? or what should i do?
    Thank you.

    Hi:
    I have developed a pure and simple Java Application just like a test, only Java, no EJB, no JSP. JUST PURE JAVA. I need to put this application in my Oracle9iAS Portal and i've found something about developing EAR and WAR. But i can't find the way to put my app in the portal.
    Does anybody know how can i put my app in the portal? or what should i do?
    Thank you.

  • Ideas for deploying Java Applications to the Web?

    I am developing a java application which will be distributed via cd and the Web. My first idea was to create the application for cd, then modify it with applets to be deployed on the web. Does anyone else have any better suggestions?

    link to Java Web Start:
    http://java.sun.com/products/javawebstart/index.html
    tobias

Maybe you are looking for