The only way to achieve this would be to forward your req to the other
servlet. But you would not get back to your first servlet.
It sounds like a better solution would be a more conventional approach using
RMI or Jini.
Create a server on your NT box that would provide your servlet with whatever
resources you need.

-- Ben

> -----Original Message-----
> From: Sylvain Roche [mailto:[EMAIL PROTECTED]]
> Sent: 12 July 2000 10:30
> To: [EMAIL PROTECTED]
> Subject: Execute a servlet inside a servlet
>
>
> Sorry if this has already been discussed in the past. My
> problem is that I
> have a servlet which creates images. It uses the awt for
> printing fonts. As
> I use linux in my production environnment, I have to launch
> jrun in a X
> session, which is not very usefull. Plus I cannot remotely
> restart jrun in
> X. All this brings me to another solution. I would like to
> outsource the
> graphical procedure into another servlet, executing on a NT
> server, and
> retrieve its result (a gif image in most case), store it
> locally on the
> linux box. On this platform, the graphical environnment is
> always present,
> and I could restart jrun remotely. The linux box wouldn't
> need X anymore,
> this would enable to restart the java server.
>
>
> ----> SERVLET (linux) service--------------------------stores
> the result of
> the NT servlet, continues the service procedure
> -------------> HTTP response
>               |
>         |
>               ----------------------> SERVLET (NT)---------
>
> For this architecture, is it better to use a servlet or an
> application on
> the NT side ? Is there any way to simplify this scheme of
> function , and
> what synchrnization do I need ?
>
> Best regards
> Sylvain
>
>
>
> ______________________________________________
> Sylvain Roche
> Responsable d�veloppement
> Add-Online
> www.add-online.fr
>
> 80 rue d'Alsace
> 69100 VILLEURBANNE
> France
>
> tel : +33 437431260
> fax: +33 437431269
>
> ==============================================================
> =============
> To unsubscribe: mailto [EMAIL PROTECTED] with body:
> "signoff JSP-INTEREST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to