Win a copy of Svelte and Sapper in Action this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

Start-up and shutdown class

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
wht are they meant for? and how to create those classes...
I am working in weblogic app server 6.1 Sp 2
 
Ranch Hand
Posts: 1871
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Let us say that you want to cache some data from property file before starting the server/application.
How would you do it??
One of the ways is through a ServletContext listener which is at the Web Container level.
The other way is through startup classes provided which are interfaces defined by the application servers to be implemented by developers.
There can be other reasons too why you want to write code in startup classes. For example I can code in a startup class to create a Connection Pool and a DataSource so that I do not need a "configured" Config.xml file.
The Startup class will create all the configuration required using MBeans provided by weblogic.
 
Pratap Routray
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thnx for yr answer but can u plz tell me how to create one for weblogic app server..
any links ???
thnx again..
pratap
 
Rahul Mahindrakar
Ranch Hand
Posts: 1871
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Pratap
Check out the bea documentation for "startup" class and here is a sample startup class.
 
Don't get me started about those stupid light bulbs.
    Bookmark Topic Watch Topic
  • New Topic