Hello,
I want to pass the Name of the InputQueue as a JobParameter to the Job.
When I declare this:
I get this Exception:Code:<bean id="inputQueue" class="org.springframework.jndi.JndiObjectFactoryBean" scope="step"> <property name="lookupOnStartup" value="false"/> <property name="proxyInterface" value="javax.jms.Queue"/> <property name="jndiName" value="#{jobParameters['input.queue']}"/> </bean>
Is it really not possible? Does anybody have another idea to solve this requirement?Code:Caused by: java.lang.IllegalStateException: Cannot create scoped proxy for bean 'scopedTarget.inputQueue': Target type could not be determined at the time of proxy creation. at org.springframework.aop.scope.ScopedProxyFactoryBean.setBeanFactory(ScopedProxyFactoryBean.java:94) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeAwareMethods(AbstractAutowireCapableBeanFactory.java:1439) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1408) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519) ... 94 more
Thanks
Dennis


Reply With Quote