Kbase 17515: Example java class to run external application
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  5/10/1998 |
|
Example java class to run external application
public class PubNowServerEvents extends abServerEvents
{
public abVector serverRequest (abServer server, int reqType,
String id, abQuery query, abVector arg) throws abException
{
if (reqType == 1)
{
System.out.println("Server Request");
Runtime r = Runtime.getRuntime();
try
{
r.exec("notepad");
}
catch(Exception e)
{
e.printStackTrace(System.out);
System.out.println("Unable to start app");
}
}
return(null);
}
}
NBI: 30 Dec 97
Progress Software Technical Support Note # 17515