I am using spring jms. I want a local queue in jboss AS7.1.1 server. It is showing me the below exception. No bean named connectionFactory. No bean named destination.
My applicationContext.xml looks like below
<!-- For Spring JMS configuration -->
<bean id="jndiTemplate" class="org.springframework.jndi.JndiTemplate">
<property name="environment">
<props>
<prop key="java.naming.factory.initial">org.jnp.interfaces.NamingContextFactory</prop>
<prop key="java.naming.provider.url">jnp://localhost:1099</prop>
<prop key="java.naming.factory.url.pkgs">org.jboss.naming:org.jnp.interfaces</prop>
</props>
</property>
</bean>
<bean id="connectionfactory" class="org.springframework.jndi.JndiObjectFactoryBean">
<property name="jndiTemplate" ref="jndiTemplate"/>
<property name="jndiName" value="java:/ConnectionFactory" />
</bean>
<bean id="destination" class="org.springframework.jndi.JndiObjectFactoryBean">
<property name="jndiName" value="jms/queue/test" />
</bean>
<bean id="jmsTemplate" class="org.springframework.jms.core.JmsTemplate">
<property name="connectionFactory" ref="connectionFactory" />
<property name="defaultDestination" ref="destination" />
</bean>
<bean class="org.springframework.jms.listener.SimpleMessageListenerContainer">
<property name="connectionFactory" ref="connectionFactory" />
<property name="destination" ref="destination" />
<property name="messageListener" ref="receiver" />
</bean>
<bean id="jmsSender" class="org.hbs.admin.service.messaging.JMSSenderImpl">
</bean>
<bean id="receiver" class="org.hbs.admin.service.messaging.JMSReceiver"/>
sender class JMSSenderImpl is having jmsTemplate as dependency..
any help any body can tell... any mistake i have done in this...badly need help ...,