• 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

Class to catach parm and then execute exe with parms on local host

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am BRAND NEW to JAVA and have a question for you all. I just installed Tomcat and then installed Axis (SOAP) so that is all up and running. Now I need to create a JAVA class to perform my action for a web service. We use Netcool/Omnibus and we have a probe called postzmsg. This is just a simple executable that sits on the same server as the web service. I am trying to figure out how to pass something like this in a browser through HTTP....

Severity=5
Summary="This is a test"
OnCallGroup=test_group
ISOC_Instructions="Please do not call"
TEC_Class="Test class"
Class=45945

Of course all the above is filled in through a web service call. The class would then take the paramaters that were passed and execute something like this on the local server....

C:\postzmsg.exe severity=5 summary="This is a test" OnCallGroup=test_group ISOC_Instructions="Please do not call" TEC_Class="Test Class" Class=45945

And thats it. So in a nut shell one of our developers would do a web service call which would pass all the paramaters to the class in which is called through HTTP and then the class would in return pass the paramaters and fire postzmsg.exe.

So.... Is this possible? If so how hard would it be? I am thinking about this in the correct way?
Any sample of how to acomplish this?

Thank you for your time.
 
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm not sure I fully understand what you're trying to do, but if you're just trying to fire a sub-process with arguements you should look at the Runtime.exec(...) series of calls. One of them should fit the bill.
reply
    Bookmark Topic Watch Topic
  • New Topic