DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: PreLoading javabeans into memory on startup of websphere?

  1. #1
    xlr8tn Guest

    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

  2. #2
    Paul Clapham Guest

    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
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center