Win a copy of Murach's MySQL this week in the JDBC and Relational Databases 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
  • Mikalai Zaikin

Equivalent to weblogic startup class in websphere ....

Ranch Hand
Posts: 278
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am trying to figure out the equivalent of Weblogic Startupup class feature on Websphere. I need to call some plain java class(not deployed on server) when websphere app server starts up.. Any idea, anything equavalent to this. How to kick off plain java class using the websphere inbuilt feature ....
Any suggestion would be appreciated ........
author and cow tipper
Posts: 5009
Hibernate Spring Tomcat Server
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This isn't WebSphere specific, but you can use a ContextListener. These listeners, which are part of a war file, get fired off when a web module is loaded onto the server. From one of these little guys, you can invoke all sorts of other Java classes.

Other approaches are to have a Servlet configured to load at startup, and initialize Java classes in the init method of this Servlet.

Not sure if this is what you're getting at.

Alternatively, you might need to do some JACL scripting that kicks off a process or two when WebSphere starts up. I'm not a huge JACL dude, but there are some scipts that I scraped together on my website. Just follow the Carlos the JACL links.


Don't get me started about those stupid light bulbs.
    Bookmark Topic Watch Topic
  • New Topic