tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Collins, Jim" <jim.coll...@uk.nomura.com>
Subject RE: How use an external C program in a Servlet
Date Tue, 24 Jun 2003 09:47:20 GMT
Why don't you wrap a Java interface around the C program?

Regards

Jim.

-----Original Message-----
From: Michel Jubault [mailto:michel.jubault@free.fr]
Sent: 24 June 2003 10:14
To: Tomcat Users List
Subject: Re: How use an external C program in a Servlet


Thanks, I try it straight away !
What kind of problem could occur with security ?

Regards

Michel

----- Original Message -----
From: Holger Klawitter <lists@klawitter.de>
To: Tomcat Users List <tomcat-user@jakarta.apache.org>
Sent: Tuesday, June 24, 2003 10:53 AM
Subject: Re: How use an external C program in a Servlet


Am Dienstag, 24. Juni 2003 09:51 schrieb Michel Jubault:
> Hi there !!
>
> I've  a little C program. This computes some variables and return a kind
of
> statistic result. I need it in a servlet. But I don't know how to call it.
> I'm using Tomcat 4.1.24.
> Where this program must be to be launched ?
> How can I pass arguments to C program and use in servlet the return value
?

The normal java contains the solution:

http://java.sun.com/j2se/1.4.1/docs/api/java/lang/Runtime.html#exec(java.lan
g.String[])

However, this imposes a lot of security concerns. You will probably have to
dig into $TOMCAT_HOME/conf/catalina.policy.

Mit freundlichem Gruß / With kind regards
Holger Klawitter
--
lists@klawitter.de


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




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


PLEASE READ: The information contained in this email is confidential
and intended for the named recipient(s) only. If you are not an intended
recipient of this email you must not copy, distribute or take any 
further action in reliance on it and you should delete it and notify the
sender immediately. Email is not a secure method of communication and 
Nomura International plc cannot accept responsibility for the accuracy
or completeness of this message or any attachment(s). Please examine this
email for virus infection, for which Nomura International plc accepts
no responsibility. If verification of this email is sought then please
request a hard copy. Unless otherwise stated any views or opinions
presented are solely those of the author and do not represent those of
Nomura International plc. This email is intended for informational
purposes only and is not a solicitation or offer to buy or sell
securities or related financial instruments. Nomura International plc is
regulated by the Financial Services Authority and is a member of the
London Stock Exchange.



---------------------------------------------------------------------
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