This discussion is archived
0 Replies Latest reply: Nov 20, 2012 8:30 AM by user576183 RSS

How to start EJB 3.0 Timer on App start in WLS Cluster

user576183 Newbie
Currently Being Moderated
Hello,

I'm running WebLogic Server 10.3.5.0.5 PSU Patch for BUG14331529

I have a two node cluster and am following the below link to create a persistent EJB 3.0 timer that runs on the cluster.
http://shaoxiongyang.blogspot.co.uk/2010/10/how-to-use-ejb-3-timer-in-weblogic-10.html

I need the Timer to start with the application. I have tried both a ServletContextListener and a WebLogic ApplicationLifecycleListener, but neither throw errors when I call TimerService.createTimer() on my Timer Bean. In fact, ApplicationLifecycleListener would appear to not allow me to call an EJB at all.

I have the found the following Support doc, but that simply refers to restarting a Timer, not creating a new one.
https://support.oracle.com/epmos/faces/DocumentDisplay?id=1327996.1

Can anybody please tell me how I can start the EJB 3.0 Timer with the application on a WLS Cluster? I can start a Timer fine on a single node using the ServletContextListener.

Many thanks.

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points