-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Deech,

On 4/23/2010 4:31 PM, aditya siram wrote:
> I know that JAI is installed correctly because a stand-alone app is
> able to access the required class.

Good. You didn't mention your platform, and so a missing native library
could have been the problem (not sure how much of JAI is native these
days). Since it works outside of Tomcat, you're probably okay.

I agree with Pid and Thad: try not to install anything extra into the
system classpath by putting libraries like JAI into JRE_HOME/anything.
It's best to bundle them with your webapp and/or use "-classpath" when
launching non-webapp code.

Finally, I'd just like to mention that uses of JAI (or really any Java
image I/O) tends to reach the limits of scalability rather quickly
unless you are careful about things like image size and numbers of
simultaneous operations on images. Consider the fact that images are
rather large and can consume a lot of memory, especially with many
potential simultaneous users. If you are doing operations that don't
actually require that you actually decode the entire image (such as
determining image metadata, etc.) consider avoiding a full-image
operation. Also consider a batch-processing model where your webapp
records the desired operations and another process comes along and
actually performs those operations. That can often give the user a
better experience and also give you a more stable system.

Good luck,
- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkvV0joACgkQ9CaO5/Lv0PC+GwCfdBYxUuErFjpAp3dXYLyeK9yw
HqYAoLlPzIgu23u/C3AutaA/h4GHoruG
=tQPK
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to