Announcement Announcement Module
Collapse
No announcement yet.
Configure commonj.TimerManagerFactoryBean within EAR (Weblogic) Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Configure commonj.TimerManagerFactoryBean within EAR (Weblogic)

    Hi,

    we got the commonj.TimerManagerFactoryBean configured for weblogic and worked fine with the following configuration:
    Code:
    <bean id="timerFactory" class="org.springframework.scheduling.commonj.TimerManagerFactoryBean">
    		<property name="resourceRef" value="true" />
    		<property name="timerManagerName" value="TimerManagerRef" />
    		<property name="scheduledTimerListeners">
    			<list>
    				<ref bean="runnableListener" />
    			</list>
    		</property>
    	</bean>
    And in the web.xml:
    Code:
    	<resource-ref>
    		<res-ref-name>TimerManagerRef</res-ref-name>
    		<res-type>commonj.timers.TimerManager</res-type>
    		<res-auth>Container</res-auth>
    		<res-sharing-scope>Unshareable</res-sharing-scope>
    	</resource-ref>
    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.
Working...
X