Hi all,
i'm a newbie here so pls. forgive my missteps. i tried to test a JMS POJO example but got this parse exception instead:
Attribute "xmlns" must be declared for element type "beans".
i am not sure what i'm missing here, but here is the file:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd">
<bean id="requestQueue" class="org.apache.activemq.command.ActiveMQQueue">
<constructor-arg value="PREADMIT.TO400.QUEUE"/>
</bean>
<bean id="connectionFactory" class="org.apache.activemq.ActiveMQConnectionFacto ry">
<property name="brokerURL" value="tcp://localhost:61616"/>
</bean>
<!-- this is the Message Driven POJO (MDP) -->
<bean id="messageListener" class="com.hmacorpmis.msglistener.ActiveMQJMSListe ner"/>
<!-- and this is the attendant message listener container -->
<bean id="listenerContainer" class="org.springframework.jms.listener.DefaultMes sageListenerContainer">
<property name="concurrentConsumers" value="5"/>
<property name="connectionFactory" ref="connectionFactory"/>
<property name="destination" ref="requestQueue"/>
<property name="messageListener" ref="messageListener"/>
</bean>
</beans>
any help is greatly appreciated. thanks.


Reply With Quote