The Artima Developer Community
Sponsored Link

Web Services Forum
Usage of java runtime class in web services

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Ang Chun Hong

Posts: 1
Nickname: anson
Registered: Dec, 2003

Usage of java runtime class in web services Posted: Dec 5, 2003 11:15 PM
Reply to this message Reply
Advertisement
Hi,

I have to expose an application called "BLAST" as a set of web services. This application can be run by unix command lines such as "blastall -p blastn". So i thought of using java runtime class to execute the above command as follows:

...
String ls_str[] = {"\bin\sh","-c","blastall -p blastn"};
File newFile = new File("\usr\local\blast");
Process ls_proc = Runtime.getRuntime().exec(ls_str,null,newFile);
...

The above code works fine as a java program but when i exposed it as a web service, it does not return any result.

Can someone please help me solved this problem.
Thanks in advance.

Anson.

Topic: Web Design by Freeshape Previous Topic   Next Topic Topic: Records In JSp & backend Differ ??

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use