Hi!
I'm using a JndiObjectFactoryBean to lookup jndi resources (in this case a jms connection factory)
For the jndiName i use a PropertyPlaceholder, something like this:
When i set lookupOnStartup to true (default), everything works fine.Code:<property name="jndiName" value="java:comp/env/${jms.connectionFactory.jndiName:jms/QueueConnectionFactory}" />
But when i set it to false and provide a proxyInterface, i get a warning when accessing the ConnectionFactory
When i defineCould not refresh JMS Connection for destination 'jms/MyQ' - retrying in 5000 ms. Cause: JndiObjectTargetSource failed to obtain new target object; nested exception is javax.naming.NameNotFoundException: Name ${jms.connectionFactory.jndiName:jms is not bound in this Context
<property name="lookupOnStartup" value="${lookupOnStartup}"/> with lookupOnStartup = false
instead of
<property name="lookupOnStartup" value="false"/>
It works fine.
Any hints on that?
Thanks!
Matthias


Reply With Quote