I should read rickard responses before posting mine :-)
I am glad we see the same simple solution
marc
|-----Original Message-----
|From: [EMAIL PROTECTED]
|[mailto:[EMAIL PROTECTED]]On Behalf Of Rickard �berg
|Sent: Tuesday, October 10, 2000 5:28 AM
|To: jBoss
|Subject: Re: [jBoss-User] Preloading ejbs/caching techniques
|
|
|Hi!
|
|Lars Bj�nnes wrote:
|> We're developing a pretty big system, using jBoss, Apache, Tomcat, and
|> Cocoon. For this system, we're rolling our own user authentication/
|> access to resource-verification system. For now, everything is
|> implemented using ejbs.
|>
|> Some operations will be done almost all the time, like checking if a
|> user has access to a certain resource on the system. This will involve
|> some rather complex database lookups, and is thus quite expensive in
|> terms of CPU etc.
|>
|> So:
|>
|> Is it possible to preload beans, with all data loaded? I'd rather have
|> a long and slow startup of the system, than a long wait for the user.
|>
|> Other strategies or ideas?
|
|I would recommend doing this as a JMX MBean that you add after the
|AutoDeployer in jboss.conf. In the MBean you can call your EJB's to
|cause them to be preloaded. Use the NoPassivationCache for best results
|in your case (edit container configurations to do this).
|
|/Rickard
|
|--
|Rickard �berg
|
|Email: [EMAIL PROTECTED]
|http://www.telkel.com
|http://www.jboss.org
|http://www.dreambean.com
|
|
|
|--
|--------------------------------------------------------------
|To subscribe: [EMAIL PROTECTED]
|To unsubscribe: [EMAIL PROTECTED]
|Problems?: [EMAIL PROTECTED]
|
|
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Problems?: [EMAIL PROTECTED]