... along those lines - so I have decided that I can get what I need by using the TimerManagerFactoryBean and WorkManagerTaskExecutor beans. All I need now is a working example of wiring one of these beans. I understand everything except where to specify the JNDI name. Here is how I have it wired:
Code:
<bean id="timerManager" class="org.springframework.scheduling.commonj.TimerManagerFactoryBean">
<property name="jndiTemplate">
<ref bean="commonJJndiTemplate"/>
</property>
<property name="resourceRef" value="true"/>
<property name="jndiName">
<value>tm/default</value>
</property>
</bean>
<bean id="commonJJndiTemplate" class="org.springframework.jndi.JndiTemplate">
<property name="environment">
<props>
<prop key="java.naming.factory.initial">
${java.naming.factory.initial}
</prop>
<prop key="java.naming.provider.url">
${java.naming.provider.url}
</prop>
<prop key="java.naming.factory.url.pkgs">
${java.naming.factory.url.pkgs}
</prop>
</props>
</property>
</bean>
So of course this threw an exception because there is no 'jndiName' setter in this class. Which has me spinning around trying to find out how to actually reference the jndi object by name.
I have connected to these services without Spring by hard coding the jndi info; however, I'd like to stick to Spring since it is so clean and fits nicely.
In short - I need to know how to properly wire one of these classes, where do I specify the jndi name???
thanks a million. "hello hello hello - is anybody out there?" <Pink Floyd>