This discussion is archived
1 Reply Latest reply: May 1, 2013 7:19 AM by Vijaya Moderator -Oracle RSS

Weblogic 12c cluster and EJB 3.1 timers

895406 Newbie
Currently Being Moderated

I'm using Weblogic 12c ( Cluster.
I configured the cluster to use database for EJB timers (ACTIVE and WEBLOGIC_TIMERS tables). I created a persistence store with logical name 'timerst'.

The timer bean:

public class TimerTestBean {
     private Logger logger = Logger.getLogger(TimerTestBean.class);

     TimerService timerService;

     public void settimer() {
          timerService.createTimer(30000, "New timer");

     public void zszszszs(Timer arg0) {


<?xml version="1.0" encoding="UTF-8"?>
<wls:weblogic-ejb-jar xmlns:wls="" xmlns:xsi="" xsi:schemaLocation="">


It seems the timer starts normally.

When there timer fires, I've got the following error message:
java.lang.ClassCastException: timertest.TimerTestBean_9kqf6o_Impl cannot be cast to javax.ejb.TimedObject

What is wrong?



Edited by: 892403 on 2013.02.19. 10:43

Edited by: 892403 on 2013.02.19. 10:44


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