tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From John Turner <tomcat-u...@johnturner.com>
Subject Re: Is System Call can be invoked in the Servlet Container
Date Mon, 14 Jul 2003 19:39:06 GMT

The JVM itself has native method system calls, so I highly doubt it.

John

On Mon, 14 Jul 2003 12:40:32 -0700, Ke Song <ksong@sentius.com> wrote:

> John,
> Thanks a lot for your prompt help. The point that I wanted to find out is 
> if there is restriction on invoking system call on Servlet container or 
> other J2EE app server. My senario is : My servlet will load a native 
> library via JNI, the native code has system calls. It seems that the 
> system call is not working(it's working if I load it in a standalone java 
> application). So i am wondering if there is restriction on invoking 
> system calls in the servlet container.  I searched specification doc on 
> Servlet and J2EE, not able to find related topic. If anybody has any 
> point, please share with me.
>
> Thanks,
> Ke
>
> -----Original Message-----
> From: John Turner [mailto:tomcat-user@johnturner.com]
> Sent: Monday, July 14, 2003 12:14 PM
> To: Tomcat Users List
> Subject: Re: Is System Call can be invoked in the Servlet Container
>
>
>
> String command = new String();
> command = "put your system call here";
> java.lang.Process process = java.lang.Runtime.getRuntime().exec(command);
> process.waitFor();
> if (process.exitValue() != 0)
> {
> throw new Exception("My System call did not work! Exit value = " + 
> process.exitValue() );
> }
>
> John
>
> On Mon, 14 Jul 2003 12:15:46 -0700, Ke Song <ksong@sentius.com> wrote:
>
>> Hi,
>> Is System Call allowed in the Servlet Container? Please help.
>>
>> Thanks.
>> Ke
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>>
>>
>
>
>



-- 
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message