1 Reply Latest reply: Oct 9, 2011 7:25 PM by jtahlborn RSS

    call Java Class deployed on weblogic server from a batch file

    856967
      Hi, I've integrated 3 applications using a chunk of code in java class wrapped in web services. This chunk is deployed on a Weblogic server. As a final step I have to trigger this class which does all the integration work. Is it possible to just create a .bat file that will crudely make a call to this java file that has main class ? or because its deployed on a weblogic server, there is a different methodology to follow ?

      Regards
        • 1. Re: call Java Class deployed on weblogic server from a batch file
          jtahlborn
          you can't just randomly, remotely invoke classes in other processes. however, there are many ways you could achieve what you want. since your code already lives within an app server, i would setup a web endpoint which launches your integration code (using a servlet or similar technology). then, you can use whatever program you wish to make the http call. if you were on some unix variant, i'd recommend wget or curl. i'm sure there's something similar for windows (or you can use those if you have cygwin installed).