<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Message Driven POJOs!</title>
	<atom:link href="http://blog.springsource.org/2006/08/11/message-driven-pojos/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.springsource.org/2006/08/11/message-driven-pojos/</link>
	<description>The voice of SpringSource</description>
	<lastBuildDate>Wed, 08 Feb 2012 17:31:53 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.1</generator>
	<item>
		<title>By: tanyue123</title>
		<link>http://blog.springsource.org/2006/08/11/message-driven-pojos/comment-page-1/#comment-234964</link>
		<dc:creator>tanyue123</dc:creator>
		<pubDate>Mon, 09 Jan 2012 03:05:35 +0000</pubDate>
		<guid isPermaLink="false">http://blog.interface21.com/main/2006/08/11/message-driven-pojos/#comment-234964</guid>
		<description>&lt;a href=&quot;http://www.vvme.com/home-theater-projectors&quot; rel=&quot;nofollow&quot;&gt;&lt;b&gt;Home Theater Projector&lt;/b&gt;&lt;/a&gt;Jan 1, 2012 ... The Top 10 Home Theater Projectors are broken into two resolution categories: 1080p and 720p. To help you find features important to you, ...
&lt;a href=&quot;http://www.vvme.com/home-theater-projectors/home-theater-projectors&quot; rel=&quot;nofollow&quot;&gt;&lt;b&gt;Cheap 1080P Projector&lt;/b&gt;&lt;/a&gt;Feb 27, 2008 ... Certainly many people are jumping on the 1080p bandwagon these days because the price of projectors is ridiculously cheap. But now that ...
&lt;a href=&quot;http://www.vvme.com/home-theater-projectors/projector-screens&quot; rel=&quot;nofollow&quot;&gt;&lt;b&gt;LCD Projector Screen&lt;/b&gt;&lt;/a&gt;Projector Screens by Da-Lite Screens. Projector Screen specials that include free shipping. Over 3000 ... Da-Lite Manual Model B Projector Screen 70&quot; x 70&quot; ...
&lt;a href=&quot;http://www.vvme.com/home-theater-projectors/conference-projectors&quot; rel=&quot;nofollow&quot;&gt;&lt;b&gt;Conference Projector&lt;/b&gt;&lt;/a&gt;Jan 1, 2012 ... Below are the Popular Conference Room Projectors for both small and large rooms. The major difference between these two groups is the ...
&lt;a href=&quot;http://www.vvme.com&quot; rel=&quot;nofollow&quot;&gt;&lt;b&gt;HID Kit&lt;/b&gt;&lt;/a&gt;Welcome to HID Kits, the world&#039;s top retailer of HID lights &amp; HID headlights. This week enjoy free shipping on all HID conversion kits, bulbs and ballasts within ...</description>
		<content:encoded><![CDATA[<p><a href="http://www.vvme.com/home-theater-projectors" rel="nofollow"><b>Home Theater Projector</b></a>Jan 1, 2012 &#8230; The Top 10 Home Theater Projectors are broken into two resolution categories: 1080p and 720p. To help you find features important to you, &#8230;<br />
<a href="http://www.vvme.com/home-theater-projectors/home-theater-projectors" rel="nofollow"><b>Cheap 1080P Projector</b></a>Feb 27, 2008 &#8230; Certainly many people are jumping on the 1080p bandwagon these days because the price of projectors is ridiculously cheap. But now that &#8230;<br />
<a href="http://www.vvme.com/home-theater-projectors/projector-screens" rel="nofollow"><b>LCD Projector Screen</b></a>Projector Screens by Da-Lite Screens. Projector Screen specials that include free shipping. Over 3000 &#8230; Da-Lite Manual Model B Projector Screen 70&#034; x 70&#034; &#8230;<br />
<a href="http://www.vvme.com/home-theater-projectors/conference-projectors" rel="nofollow"><b>Conference Projector</b></a>Jan 1, 2012 &#8230; Below are the Popular Conference Room Projectors for both small and large rooms. The major difference between these two groups is the &#8230;<br />
<a href="http://www.vvme.com" rel="nofollow"><b>HID Kit</b></a>Welcome to HID Kits, the world&#039;s top retailer of HID lights &amp; HID headlights. This week enjoy free shipping on all HID conversion kits, bulbs and ballasts within &#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kshitiz Garg</title>
		<link>http://blog.springsource.org/2006/08/11/message-driven-pojos/comment-page-1/#comment-176394</link>
		<dc:creator>Kshitiz Garg</dc:creator>
		<pubDate>Tue, 14 Sep 2010 16:21:22 +0000</pubDate>
		<guid isPermaLink="false">http://blog.interface21.com/main/2006/08/11/message-driven-pojos/#comment-176394</guid>
		<description>Hi Mark,

I am trying to run a web application based on spring consisting of standalone AMQ &amp; Tomcat. I am not able to see my message being produced/consumed anywhere. This is my code:

TopicSender
=========
import java.io.Serializable;

import javax.jms.JMSException;
import javax.jms.Message;
import javax.jms.ObjectMessage;
import javax.jms.Session;
import javax.jms.Topic;

import org.springframework.beans.factory.annotation.Required;
import org.springframework.jms.core.JmsTemplate;
import org.springframework.jms.core.MessageCreator;

public class TopicMessageSender {
private JmsTemplate jmsTemplate;
private Topic topic;

public void produce(final Serializable object) {
System.out.println(“inside produce”);
this.jmsTemplate.send(this.topic, new MessageCreator() {
public Message createMessage(Session session) throws JMSException {
ObjectMessage mm = session.createObjectMessage();
mm.setObject(object);
return mm;
}
});
}

@Required
public void setJmsTemplate(JmsTemplate jmsTemplate) {
this.jmsTemplate = jmsTemplate;
}

@Required
public void setTopic(Topic topic) {
this.topic = topic;
}
}

TopicMessageListener1
==================
import javax.jms.Message;
import javax.jms.MessageListener;
import javax.jms.ObjectMessage;

public class TopicMessageListener1 implements MessageListener{

@Override
public void onMessage(Message message) {
try {
if (message instanceof ObjectMessage) {
ObjectMessage mapMessage = (ObjectMessage) message;
Object obj = mapMessage.getObject();
System.out.println(“Printing from Subs1″ obj);
}
} catch (Exception e) {
// handle exception
}
}
}

Employee
=========
import java.io.Serializable;
import java.util.Date;

public class Employee implements Serializable {
private static final long serialVersionUID = 1L;
String lName=”Garg”;
String fName=”Kshitiz”;
double salary = 25000;
Date hireDate = new Date();
String address=”Gurgaon”;
public String getlName() {
return lName;
}
public void setlName(String lName) {
this.lName = lName;
}
public String getfName() {
return fName;
}
public void setfName(String fName) {
this.fName = fName;
}
public double getSalary() {
return salary;
}
public void setSalary(double salary) {
this.salary = salary;
}
public java.util.Date getHireDate() {
return hireDate;
}
public void setHireDate(java.util.Date hireDate) {
this.hireDate = hireDate;
}
public String getAddress() {
return address;
}
public void setAddress(String address) {
this.address = address;
}
}

Relevant config file settings
====================
 &lt;!-- ActiveMQ Integration starts here --&gt;
    &lt;!-- below are the connection settings for the ActiveMQ --&gt;
    
        
            
                
                  tcp://localhost:61616
                
            
        
    
   
    &lt;!-- Spring JMS Template --&gt;
    
        
            
        
    

         
    
          
          
    
   
    &lt;!-- Generate a Topic --&gt;
    
          
    
   
    &lt;!-- Configure a message listener for the above topic --&gt;
    
    
          
    

    &lt;!-- Configure a message listener for the above topic --&gt;
    
    
          
    



I am not able to figure out the exact problem. Can you please help me ?</description>
		<content:encoded><![CDATA[<p>Hi Mark,</p>
<p>I am trying to run a web application based on spring consisting of standalone AMQ &amp; Tomcat. I am not able to see my message being produced/consumed anywhere. This is my code:</p>
<p>TopicSender<br />
=========<br />
import java.io.Serializable;</p>
<p>import javax.jms.JMSException;<br />
import javax.jms.Message;<br />
import javax.jms.ObjectMessage;<br />
import javax.jms.Session;<br />
import javax.jms.Topic;</p>
<p>import org.springframework.beans.factory.annotation.Required;<br />
import org.springframework.jms.core.JmsTemplate;<br />
import org.springframework.jms.core.MessageCreator;</p>
<p>public class TopicMessageSender {<br />
private JmsTemplate jmsTemplate;<br />
private Topic topic;</p>
<p>public void produce(final Serializable object) {<br />
System.out.println(“inside produce”);<br />
this.jmsTemplate.send(this.topic, new MessageCreator() {<br />
public Message createMessage(Session session) throws JMSException {<br />
ObjectMessage mm = session.createObjectMessage();<br />
mm.setObject(object);<br />
return mm;<br />
}<br />
});<br />
}</p>
<p>@Required<br />
public void setJmsTemplate(JmsTemplate jmsTemplate) {<br />
this.jmsTemplate = jmsTemplate;<br />
}</p>
<p>@Required<br />
public void setTopic(Topic topic) {<br />
this.topic = topic;<br />
}<br />
}</p>
<p>TopicMessageListener1<br />
==================<br />
import javax.jms.Message;<br />
import javax.jms.MessageListener;<br />
import javax.jms.ObjectMessage;</p>
<p>public class TopicMessageListener1 implements MessageListener{</p>
<p>@Override<br />
public void onMessage(Message message) {<br />
try {<br />
if (message instanceof ObjectMessage) {<br />
ObjectMessage mapMessage = (ObjectMessage) message;<br />
Object obj = mapMessage.getObject();<br />
System.out.println(“Printing from Subs1″ obj);<br />
}<br />
} catch (Exception e) {<br />
// handle exception<br />
}<br />
}<br />
}</p>
<p>Employee<br />
=========<br />
import java.io.Serializable;<br />
import java.util.Date;</p>
<p>public class Employee implements Serializable {<br />
private static final long serialVersionUID = 1L;<br />
String lName=”Garg”;<br />
String fName=”Kshitiz”;<br />
double salary = 25000;<br />
Date hireDate = new Date();<br />
String address=”Gurgaon”;<br />
public String getlName() {<br />
return lName;<br />
}<br />
public void setlName(String lName) {<br />
this.lName = lName;<br />
}<br />
public String getfName() {<br />
return fName;<br />
}<br />
public void setfName(String fName) {<br />
this.fName = fName;<br />
}<br />
public double getSalary() {<br />
return salary;<br />
}<br />
public void setSalary(double salary) {<br />
this.salary = salary;<br />
}<br />
public java.util.Date getHireDate() {<br />
return hireDate;<br />
}<br />
public void setHireDate(java.util.Date hireDate) {<br />
this.hireDate = hireDate;<br />
}<br />
public String getAddress() {<br />
return address;<br />
}<br />
public void setAddress(String address) {<br />
this.address = address;<br />
}<br />
}</p>
<p>Relevant config file settings<br />
====================<br />
 <!-- ActiveMQ Integration starts here --><br />
    <!-- below are the connection settings for the ActiveMQ --></p>
<p>                  tcp://localhost:61616</p>
<p>    <!-- Spring JMS Template --></p>
<p>    <!-- Generate a Topic --></p>
<p>    <!-- Configure a message listener for the above topic --></p>
<p>    <!-- Configure a message listener for the above topic --></p>
<p>I am not able to figure out the exact problem. Can you please help me ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Shyam</title>
		<link>http://blog.springsource.org/2006/08/11/message-driven-pojos/comment-page-1/#comment-171986</link>
		<dc:creator>Shyam</dc:creator>
		<pubDate>Thu, 08 Apr 2010 13:40:43 +0000</pubDate>
		<guid isPermaLink="false">http://blog.interface21.com/main/2006/08/11/message-driven-pojos/#comment-171986</guid>
		<description>Thanks this works for me. 
But now, if I have 25 different queues that different parts of my app will be listening on, is there a way of giving the  SimpleMessageListenerContainer (or another listener container) a list of
(queuename/destinationName, listener class (implementing onMessage or handleMessage)  to deliver message to)? or should I be creating 25 different listener containers and the corresponding beans for destination &amp; listener-class?</description>
		<content:encoded><![CDATA[<p>Thanks this works for me.<br />
But now, if I have 25 different queues that different parts of my app will be listening on, is there a way of giving the  SimpleMessageListenerContainer (or another listener container) a list of<br />
(queuename/destinationName, listener class (implementing onMessage or handleMessage)  to deliver message to)? or should I be creating 25 different listener containers and the corresponding beans for destination &amp; listener-class?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vineet</title>
		<link>http://blog.springsource.org/2006/08/11/message-driven-pojos/comment-page-1/#comment-167562</link>
		<dc:creator>Vineet</dc:creator>
		<pubDate>Mon, 13 Jul 2009 06:15:34 +0000</pubDate>
		<guid isPermaLink="false">http://blog.interface21.com/main/2006/08/11/message-driven-pojos/#comment-167562</guid>
		<description>Hi ,

This is one great example on JMS Spring. But i do have one error. It is not able to establish a connection with ReplyNotifier and show ---

Caused by: java.lang.NoSuchMethodException: blog.mdp.ReplyNotifier.notifyMe(blog.mdp.RegistrationRequest) 

So could you please help me with this?</description>
		<content:encoded><![CDATA[<p>Hi ,</p>
<p>This is one great example on JMS Spring. But i do have one error. It is not able to establish a connection with ReplyNotifier and show &#8212;</p>
<p>Caused by: java.lang.NoSuchMethodException: blog.mdp.ReplyNotifier.notifyMe(blog.mdp.RegistrationRequest) </p>
<p>So could you please help me with this?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mohan</title>
		<link>http://blog.springsource.org/2006/08/11/message-driven-pojos/comment-page-1/#comment-167318</link>
		<dc:creator>mohan</dc:creator>
		<pubDate>Wed, 17 Jun 2009 08:27:41 +0000</pubDate>
		<guid isPermaLink="false">http://blog.interface21.com/main/2006/08/11/message-driven-pojos/#comment-167318</guid>
		<description>Hi,
This is Mohan

if i run the activemq server,i got this exception, plz help me..

===================================================================
D:\activemq-3.2.2\bin&gt;activemq
ActiveMQ Message Broker (http://activemq.org/)

Loading Mesaage Broker from activemq.xml on the CLASSPATH
Exception in thread &quot;main&quot; javax.xml.transform.TransformerFactoryConfigurationEr
ror: Provider org.apache.xalan.processor.TransformerFactoryImpl not found
        at javax.xml.transform.TransformerFactory.newInstance(Unknown Source)
        at org.activemq.spring.ActiveMQBeanDefinitionReader.createTransformer(Ac
tiveMQBeanDefinitionReader.java:62)
        at org.activemq.spring.ActiveMQBeanDefinitionReader.transformDocument(Ac
tiveMQBeanDefinitionReader.java:94)
        at org.activemq.spring.ActiveMQBeanDefinitionReader.registerBeanDefiniti
ons(ActiveMQBeanDefinitionReader.java:53)
        at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBea
nDefinitions(XmlBeanDefinitionReader.java:155)
        at org.activemq.spring.ActiveMQBeanFactory.(ActiveMQBeanFactory.ja
va:89)
        at org.activemq.spring.ActiveMQBeanFactory.(ActiveMQBeanFactory.ja
va:60)
        at org.activemq.spring.SpringBrokerContainerFactory.createBrokerContaine
r(SpringBrokerContainerFactory.java:86)
        at org.activemq.spring.Main.main(Main.java:71)</description>
		<content:encoded><![CDATA[<p>Hi,<br />
This is Mohan</p>
<p>if i run the activemq server,i got this exception, plz help me..</p>
<p>===================================================================<br />
D:\activemq-3.2.2\bin&gt;activemq<br />
ActiveMQ Message Broker (<a href="http://activemq.org/" rel="nofollow">http://activemq.org/</a>)</p>
<p>Loading Mesaage Broker from activemq.xml on the CLASSPATH<br />
Exception in thread &#034;main&#034; javax.xml.transform.TransformerFactoryConfigurationEr<br />
ror: Provider org.apache.xalan.processor.TransformerFactoryImpl not found<br />
        at javax.xml.transform.TransformerFactory.newInstance(Unknown Source)<br />
        at org.activemq.spring.ActiveMQBeanDefinitionReader.createTransformer(Ac<br />
tiveMQBeanDefinitionReader.java:62)<br />
        at org.activemq.spring.ActiveMQBeanDefinitionReader.transformDocument(Ac<br />
tiveMQBeanDefinitionReader.java:94)<br />
        at org.activemq.spring.ActiveMQBeanDefinitionReader.registerBeanDefiniti<br />
ons(ActiveMQBeanDefinitionReader.java:53)<br />
        at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBea<br />
nDefinitions(XmlBeanDefinitionReader.java:155)<br />
        at org.activemq.spring.ActiveMQBeanFactory.(ActiveMQBeanFactory.ja<br />
va:89)<br />
        at org.activemq.spring.ActiveMQBeanFactory.(ActiveMQBeanFactory.ja<br />
va:60)<br />
        at org.activemq.spring.SpringBrokerContainerFactory.createBrokerContaine<br />
r(SpringBrokerContainerFactory.java:86)<br />
        at org.activemq.spring.Main.main(Main.java:71)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Spring Recipes: A Problem-Solution Approach &#171; Pramatr Blog</title>
		<link>http://blog.springsource.org/2006/08/11/message-driven-pojos/comment-page-1/#comment-146559</link>
		<dc:creator>Spring Recipes: A Problem-Solution Approach &#171; Pramatr Blog</dc:creator>
		<pubDate>Tue, 17 Feb 2009 21:44:20 +0000</pubDate>
		<guid isPermaLink="false">http://blog.interface21.com/main/2006/08/11/message-driven-pojos/#comment-146559</guid>
		<description>[...] simplify sending, receiving, and listening to JMS messages. This introduces a powerful concept of message-driven POJOsfor those who like the concept of message-driven beans (MDBs) but don&#8217;t want the restrictions [...]</description>
		<content:encoded><![CDATA[<p>[...] simplify sending, receiving, and listening to JMS messages. This introduces a powerful concept of message-driven POJOsfor those who like the concept of message-driven beans (MDBs) but don&#039;t want the restrictions [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: hugberry</title>
		<link>http://blog.springsource.org/2006/08/11/message-driven-pojos/comment-page-1/#comment-127755</link>
		<dc:creator>hugberry</dc:creator>
		<pubDate>Wed, 05 Nov 2008 17:45:35 +0000</pubDate>
		<guid isPermaLink="false">http://blog.interface21.com/main/2006/08/11/message-driven-pojos/#comment-127755</guid>
		<description>oops.. missing the detail, here it is:







</description>
		<content:encoded><![CDATA[<p>oops.. missing the detail, here it is:</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: hugberry</title>
		<link>http://blog.springsource.org/2006/08/11/message-driven-pojos/comment-page-1/#comment-127573</link>
		<dc:creator>hugberry</dc:creator>
		<pubDate>Mon, 03 Nov 2008 22:27:26 +0000</pubDate>
		<guid isPermaLink="false">http://blog.interface21.com/main/2006/08/11/message-driven-pojos/#comment-127573</guid>
		<description>Thanks for someone pointing to me this article http://activemq.apache.org/jmstemplate-gotchas.html


I am able to resolve the issues and getting a significant gain in performance by doing this:


    &lt;!--  &gt;--&gt;bean id=&quot;connectionFactory&quot; class=&quot;org.apache.activemq.ActiveMQConnectionFactory&quot;&gt;
        
    
    
    
  	  
  		
    		
    	
      
    </description>
		<content:encoded><![CDATA[<p>Thanks for someone pointing to me this article <a href="http://activemq.apache.org/jmstemplate-gotchas.html" rel="nofollow">http://activemq.apache.org/jmstemplate-gotchas.html</a></p>
<p>I am able to resolve the issues and getting a significant gain in performance by doing this:</p>
<p>    <!--  &gt;-->bean id=&#034;connectionFactory&#034; class=&#034;org.apache.activemq.ActiveMQConnectionFactory&#034;&gt;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: hugberry</title>
		<link>http://blog.springsource.org/2006/08/11/message-driven-pojos/comment-page-1/#comment-127567</link>
		<dc:creator>hugberry</dc:creator>
		<pubDate>Mon, 03 Nov 2008 19:28:53 +0000</pubDate>
		<guid isPermaLink="false">http://blog.interface21.com/main/2006/08/11/message-driven-pojos/#comment-127567</guid>
		<description>Great and simple article to follow.  I tried it on Spring 2.5.5 and Apache Active MQ 5.1 and it works from the example above. Note that the class name has changed to org.apache.activemq.command.ActiveMQQueue and org.apache.activemq.ActiveMQConnectionFactory.

I modifIED the RegistrationConsole.java to test sending 1 million messages in a loop, but I got the following exception after hundreds of messages.  

Exception in thread &quot;main&quot; org.springframework.jms.UncategorizedJmsException: Un
categorized exception occured during JMS processing; nested exception is javax.j
ms.JMSException: Could not connect to broker URL: tcp://localhost:61616. Reason:
 java.net.BindException: Address already in use: connect; nested exception is ja
va.net.BindException: Address already in use: connect
        at org.springframework.jms.support.JmsUtils.convertJmsAccessException(Jm
sUtils.java:292)
        at org.springframework.jms.support.JmsAccessor.convertJmsAccessException
(JmsAccessor.java:168)
        at org.springframework.jms.core.JmsTemplate.execute(JmsTemplate.java:474
)
        at org.springframework.jms.core.JmsTemplate.send(JmsTemplate.java:539)
        at org.springframework.jms.core.JmsTemplate.convertAndSend(JmsTemplate.j
ava:617)
        at org.springframework.jms.core.JmsTemplate.convertAndSend(JmsTemplate.j
ava:609)
        at blog.mdp.RegistrationConsole.main(RegistrationConsole.java:32)
Caused by: javax.jms.JMSException: Could not connect to broker URL: tcp://localh
ost:61616. Reason: java.net.BindException: Address already in use: connect
        at org.apache.activemq.util.JMSExceptionSupport.create(JMSExceptionSuppo
rt.java:35)
        at org.apache.activemq.ActiveMQConnectionFactory.createActiveMQConnectio
n(ActiveMQConnectionFactory.java:278)
        at org.apache.activemq.ActiveMQConnectionFactory.createActiveMQConnectio
n(ActiveMQConnectionFactory.java:222)
        at org.apache.activemq.ActiveMQConnectionFactory.createConnection(Active
MQConnectionFactory.java:170)
        at org.springframework.jms.support.JmsAccessor.createConnection(JmsAcces
sor.java:184)
        at org.springframework.jms.core.JmsTemplate.execute(JmsTemplate.java:461
)
        ... 4 more
Caused by: java.net.BindException: Address already in use: connect
        at java.net.PlainSocketImpl.socketConnect(Native Method)
        at java.net.PlainSocketImpl.doConnect(Unknown Source)
        at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
        at java.net.PlainSocketImpl.connect(Unknown Source)
        at java.net.SocksSocketImpl.connect(Unknown Source)
        at java.net.Socket.connect(Unknown Source)
        at org.apache.activemq.transport.tcp.TcpTransport.connect(TcpTransport.j
ava:414)
        at org.apache.activemq.transport.tcp.TcpTransport.doStart(TcpTransport.j
ava:380)
        at org.apache.activemq.util.ServiceSupport.start(ServiceSupport.java:50)

        at org.apache.activemq.transport.TransportFilter.start(TransportFilter.j
ava:57)
        at org.apache.activemq.transport.TransportFilter.start(TransportFilter.j
ava:57)
        at org.apache.activemq.transport.WireFormatNegotiator.start(WireFormatNe
gotiator.java:72)
        at org.apache.activemq.transport.TransportFilter.start(TransportFilter.j
ava:57)
        at org.apache.activemq.transport.TransportFilter.start(TransportFilter.j
ava:57)
        at org.apache.activemq.ActiveMQConnectionFactory.createActiveMQConnectio
n(ActiveMQConnectionFactory.java:258)
        ... 8 more</description>
		<content:encoded><![CDATA[<p>Great and simple article to follow.  I tried it on Spring 2.5.5 and Apache Active MQ 5.1 and it works from the example above. Note that the class name has changed to org.apache.activemq.command.ActiveMQQueue and org.apache.activemq.ActiveMQConnectionFactory.</p>
<p>I modifIED the RegistrationConsole.java to test sending 1 million messages in a loop, but I got the following exception after hundreds of messages.  </p>
<p>Exception in thread &#034;main&#034; org.springframework.jms.UncategorizedJmsException: Un<br />
categorized exception occured during JMS processing; nested exception is javax.j<br />
ms.JMSException: Could not connect to broker URL: tcp://localhost:61616. Reason:<br />
 java.net.BindException: Address already in use: connect; nested exception is ja<br />
va.net.BindException: Address already in use: connect<br />
        at org.springframework.jms.support.JmsUtils.convertJmsAccessException(Jm<br />
sUtils.java:292)<br />
        at org.springframework.jms.support.JmsAccessor.convertJmsAccessException<br />
(JmsAccessor.java:168)<br />
        at org.springframework.jms.core.JmsTemplate.execute(JmsTemplate.java:474<br />
)<br />
        at org.springframework.jms.core.JmsTemplate.send(JmsTemplate.java:539)<br />
        at org.springframework.jms.core.JmsTemplate.convertAndSend(JmsTemplate.j<br />
ava:617)<br />
        at org.springframework.jms.core.JmsTemplate.convertAndSend(JmsTemplate.j<br />
ava:609)<br />
        at blog.mdp.RegistrationConsole.main(RegistrationConsole.java:32)<br />
Caused by: javax.jms.JMSException: Could not connect to broker URL: tcp://localh<br />
ost:61616. Reason: java.net.BindException: Address already in use: connect<br />
        at org.apache.activemq.util.JMSExceptionSupport.create(JMSExceptionSuppo<br />
rt.java:35)<br />
        at org.apache.activemq.ActiveMQConnectionFactory.createActiveMQConnectio<br />
n(ActiveMQConnectionFactory.java:278)<br />
        at org.apache.activemq.ActiveMQConnectionFactory.createActiveMQConnectio<br />
n(ActiveMQConnectionFactory.java:222)<br />
        at org.apache.activemq.ActiveMQConnectionFactory.createConnection(Active<br />
MQConnectionFactory.java:170)<br />
        at org.springframework.jms.support.JmsAccessor.createConnection(JmsAcces<br />
sor.java:184)<br />
        at org.springframework.jms.core.JmsTemplate.execute(JmsTemplate.java:461<br />
)<br />
        &#8230; 4 more<br />
Caused by: java.net.BindException: Address already in use: connect<br />
        at java.net.PlainSocketImpl.socketConnect(Native Method)<br />
        at java.net.PlainSocketImpl.doConnect(Unknown Source)<br />
        at java.net.PlainSocketImpl.connectToAddress(Unknown Source)<br />
        at java.net.PlainSocketImpl.connect(Unknown Source)<br />
        at java.net.SocksSocketImpl.connect(Unknown Source)<br />
        at java.net.Socket.connect(Unknown Source)<br />
        at org.apache.activemq.transport.tcp.TcpTransport.connect(TcpTransport.j<br />
ava:414)<br />
        at org.apache.activemq.transport.tcp.TcpTransport.doStart(TcpTransport.j<br />
ava:380)<br />
        at org.apache.activemq.util.ServiceSupport.start(ServiceSupport.java:50)</p>
<p>        at org.apache.activemq.transport.TransportFilter.start(TransportFilter.j<br />
ava:57)<br />
        at org.apache.activemq.transport.TransportFilter.start(TransportFilter.j<br />
ava:57)<br />
        at org.apache.activemq.transport.WireFormatNegotiator.start(WireFormatNe<br />
gotiator.java:72)<br />
        at org.apache.activemq.transport.TransportFilter.start(TransportFilter.j<br />
ava:57)<br />
        at org.apache.activemq.transport.TransportFilter.start(TransportFilter.j<br />
ava:57)<br />
        at org.apache.activemq.ActiveMQConnectionFactory.createActiveMQConnectio<br />
n(ActiveMQConnectionFactory.java:258)<br />
        &#8230; 8 more</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jk</title>
		<link>http://blog.springsource.org/2006/08/11/message-driven-pojos/comment-page-1/#comment-114436</link>
		<dc:creator>jk</dc:creator>
		<pubDate>Thu, 24 Jul 2008 19:14:13 +0000</pubDate>
		<guid isPermaLink="false">http://blog.interface21.com/main/2006/08/11/message-driven-pojos/#comment-114436</guid>
		<description>simple and great! kudos!!!</description>
		<content:encoded><![CDATA[<p>simple and great! kudos!!!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

