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:
Code:
<property name="jndiName" value="java:comp/env/${jms.connectionFactory.jndiName:jms/QueueConnectionFactory}" />
When i set lookupOnStartup to true (default), everything works fine.
But when i set it to false and provide a proxyInterface, i get a warning when accessing the ConnectionFactory

Could 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
When i define
<property name="lookupOnStartup" value="${lookupOnStartup}"/> with lookupOnStartup = false
instead of
<property name="lookupOnStartup" value="false"/>
It works fine.

Any hints on that?

Thanks!

Matthias