Categories: MSDN / DotNet / Java / Scripts / Linux / PHP Ask - La ask - La Answer

PreLoading javabeans into memory on startup of websphere?

I am looking to preload beans into memory for static data retrieved from a
database. My question is ... Since I would like to have the startup process
of the server invoke a program to do this, can I execute a servlet from a
prompt or is this only valid when coming through a web page? If I can't,
then all I really need is a java program that reads in a parm and puts the
beans in memory. How do I execute a java .class file from DOS?

-brent
[479 byte] By [xlr8tn] at [2007-11-9 21:18:51]
# 1 Re: PreLoading javabeans into memory on startup of websphere?
Many servers have the capability of preloading a servlet. So why not just
preload a servlet whose only function is to load those beans? Executing a
class file from DOS is easy but not likely to be helpful, because it starts
a new JVM and runs the class in it. You want to run your class in the
server's JVM.

PC2

xlr8tn <brent_broussard@amsinc.com> wrote in message
news:39f59bfb$1@news.dev-archive.com...
>
> I am looking to preload beans into memory for static data retrieved from a
> database. My question is ... Since I would like to have the startup
process
> of the server invoke a program to do this, can I execute a servlet from a
> prompt or is this only valid when coming through a web page? If I can't,
> then all I really need is a java program that reads in a parm and puts the
> beans in memory. How do I execute a java .class file from DOS?
>
> -brent
Paul Clapham at 2007-11-11 23:07:38 >