title: Error creating bean with name 'inboundJms.container': Cannot resolve reference to bean 'connectionFactory'
body: <p>Am trying to listen weblogic queue with help of Spring integration.getting below Exception</p>
  
  <p><strong>org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'inboundJms.container': Cannot resolve reference to bean 'connectionFactory' while setting bean property 'connectionFactory'; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'connectionFactory' available</strong></p>
  
  <p>Config.xml</p>
  
  <pre><code>&lt;bean id="wljndiTemplate" class="org.springframework.jndi.JndiTemplate" lazy-init="true"&gt;
          &lt;property name="environment"&gt;
              &lt;props&gt;
                  &lt;prop key="java.naming.factory.initial"&gt;weblogic.jndi.WLInitialContextFactory&lt;/prop&gt;
                  &lt;prop key="java.naming.provider.url"&gt;-------&lt;/prop&gt;
                  &lt;prop key="java.naming.security.principal"&gt;-------&lt;/prop&gt;
                  &lt;prop key="java.naming.security.credentials"&gt;-------&lt;/prop&gt;
              &lt;/props&gt;
          &lt;/property&gt;
      &lt;/bean&gt;
  
      &lt;bean id="wlConnectionFactory" class="org.springframework.jndi.JndiObjectFactoryBean"&gt;
          &lt;property name="jndiTemplate" ref="wljndiTemplate" /&gt;
          &lt;property name="jndiName" value="QueueConnFactory" /&gt;
      &lt;/bean&gt;
  
      &lt;bean id="wlDestinationResolver"  class="org.springframework.jms.support.destination.JndiDestinationResolver"&gt;
          &lt;property name="jndiTemplate" ref="wljndiTemplate" /&gt;
          &lt;property name="cache" value="true" /&gt;
      &lt;/bean&gt;
  
      &lt;bean id="inboundResponseQueue" class="org.springframework.jndi.JndiObjectFactoryBean"&gt;
          &lt;property name="jndiTemplate" ref="wljndiTemplate" /&gt;
          &lt;property name="jndiName" value="OutboundQueue" /&gt;
  </code></pre>
  
  <p>InboundAdapter.xml</p>
  
  <pre><code>&lt;jms:message-driven-channel-adapter id="inboundJms" destination="ContactOutboundQueue" channel="messageReceiver" /&gt;
  
      &lt;!--&lt;router id="msgRouter" auto-startup="true" input-channel="messageReceiver"  default-output-channel=""       ref="routeInfo"         method="getQueueMessage"/&gt;--&gt;
  
      &lt;integration:service-activator id="msgRouter" input-channel="messageReceiver" ref="routeInfo" method="getQueueMessage"/&gt;
  </code></pre>