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>
next in thread | previous in thread | raw e-mail | index | archive | help
--Boundary-02=_5GfaACJvxviRwSu Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline 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=3Dtrue 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 wi= th=20 daemonctl from /usr/local/etc/rc.d into an environment with no X server,=20 provided there's been no editing of the scripts. Any attempt to use the=20 graphics libraries in any servlet will result in the servlet falling over=20 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= =20 functionality avalaible by default to those that want it. The only people=20 that may be hurt by this are those that have created a custom startup scrip= t=20 which kicks off an X server (virtual or otherwise) for use by the JVM. =2D-=20 Mark 'If it compiles, ship it' --Boundary-02=_5GfaACJvxviRwSu Content-Type: application/pgp-signature Content-Description: signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQBAafG4LqgJ90OcaiARAnL8AKC4kMkX0ahx0YB75QioaFoIvDst7gCg7cXv /4R9PSZplpIWcDeYwiZWqjo= =O+vW -----END PGP SIGNATURE----- --Boundary-02=_5GfaACJvxviRwSu--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200403302316.25052.mark>