-
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
-
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.devx.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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Development Centers
-- Android Development Center
-- Cloud Development Project Center
-- HTML5 Development Center
-- Windows Mobile Development Center
|