• 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 ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

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
1
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.

http://www.technicalfacilitation.com/get.php?link=scripts

Cheers!

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