Doin' the same thing. You can write an MBean to do the initialization on startup so that your
user doesn't see the hit. We have not done this one yet but have other MBeans for similar initializations.
John
-----Original Message-----
From: danch [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, November 13, 2001 10:30 AM
To: Gerry Duhig
Cc: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] cryptography - slow starting????
That's probably the initialization of SecureRandom - it takes a while so
that it knows its seed is good (IIRC).
Gerry Duhig wrote:
> Hi!
>
>
>
> I have successfully built a servlet that uses JCE to encrypt data and
> deployed it under JBoss Tomcat 2.4.1-3.2.2.
>
>
>
> The very first access is VERY slow as the cryptography classes do some
> sort of initialisation. I don't know what.
>
>
>
> Subsequent actions seem very quick.
>
>
>
> Is this to be expected? Can I speed it up? Can I get this initialisation
> to take place at start-up before a user accesses the servlet?
>
>
>
> Gerry
>
>
>
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user
