• 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
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

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
 
Wanna see my flashlight? How about this tiny ad?
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic