we got the commonj.TimerManagerFactoryBean configured for weblogic and worked fine with the following configuration:
And in the web.xml:
<bean id="timerFactory" class="org.springframework.scheduling.commonj.TimerManagerFactoryBean">
<property name="resourceRef" value="true" />
<property name="timerManagerName" value="TimerManagerRef" />
<ref bean="runnableListener" />
I need to migrate the config to an EJB jar but without success because I cannot get Spring to recognize the TimerManagerRef.
I tried configuring the resource-ref to an EJB inside the ejb-jar.xml and Spring still does not recognize it.
Is there any other way? I cannot perform a JNDI lookup to get the timerManager from weblogic either. It seems the only way to get the reference is through the resource-ref.