This is the mail archive of the
rhug-rhats@sources.redhat.com
mailing list for the RHUG project.
Re: rhug servlet in linux native compile
- From: Anthony Green <green at redhat dot com>
- To: Christophe Roux <ch_roux at club-internet dot fr>
- Cc: rhug-rhats at sources dot redhat dot com
- Date: 01 Oct 2002 14:54:49 -0700
- Subject: Re: rhug servlet in linux native compile
- References: <E17vMNm-0007oe-00@smarthost2.mail.easynet.fr>
On Sat, 2002-09-28 at 11:36, Christophe Roux wrote:
> I found that the byte code for my servlet is slower than with jdk.
> So I ask, is it possible to use a natively linux compiled servlet instead of
> byte code with tomcat-rhug?
Yes. Just compile your servlet .class files into .so files.
For instance, HelloWorldExample.class..
$ gcj -shared -o HelloWorldExample.so HelloWorldExample.class
Just leave that in your WEB-INF/classes dir and tomcat should pick it up
(remove the .class file just to be sure!).
Let us know how it works...
AG