Why don't you implement a Singleton that has a map or whatever for storing
the data you need. IMHO it would be good enough, if this Singleton data
cache is initialized the first time a user requests it
(Singleton.getInstance()). If you want the Singleton initialized before the
first users uses the app, use an MBean, the scheduler (firing up a startup),
or maybe easiest and most standard way a servlet that implements a
ServletContextListener. You could then use the methode contextInitialized()
to implement the necessary logic.

Cheers,
Bernie

-----Ursprüngliche Nachricht-----
Von: sun zheng [mailto:[EMAIL PROTECTED]
Gesendet: Dienstag, 2. September 2003 17:26
An: [EMAIL PROTECTED]
Betreff: Re: [JBoss-user] Configuration for JBoss Startup


Hi,

Please help me to solve the problem .... :( do not escape the question by
your ancestors...

We have some 'proxy' information stored in stateless session beans, so that
they are available for the users very fast. At start-time those SlSB read
the data from database or via a soap-service from remote server which is not
part of our network (VPN is used).
That's take some time. So the first user in the moment has to wait a lot of
time before his requests are satisfiy. To optimize the process it seems
helpfull that those beans are started direct after the start of JBoss.

with best wishes

Zheng Sun

_________________________________________________________________
Help STOP SPAM with the new MSN 8 and get 2 months FREE*  
http://join.msn.com/?page=features/junkmail



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

This e-mail and any attachment is for authorised use by the intended recipient(s) 
only. It may contain proprietary material, confidential information and/or be subject 
to legal privilege. It should not be copied, disclosed to, retained or used by, any 
other party. If you are not an intended recipient then please promptly delete this 
e-mail and any attachment and all copies and inform the sender. Thank you.

LogicaCMG global sponsors, Gartner Symposium, Cannes, 4th -7th November 2003

http://symposium.gartner.com/story.php.id.3323.s.5.html

Please note that LogicaCMG does not have control over content from,or availability of, 
this website


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to