Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

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

 
Larry Roberts
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • 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.
 
Shawn Smith
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
  • 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.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!