• 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:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

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: 5006
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
 
Nothing up my sleeve ... and ... presto! A tiny ad:
free, earth-friendly heat - a kickstarter for putting coin in your pocket while saving the earth
https://coderanch.com/t/751654/free-earth-friendly-heat-kickstarter
reply
    Bookmark Topic Watch Topic
  • New Topic