Date: Tue, 30 Mar 2004 23:16:19 +0100 From: Mark Dixon <mark@markdnet.demon.co.uk> To: freensd-ports@freebsd.org, freebsd-java@freebsd.org Cc: Dag-Erling =?utf-8?q?Sm=C3=B8rgrav?= <des@des.no> Subject: Re: tomcat, JBoss etc. Should be headless? Message-ID: <200403302316.25052.mark@markdnet.demon.co.uk> In-Reply-To: <xzpy8pi2py5.fsf@dwp.des.no> References: <20040330123932.R1592@lizacnet.demon.co.uk> <Pine.GSO.4.58.0403301821270.19442@mail.ilrt.bris.ac.uk> <xzpy8pi2py5.fsf@dwp.des.no>
index | next in thread | previous in thread | raw e-mail
[-- Attachment #1 --] On Tuesday 30 Mar 2004 18:40, you wrote: > Jan Grant <Jan.Grant@bristol.ac.uk> writes: > > On Tue, 30 Mar 2004, Dag-Erling Smrgrav wrote: > > > Mark Dixon <mark@markdnet.demon.co.uk> writes: > > > > Given that these server type java ports run as daemon processes in > > > > the backgroundm wouldn't it be wise to start them up with > > > > -Djava.awt.headless=true set? > > > > > > What exactly would be the point? > > > > The AWT canvas & related classes are (supposedly) available for the > > dynamic generation of graphics, without needing an X server somewhere. > > In that case, isn't the onus on the application developer to make sure > at runtime that awt knows to run headless? > > DES Yes, that is true to some extent, but.. In the current situation, taking tomcat as an example, the JVM starts up with daemonctl from /usr/local/etc/rc.d into an environment with no X server, provided there's been no editing of the scripts. Any attempt to use the graphics libraries in any servlet will result in the servlet falling over with an AWTError. If we switch to headless, this would not be the case. I really don't see any cost to anyone in doing this, and it makes more JVM functionality avalaible by default to those that want it. The only people that may be hurt by this are those that have created a custom startup script which kicks off an X server (virtual or otherwise) for use by the JVM. -- Mark 'If it compiles, ship it' [-- Attachment #2 --] -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQBAafG4LqgJ90OcaiARAnL8AKC4kMkX0ahx0YB75QioaFoIvDst7gCg7cXv /4R9PSZplpIWcDeYwiZWqjo= =O+vW -----END PGP SIGNATURE-----help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200403302316.25052.mark>
