Re: Anyone try to use SHIS in headless environment?

From: David Garnier <david.garnier@etudier-online.com>
Date: Mon Feb 04 2002 - 11:51:11 EST

Le Lundi 4 Février 2002 16:06, vous avez écrit :
> Hello,
>
> I was curious to know if anyone out there has tried to use the
> SimpleHttpImageServer in a headless (no display) type
> environment. We tried it under Linux running had had JDK 1.3.1
> and had some problems. JDK 1.4.0 is supposed to support
> headless apps. Another alternative is to use something called
> X virtual frame buffer (Xvfb). There is also some kind of library
> called PJA Toolkit but I'm not sure if that is an option.
Been there, done that. You probably had a look at the Java Developer Forums?

> Anyway, just curious if anyone else has done this.

I built a web app that does just that. Yes JDK 1.4 is supposed to support
headless apps, but I couldn't find a definition, or what they mean. I think
it's just an option: instead of throwing an exception when it can't connect
to an X server, it will throw an exception sooner.

First I tried to use the default X server (on my development box) but it was
messy, especially when I deployed it on the production box.

Second I tried Xvfb, and it works like a charm. Installation and setup is a
no-brainer: you just tell it to run on some display, set up your app to use
this display with export DISPLAY=someboc:somedisplay and you're done.
I wrote a little boot script in /etc/rc.d that take care of starting Xvfb,
setting up the environments variables and starting Tomcat.

> Thanks,
> --scottie

Best regards,
David Garnier

--
[To unsubscribe to this list send an email to "majdart@bbn.com"
with the following text in the BODY of the message "unsubscribe openmap-users"]
Received on Mon Feb 4 11:51:00 2002

This archive was generated by hypermail 2.1.8 : Thu May 12 2005 - 07:18:32 EDT