<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<id>tag:old.nabble.com,2006:forum-2356</id>
	<title>Nabble - ActiveMQ - User</title>
	<updated>2009-11-27T00:49:26Z</updated>
	<link rel="self" type="application/atom+xml" href="http://old.nabble.com/ActiveMQ---User-f2356.xml" />
	<link rel="alternate" type="text/html" href="http://old.nabble.com/ActiveMQ---User-f2356.html" />
	<subtitle type="html">&lt;a href=&quot;http://activemq.apache.org/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Apache ActiveMQ&lt;/a&gt;&amp;nbsp;is the most popular and powerful open source Message Broker. Apache ActiveMQ is fast, supports many &lt;a href=&quot;http://activemq.apache.org/cross-language-clients.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Cross Language Clients and Protocols&lt;/a&gt;&amp;nbsp;and many &lt;a href=&quot;http://activemq.apache.org/features.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;advanced features&lt;a target=&quot;_top&quot;&gt;&amp;nbsp;while fully supporting JMS 1.1 and J2EE 1.4. Apache ActiveMQ is released under the Apache 2.0 License</subtitle>
	
<entry>
	<id>tag:old.nabble.com,2006:post-26539438</id>
	<title>Re: How to purge or Delete messages from ActiveMq Topic</title>
	<published>2009-11-27T00:49:26Z</published>
	<updated>2009-11-27T00:49:26Z</updated>
	<author>
		<name>Gary Tully</name>
	</author>
	<content type="html">are you using auto_acknowledge on your session? Issue may be that the
&lt;br&gt;messages are not getting acked if you have a durable subscriber.
&lt;br&gt;Can you post your code?
&lt;br&gt;&lt;br&gt;2009/11/26 Asheesh Gupta &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26539438&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;gupta.asheesh22@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Hi All,
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; I am trying to write an application in which i am sending my logs
&lt;br&gt;&amp;gt; messages to activemq Topic.
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; I am able to read the message but i m not able to clear or delete the
&lt;br&gt;&amp;gt; messages from topic.
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; Could any body tell me how to purge or delete the message from
&lt;br&gt;&amp;gt; activemq topic.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;I am using onMessage to read the message from activemq topic...
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Thanks,
&lt;br&gt;&amp;gt; Asheesh
&lt;br&gt;&amp;gt; --
&lt;br&gt;&amp;gt; View this message in context:
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/How-to-purge-or-Delete-messages-from-ActiveMq-Topic-tp26525303p26525303.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://old.nabble.com/How-to-purge-or-Delete-messages-from-ActiveMq-Topic-tp26525303p26525303.html&lt;/a&gt;&lt;br&gt;&amp;gt; Sent from the ActiveMQ - User mailing list archive at Nabble.com.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;&lt;a href=&quot;http://blog.garytully.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://blog.garytully.com&lt;/a&gt;&lt;br&gt;&lt;br&gt;Open Source Integration
&lt;br&gt;&lt;a href=&quot;http://fusesource.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://fusesource.com&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/How-to-purge-or-Delete-messages-from-ActiveMq-Topic-tp26526453p26539438.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26534086</id>
	<title>NPE- Consumer Example</title>
	<published>2009-11-26T11:38:28Z</published>
	<updated>2009-11-26T11:38:28Z</updated>
	<author>
		<name>Uday Subbarayan-3</name>
	</author>
	<content type="html">The default sample app in 5.3 is throwing a Null Pointer Exception for consuming the message. I see that message count is decreasing by 1, when i run the consumer sample app for 1st time. But it doesn't consume any more message and throws this NPE. Its on Mac. Any idea?
&lt;br&gt;&lt;br&gt;Thanks,
&lt;br&gt;Uday.
&lt;br&gt;&lt;br&gt;uday-subbarayans-macbook:example uday$ ant consumer -Durl=tcp://localhost:61616 -Dsubject=myqueue
&lt;br&gt;Buildfile: build.xml
&lt;br&gt;&lt;br&gt;init:
&lt;br&gt;&lt;br&gt;compile:
&lt;br&gt;&lt;br&gt;consumer:
&lt;br&gt;     [echo] Running consumer against server at $url = tcp://localhost:61616 for subject $subject = myqueue
&lt;br&gt;     [java] Connecting to URL: tcp://localhost:61616
&lt;br&gt;     [java] Consuming queue: myqueue
&lt;br&gt;     [java] Using a non-durable subscription
&lt;br&gt;     [java] We are about to wait until we consume: 2000 message(s) then we will shutdown
&lt;br&gt;     [java] Caught: java.lang.NullPointerException
&lt;br&gt;     [java] java.lang.NullPointerException
&lt;br&gt;     [java]     at ConsumerTool.onMessage(Unknown Source)
&lt;br&gt;     [java]     at ConsumerTool.consumeMessagesAndClose(Unknown Source)
&lt;br&gt;     [java]     at ConsumerTool.run(Unknown Source)
&lt;br&gt;     [java]     at ConsumerTool.main(Unknown Source)
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/NPE--Consumer-Example-tp26534086p26534086.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26534017</id>
	<title>Re: HTTP- Authentication</title>
	<published>2009-11-26T11:31:29Z</published>
	<updated>2009-11-26T11:31:29Z</updated>
	<author>
		<name>Uday Subbarayan-3</name>
	</author>
	<content type="html">Thanks. First I need to disable this anonymous access, otherwise any one can POST message to my queue! How do I do it?
&lt;br&gt;&lt;br&gt;Basic auth? hmm...expected a little better here for security!
&lt;br&gt;&lt;br&gt;Best,
&lt;br&gt;Uday.
&lt;br&gt;&lt;br&gt;-------------------------
&lt;br&gt;&lt;br&gt;I do not blog but e-write:
&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://uds-web.blogspot.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://uds-web.blogspot.com&lt;/a&gt;&lt;br&gt;&lt;br&gt;--- On Thu, 11/26/09, Mick Knutson &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26534017&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;mknutson@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&lt;br&gt;From: Mick Knutson &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26534017&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;mknutson@...&lt;/a&gt;&amp;gt;
&lt;br&gt;Subject: Re: HTTP- Authentication
&lt;br&gt;To: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26534017&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users@...&lt;/a&gt;
&lt;br&gt;Date: Thursday, November 26, 2009, 7:03 PM
&lt;br&gt;&lt;br&gt;you can use BASIC authentication.
&lt;br&gt;&lt;br&gt;---
&lt;br&gt;Thank You…
&lt;br&gt;&lt;br&gt;Mick Knutson, President
&lt;br&gt;&lt;br&gt;BASE Logic, Inc.
&lt;br&gt;Enterprise Architecture, Design, Mentoring &amp; Agile Consulting
&lt;br&gt;p. (866) BLiNC-411: (254-6241-1)
&lt;br&gt;f. (415) 685-4233
&lt;br&gt;&lt;br&gt;Website: &lt;a href=&quot;http://baselogic.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://baselogic.com&lt;/a&gt;&lt;br&gt;Linked IN: &lt;a href=&quot;http://linkedin.com/in/mickknutson&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://linkedin.com/in/mickknutson&lt;/a&gt;&lt;br&gt;Vacation Rental: &lt;a href=&quot;http://tahoe.baselogic.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://tahoe.baselogic.com&lt;/a&gt;&lt;br&gt;---
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;On Thu, Nov 26, 2009 at 10:45 AM, Uday Subbarayan &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26534017&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;uday.subbarayan@...&lt;/a&gt;
&lt;br&gt;&amp;gt; wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hi All,
&lt;br&gt;&amp;gt;     I am able to HTTP POST to my queue w/o any authentication and is scary
&lt;br&gt;&amp;gt; :-)
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://localhost:8161/demo/message/myqueue?type=queue&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://localhost:8161/demo/message/myqueue?type=queue&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Is there an out-of-box auth mechanism available  for HTTP traffic? OR Do i
&lt;br&gt;&amp;gt; have to write one as explained in the doc?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Thanks,
&lt;br&gt;&amp;gt; Uday.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/URI-for-Queue-tp26490495p26534017.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26533725</id>
	<title>Re: HTTP- Authentication</title>
	<published>2009-11-26T11:03:06Z</published>
	<updated>2009-11-26T11:03:06Z</updated>
	<author>
		<name>Mick Knutson-3</name>
	</author>
	<content type="html">you can use BASIC authentication.
&lt;br&gt;&lt;br&gt;---
&lt;br&gt;Thank You…
&lt;br&gt;&lt;br&gt;Mick Knutson, President
&lt;br&gt;&lt;br&gt;BASE Logic, Inc.
&lt;br&gt;Enterprise Architecture, Design, Mentoring &amp; Agile Consulting
&lt;br&gt;p. (866) BLiNC-411: (254-6241-1)
&lt;br&gt;f. (415) 685-4233
&lt;br&gt;&lt;br&gt;Website: &lt;a href=&quot;http://baselogic.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://baselogic.com&lt;/a&gt;&lt;br&gt;Linked IN: &lt;a href=&quot;http://linkedin.com/in/mickknutson&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://linkedin.com/in/mickknutson&lt;/a&gt;&lt;br&gt;Vacation Rental: &lt;a href=&quot;http://tahoe.baselogic.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://tahoe.baselogic.com&lt;/a&gt;&lt;br&gt;---
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;On Thu, Nov 26, 2009 at 10:45 AM, Uday Subbarayan &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26533725&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;uday.subbarayan@...&lt;/a&gt;
&lt;br&gt;&amp;gt; wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hi All,
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; I am able to HTTP POST to my queue w/o any authentication and is scary
&lt;br&gt;&amp;gt; :-)
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://localhost:8161/demo/message/myqueue?type=queue&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://localhost:8161/demo/message/myqueue?type=queue&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Is there an out-of-box auth mechanism available &amp;nbsp;for HTTP traffic? OR Do i
&lt;br&gt;&amp;gt; have to write one as explained in the doc?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Thanks,
&lt;br&gt;&amp;gt; Uday.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&lt;/div&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/URI-for-Queue-tp26490495p26533725.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26533533</id>
	<title>HTTP- Authentication</title>
	<published>2009-11-26T10:45:32Z</published>
	<updated>2009-11-26T10:45:32Z</updated>
	<author>
		<name>Uday Subbarayan-3</name>
	</author>
	<content type="html">Hi All,
&lt;br&gt;    I am able to HTTP POST to my queue w/o any authentication and is scary :-)
&lt;br&gt;&lt;a href=&quot;http://localhost:8161/demo/message/myqueue?type=queue&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://localhost:8161/demo/message/myqueue?type=queue&lt;/a&gt;&lt;br&gt;&lt;br&gt;Is there an out-of-box auth mechanism available  for HTTP traffic? OR Do i have to write one as explained in the doc?
&lt;br&gt;&lt;br&gt;Thanks,
&lt;br&gt;Uday.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/URI-for-Queue-tp26490495p26533533.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26532460</id>
	<title>Re: URI for Queue</title>
	<published>2009-11-26T09:12:47Z</published>
	<updated>2009-11-26T09:12:47Z</updated>
	<author>
		<name>Uday Subbarayan-3</name>
	</author>
	<content type="html">Thank you very much. This works. I see in the admin page that the msg count is increasing.
&lt;br&gt;&lt;br&gt;Best,
&lt;br&gt;Uday.
&lt;br&gt;&lt;br&gt;-------------------------
&lt;br&gt;&lt;br&gt;I do not blog but e-write:
&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://uds-web.blogspot.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://uds-web.blogspot.com&lt;/a&gt;&lt;br&gt;&lt;br&gt;--- On Thu, 11/26/09, Dejan Bosanac &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26532460&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dejan@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&lt;br&gt;From: Dejan Bosanac &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26532460&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dejan@...&lt;/a&gt;&amp;gt;
&lt;br&gt;Subject: Re: URI for Queue
&lt;br&gt;To: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26532460&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users@...&lt;/a&gt;
&lt;br&gt;Date: Thursday, November 26, 2009, 2:09 PM
&lt;br&gt;&lt;br&gt;Sorry, my mistake the url is
&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://localhost:8161/demo/message/myqueue?type=queue&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://localhost:8161/demo/message/myqueue?type=queue&lt;/a&gt;&lt;br&gt;&lt;br&gt;Cheers
&lt;br&gt;--
&lt;br&gt;Dejan Bosanac - &lt;a href=&quot;http://twitter.com/dejanb&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://twitter.com/dejanb&lt;/a&gt;&lt;br&gt;&lt;br&gt;Open Source Integration - &lt;a href=&quot;http://fusesource.com/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://fusesource.com/&lt;/a&gt;&lt;br&gt;ActiveMQ in Action - &lt;a href=&quot;http://www.manning.com/snyder/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.manning.com/snyder/&lt;/a&gt;&lt;br&gt;Blog - &lt;a href=&quot;http://www.nighttale.net&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.nighttale.net&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;On Wed, Nov 25, 2009 at 5:01 PM, Uday Subbarayan
&lt;br&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26532460&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;uday.subbarayan@...&lt;/a&gt;&amp;gt;wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hi Dejan,
&lt;br&gt;&amp;gt;     This is also NOT working.(getting 404 resource not found) I am NOT
&lt;br&gt;&amp;gt; using a servlet as a client. It's a POJO as a client to MQ.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I am still trying to find the URI for the Queue!
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Thanks,
&lt;br&gt;&amp;gt; Uday.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; -------------------------
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I do not blog but e-write:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://uds-web.blogspot.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://uds-web.blogspot.com&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; --- On Wed, 11/25/09, Dejan Bosanac &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26532460&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dejan@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; From: Dejan Bosanac &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26532460&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dejan@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt; Subject: Re: URI for Queue
&lt;br&gt;&amp;gt; To: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26532460&amp;i=6&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users@...&lt;/a&gt;
&lt;br&gt;&amp;gt; Date: Wednesday, November 25, 2009, 8:12 AM
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Hi Uday,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; it all depends how you configure your servlet. In the demo app, distributed
&lt;br&gt;&amp;gt; with the ActiveMQ, it is configured to listen to &amp;quot;messages/*&amp;quot; path, so the
&lt;br&gt;&amp;gt; full path to your queue would be
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://host:port/demo/messages/myqueue&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://host:port/demo/messages/myqueue&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Regarding security, you can secure it like any other web app. I suggest you
&lt;br&gt;&amp;gt; take a look at webapp/demo/WEB-INF/web.xml and appropriate articles on the
&lt;br&gt;&amp;gt; web on how to secure Java web apps.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Cheers
&lt;br&gt;&amp;gt; --
&lt;br&gt;&amp;gt; Dejan Bosanac - &lt;a href=&quot;http://twitter.com/dejanb&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://twitter.com/dejanb&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Open Source Integration - &lt;a href=&quot;http://fusesource.com/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://fusesource.com/&lt;/a&gt;&lt;br&gt;&amp;gt; ActiveMQ in Action - &lt;a href=&quot;http://www.manning.com/snyder/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.manning.com/snyder/&lt;/a&gt;&lt;br&gt;&amp;gt; Blog - &lt;a href=&quot;http://www.nighttale.net&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.nighttale.net&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; On Tue, Nov 24, 2009 at 4:09 PM, Uday Subbarayan
&lt;br&gt;&amp;gt; &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26532460&amp;i=7&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;uday.subbarayan@...&lt;/a&gt;&amp;gt;wrote:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; Thanks for the pointers. I checked them. I got the answer for my [1]. So,
&lt;br&gt;&amp;gt; &amp;gt; if my queue name is 'myqueue', then URL is going to be &lt;a href=&quot;http://host:port&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://host:port&lt;/a&gt;&lt;br&gt;&amp;gt; /queue/myqueue,
&lt;br&gt;&amp;gt; &amp;gt; right?
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; I am still looking for credentials stuff...I couldn't able to find it.
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; I don't want to use JMS. The reason is that I like to put a std. load
&lt;br&gt;&amp;gt; &amp;gt; balancer between client &amp; ActiveMQ. I like HTTP.
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; Thanks,
&lt;br&gt;&amp;gt; &amp;gt; Uday.
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; -------------------------
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; I do not blog but e-write:
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &lt;a href=&quot;http://uds-web.blogspot.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://uds-web.blogspot.com&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; --- On Tue, 11/24/09, Dejan Bosanac &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26532460&amp;i=8&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dejan@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; From: Dejan Bosanac &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26532460&amp;i=9&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dejan@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; Subject: Re: URI for Queue
&lt;br&gt;&amp;gt; &amp;gt; To: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26532460&amp;i=10&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &amp;gt; Date: Tuesday, November 24, 2009, 8:35 AM
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; Hi,
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; take a look at this article for more info:
&lt;br&gt;&amp;gt; &amp;gt; &lt;a href=&quot;http://activemq.apache.org/rest.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://activemq.apache.org/rest.html&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;gt; and be sure to check web demos
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://activemq.apache.org/web-samples.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://activemq.apache.org/web-samples.html&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; BTW. If you're using Java you'll have much better messaging experience
&lt;br&gt;&amp;gt; &amp;gt; using
&lt;br&gt;&amp;gt; &amp;gt; JMS API.
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; Cheers
&lt;br&gt;&amp;gt; &amp;gt; --
&lt;br&gt;&amp;gt; &amp;gt; Dejan Bosanac - &lt;a href=&quot;http://twitter.com/dejanb&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://twitter.com/dejanb&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; Open Source Integration - &lt;a href=&quot;http://fusesource.com/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://fusesource.com/&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;gt; ActiveMQ in Action - &lt;a href=&quot;http://www.manning.com/snyder/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.manning.com/snyder/&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;gt; Blog - &lt;a href=&quot;http://www.nighttale.net&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.nighttale.net&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; On Tue, Nov 24, 2009 at 5:56 AM, Uday Subbarayan
&lt;br&gt;&amp;gt; &amp;gt; &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26532460&amp;i=11&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;uday.subbarayan@...&lt;/a&gt;&amp;gt;wrote:
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; Hi,
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;    I have installed ActiveMQ 5.3 and created a test queue called
&lt;br&gt;&amp;gt; &amp;gt; 'mytest'.
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; I want to HTTP POST to this queue from my java application(J2SE)
&lt;br&gt;&amp;gt; directly
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; using java.net.httpurlconnection.
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; My questions are,
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; [1] What is the URL for this queue?
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; [2] What is the credentials(if any) to POST to this queue?
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; Thanks,
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; Uday.
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; -------------------------
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; I do not blog but e-write:
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &lt;a href=&quot;http://uds-web.blogspot.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://uds-web.blogspot.com&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/URI-for-Queue-tp26490495p26532460.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26529981</id>
	<title>Re: URI for Queue</title>
	<published>2009-11-26T06:09:56Z</published>
	<updated>2009-11-26T06:09:56Z</updated>
	<author>
		<name>Dejan Bosanac</name>
	</author>
	<content type="html">Sorry, my mistake the url is
&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://localhost:8161/demo/message/myqueue?type=queue&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://localhost:8161/demo/message/myqueue?type=queue&lt;/a&gt;&lt;br&gt;&lt;br&gt;Cheers
&lt;br&gt;--
&lt;br&gt;Dejan Bosanac - &lt;a href=&quot;http://twitter.com/dejanb&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://twitter.com/dejanb&lt;/a&gt;&lt;br&gt;&lt;br&gt;Open Source Integration - &lt;a href=&quot;http://fusesource.com/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://fusesource.com/&lt;/a&gt;&lt;br&gt;ActiveMQ in Action - &lt;a href=&quot;http://www.manning.com/snyder/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.manning.com/snyder/&lt;/a&gt;&lt;br&gt;Blog - &lt;a href=&quot;http://www.nighttale.net&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.nighttale.net&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;On Wed, Nov 25, 2009 at 5:01 PM, Uday Subbarayan
&lt;br&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26529981&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;uday.subbarayan@...&lt;/a&gt;&amp;gt;wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hi Dejan,
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; This is also NOT working.(getting 404 resource not found) I am NOT
&lt;br&gt;&amp;gt; using a servlet as a client. It's a POJO as a client to MQ.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I am still trying to find the URI for the Queue!
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Thanks,
&lt;br&gt;&amp;gt; Uday.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; -------------------------
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I do not blog but e-write:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://uds-web.blogspot.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://uds-web.blogspot.com&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; --- On Wed, 11/25/09, Dejan Bosanac &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26529981&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dejan@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; From: Dejan Bosanac &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26529981&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dejan@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt; Subject: Re: URI for Queue
&lt;br&gt;&amp;gt; To: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26529981&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users@...&lt;/a&gt;
&lt;br&gt;&amp;gt; Date: Wednesday, November 25, 2009, 8:12 AM
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Hi Uday,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; it all depends how you configure your servlet. In the demo app, distributed
&lt;br&gt;&amp;gt; with the ActiveMQ, it is configured to listen to &amp;quot;messages/*&amp;quot; path, so the
&lt;br&gt;&amp;gt; full path to your queue would be
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://host:port/demo/messages/myqueue&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://host:port/demo/messages/myqueue&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Regarding security, you can secure it like any other web app. I suggest you
&lt;br&gt;&amp;gt; take a look at webapp/demo/WEB-INF/web.xml and appropriate articles on the
&lt;br&gt;&amp;gt; web on how to secure Java web apps.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Cheers
&lt;br&gt;&amp;gt; --
&lt;br&gt;&amp;gt; Dejan Bosanac - &lt;a href=&quot;http://twitter.com/dejanb&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://twitter.com/dejanb&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Open Source Integration - &lt;a href=&quot;http://fusesource.com/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://fusesource.com/&lt;/a&gt;&lt;br&gt;&amp;gt; ActiveMQ in Action - &lt;a href=&quot;http://www.manning.com/snyder/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.manning.com/snyder/&lt;/a&gt;&lt;br&gt;&amp;gt; Blog - &lt;a href=&quot;http://www.nighttale.net&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.nighttale.net&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; On Tue, Nov 24, 2009 at 4:09 PM, Uday Subbarayan
&lt;br&gt;&amp;gt; &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26529981&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;uday.subbarayan@...&lt;/a&gt;&amp;gt;wrote:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; Thanks for the pointers. I checked them. I got the answer for my [1]. So,
&lt;br&gt;&amp;gt; &amp;gt; if my queue name is 'myqueue', then URL is going to be &lt;a href=&quot;http://host:port&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://host:port&lt;/a&gt;&lt;br&gt;&amp;gt; /queue/myqueue,
&lt;br&gt;&amp;gt; &amp;gt; right?
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; I am still looking for credentials stuff...I couldn't able to find it.
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; I don't want to use JMS. The reason is that I like to put a std. load
&lt;br&gt;&amp;gt; &amp;gt; balancer between client &amp; ActiveMQ. I like HTTP.
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; Thanks,
&lt;br&gt;&amp;gt; &amp;gt; Uday.
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; -------------------------
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; I do not blog but e-write:
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &lt;a href=&quot;http://uds-web.blogspot.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://uds-web.blogspot.com&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; --- On Tue, 11/24/09, Dejan Bosanac &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26529981&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dejan@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; From: Dejan Bosanac &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26529981&amp;i=6&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dejan@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; Subject: Re: URI for Queue
&lt;br&gt;&amp;gt; &amp;gt; To: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26529981&amp;i=7&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &amp;gt; Date: Tuesday, November 24, 2009, 8:35 AM
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; Hi,
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; take a look at this article for more info:
&lt;br&gt;&amp;gt; &amp;gt; &lt;a href=&quot;http://activemq.apache.org/rest.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://activemq.apache.org/rest.html&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;gt; and be sure to check web demos
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://activemq.apache.org/web-samples.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://activemq.apache.org/web-samples.html&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; BTW. If you're using Java you'll have much better messaging experience
&lt;br&gt;&amp;gt; &amp;gt; using
&lt;br&gt;&amp;gt; &amp;gt; JMS API.
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; Cheers
&lt;br&gt;&amp;gt; &amp;gt; --
&lt;br&gt;&amp;gt; &amp;gt; Dejan Bosanac - &lt;a href=&quot;http://twitter.com/dejanb&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://twitter.com/dejanb&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; Open Source Integration - &lt;a href=&quot;http://fusesource.com/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://fusesource.com/&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;gt; ActiveMQ in Action - &lt;a href=&quot;http://www.manning.com/snyder/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.manning.com/snyder/&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;gt; Blog - &lt;a href=&quot;http://www.nighttale.net&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.nighttale.net&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; On Tue, Nov 24, 2009 at 5:56 AM, Uday Subbarayan
&lt;br&gt;&amp;gt; &amp;gt; &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26529981&amp;i=8&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;uday.subbarayan@...&lt;/a&gt;&amp;gt;wrote:
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; Hi,
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp;I have installed ActiveMQ 5.3 and created a test queue called
&lt;br&gt;&amp;gt; &amp;gt; 'mytest'.
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; I want to HTTP POST to this queue from my java application(J2SE)
&lt;br&gt;&amp;gt; directly
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; using java.net.httpurlconnection.
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; My questions are,
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; [1] What is the URL for this queue?
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; [2] What is the credentials(if any) to POST to this queue?
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; Thanks,
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; Uday.
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; -------------------------
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; I do not blog but e-write:
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &lt;a href=&quot;http://uds-web.blogspot.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://uds-web.blogspot.com&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&lt;/div&gt;&lt;div class=&quot;signature&quot;&gt;Dejan Bosanac
&lt;br&gt;&lt;br&gt;Open Source Integration - &lt;a href=&quot;http://fusesource.com/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://fusesource.com/&lt;/a&gt;&lt;br&gt;ActiveMQ in Action - &lt;a href=&quot;http://www.manning.com/snyder/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.manning.com/snyder/&lt;/a&gt;&lt;br&gt;Blog - &lt;a href=&quot;http://www.nighttale.net&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.nighttale.net&lt;/a&gt;&lt;/div&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/URI-for-Queue-tp26490495p26529981.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26527052</id>
	<title>Re: xa jta activemq jboss</title>
	<published>2009-11-26T03:40:17Z</published>
	<updated>2009-11-26T03:40:17Z</updated>
	<author>
		<name>miten</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;&lt;br&gt;Actually XAConnection is being setup fine but the session is not getting the transaction attributes.
&lt;br&gt;I also tried to ensure your suggestion to extend and override the createConnectionFactory but does not solve the issue. &amp;nbsp;I am listing here the application config (with Override) so that one can refer here if needed.
&lt;br&gt;&lt;br&gt;&lt;b&gt;using derived class config:&lt;/b&gt;&lt;br&gt;&lt;br&gt;&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;
&lt;br&gt;&amp;lt;beans xmlns=&amp;quot;&lt;a href=&quot;http://www.springframework.org/schema/beans&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.springframework.org/schema/beans&lt;/a&gt;&amp;quot;
&lt;br&gt;&amp;nbsp; xmlns:xsi=&amp;quot;&lt;a href=&quot;http://www.w3.org/2001/XMLSchema-instance&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.w3.org/2001/XMLSchema-instance&lt;/a&gt;&amp;quot;
&lt;br&gt;&amp;nbsp; xsi:schemaLocation=&amp;quot;&lt;a href=&quot;http://www.springframework.org/schema/beans&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.springframework.org/schema/beans&lt;/a&gt;&amp;nbsp;&lt;a href=&quot;http://www.springframework.org/schema/beans/spring-beans-2.0.xsd&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.springframework.org/schema/beans/spring-beans-2.0.xsd&lt;/a&gt;&amp;quot;&amp;gt;
&lt;br&gt;&amp;nbsp; 
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;lt;!-- this is the Message Driven POJO (MDP) --&amp;gt;
&lt;br&gt;&amp;lt;bean id=&amp;quot;myMessageListener&amp;quot; class=&amp;quot;jmsexample.ExampleListener&amp;quot; /&amp;gt;
&lt;br&gt;&amp;lt;bean id=&amp;quot;jndiTemplate&amp;quot; class=&amp;quot;org.springframework.jndi.JndiTemplate&amp;quot;&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;lt;property name=&amp;quot;environment&amp;quot;&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;props&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;prop key=&amp;quot;java.naming.factory.initial&amp;quot;&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; jmsexample.jndi.ActiveMQInitialContextFactory
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/prop&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;prop key=&amp;quot;queue.TEST.Q1&amp;quot;&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; TEST.Q1
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/prop&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;prop key=&amp;quot;brokerURL&amp;quot;&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;tcp://localhost:61616
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/prop&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/props&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;lt;/property&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;lt;/bean&amp;gt;
&lt;br&gt;&amp;nbsp;&amp;lt;bean id=&amp;quot;appJmsDestination&amp;quot;
&lt;br&gt;&amp;nbsp; &amp;nbsp; class=&amp;quot;org.springframework.jndi.JndiObjectFactoryBean&amp;quot;&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;lt;property name=&amp;quot;jndiTemplate&amp;quot;&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;ref bean=&amp;quot;jndiTemplate&amp;quot;/&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;lt;/property&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;lt;property name=&amp;quot;jndiName&amp;quot; value=&amp;quot;TEST.Q1&amp;quot;/&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;lt;/bean&amp;gt;
&lt;br&gt;&amp;nbsp; 
&lt;br&gt;&amp;nbsp;&amp;lt;bean id=&amp;quot;connectionFactory&amp;quot;
&lt;br&gt;&amp;nbsp; &amp;nbsp; class=&amp;quot;org.springframework.jndi.JndiObjectFactoryBean&amp;quot;&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;lt;property name=&amp;quot;jndiTemplate&amp;quot;&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;ref bean=&amp;quot;jndiTemplate&amp;quot;/&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;lt;/property&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;lt;property name=&amp;quot;jndiName&amp;quot; value=&amp;quot;ConnectionFactory&amp;quot;/&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;lt;/bean&amp;gt;
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&lt;br&gt;&amp;lt;bean id=&amp;quot;jmsContainer&amp;quot; class=&amp;quot;org.springframework.jms.listener.DefaultMessageListenerContainer&amp;quot;&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;lt;property name=&amp;quot;connectionFactory&amp;quot; ref=&amp;quot;connectionFactory&amp;quot;/&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;lt;property name=&amp;quot;destination&amp;quot; ref=&amp;quot;appJmsDestination&amp;quot;/&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;lt;property name=&amp;quot;messageListener&amp;quot; ref=&amp;quot;myMessageListener&amp;quot; /&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;lt;property name=&amp;quot;transactionManager&amp;quot; ref=&amp;quot;transactionManager&amp;quot;/&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;lt;/bean&amp;gt;
&lt;br&gt;&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp;&amp;lt;bean id=&amp;quot;jbossTransactionManager&amp;quot;
&lt;br&gt;&amp;nbsp; &amp;nbsp; class=&amp;quot;com.arjuna.ats.internal.jta.transaction.arjunacore.TransactionManagerImple&amp;quot;&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;lt;/bean&amp;gt;
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;lt;bean id=&amp;quot;jbossUserTransaction&amp;quot;
&lt;br&gt;&amp;nbsp; &amp;nbsp; class=&amp;quot;com.arjuna.ats.internal.jta.transaction.arjunacore.UserTransactionImple&amp;quot;/&amp;gt;
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;lt;bean id=&amp;quot;transactionManager&amp;quot;
&lt;br&gt;&amp;nbsp; &amp;nbsp; class=&amp;quot;org.springframework.transaction.jta.JtaTransactionManager&amp;quot;&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;lt;property name=&amp;quot;transactionManager&amp;quot;&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;ref bean=&amp;quot;jbossTransactionManager&amp;quot; /&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;lt;/property&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;lt;property name=&amp;quot;userTransaction&amp;quot;&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;ref bean=&amp;quot;jbossUserTransaction&amp;quot; /&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;lt;/property&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;lt;/bean&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;lt;/beans&amp;gt;
&lt;br&gt;&lt;br&gt;I have opened issue as you suggested:
&lt;br&gt;&lt;a href=&quot;https://issues.apache.org/activemq/browse/AMQ-2514&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;AMQ-2514&lt;/a&gt;&lt;br&gt;&lt;br&gt;There are thus two bean configs in this thread viz. with and w/o deriving ActiveMQInitialContextFactory.
&lt;br&gt;&lt;br&gt;Regards,
&lt;br&gt;&lt;br&gt;Miten.
&lt;br&gt;&lt;br&gt;&lt;blockquote class=&quot;quote light-black dark-border-color&quot;&gt;&lt;div class=&quot;quote light-border-color&quot;&gt;
&lt;div class=&quot;quote-author&quot; style=&quot;font-weight: bold;&quot;&gt;Gary Tully wrote:&lt;/div&gt;
&lt;div class=&quot;quote-message shrinkable-quote&quot;&gt;is the problem that the
&lt;br&gt;ActiveMQInitialContextFactory returns a regular connection factory rather
&lt;br&gt;than an XA capable one. You may want to extend the
&lt;br&gt;ActiveMQInitialContextFactory to override the createConnectionFactory()
&lt;br&gt;method to return an XA variant or see if you can explicitly provide the
&lt;br&gt;connection factory reference.
&lt;br&gt;Either through configuration of by default the createConnectionFactory
&lt;br&gt;should be capable of returning an XA connection factory. I think by defaut
&lt;br&gt;it would make sense. Can you raise a JIRA for this an if you find that this
&lt;br&gt;is the root cause of your problem.
&lt;br&gt;&lt;br&gt;&lt;br&gt;2009/11/25 miten &amp;lt;Miten.Mehta@morganstanley.com&amp;gt;
&lt;br&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Hi,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I am able to get things to work without global transaction. &amp;nbsp;With JBOSS I
&lt;br&gt;&amp;gt; am
&lt;br&gt;&amp;gt; getting &amp;quot;javax.jms.JMSException: Session's XAResource has not been enlisted
&lt;br&gt;&amp;gt; in a distributed transaction.&amp;quot;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; using the spring config as below:
&lt;br&gt;&amp;gt; =========================
&lt;br&gt;&amp;gt; &amp;lt;bean id=&amp;quot;myMessageListener&amp;quot; class=&amp;quot;jmsexample.ExampleListener&amp;quot; /&amp;gt;
&lt;br&gt;&amp;gt; &amp;lt;bean id=&amp;quot;jndiTemplate&amp;quot; class=&amp;quot;org.springframework.jndi.JndiTemplate&amp;quot;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;&amp;lt;property name=&amp;quot;environment&amp;quot;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;props&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;prop key=&amp;quot;java.naming.factory.initial&amp;quot;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;org.apache.activemq.jndi.ActiveMQInitialContextFactory
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/prop&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;prop key=&amp;quot;queue.TEST.Q1&amp;quot;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;TEST.Q1
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/prop&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/props&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;&amp;lt;/property&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp;&amp;lt;/bean&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp;&amp;lt;bean id=&amp;quot;appJmsDestination&amp;quot;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;class=&amp;quot;org.springframework.jndi.JndiObjectFactoryBean&amp;quot;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;&amp;lt;property name=&amp;quot;jndiTemplate&amp;quot;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;ref bean=&amp;quot;jndiTemplate&amp;quot;/&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;&amp;lt;/property&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;&amp;lt;property name=&amp;quot;jndiName&amp;quot; value=&amp;quot;TEST.Q1&amp;quot;/&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp;&amp;lt;/bean&amp;gt;
&lt;br&gt;&amp;gt; &amp;lt;bean id=&amp;quot;connectionFactory&amp;quot;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;class=&amp;quot;org.apache.activemq.ActiveMQXAConnectionFactory&amp;quot;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;property name=&amp;quot;brokerURL&amp;quot;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;value&amp;gt;tcp://localhost:61616&amp;lt;/value&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/property&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;&amp;lt;/bean&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;lt;bean id=&amp;quot;jmsContainer&amp;quot;
&lt;br&gt;&amp;gt; class=&amp;quot;org.springframework.jms.listener.DefaultMessageListenerContainer&amp;quot;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;&amp;lt;property name=&amp;quot;connectionFactory&amp;quot; ref=&amp;quot;connectionFactory&amp;quot;/&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;&amp;lt;property name=&amp;quot;destination&amp;quot; ref=&amp;quot;appJmsDestination&amp;quot;/&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;&amp;lt;property name=&amp;quot;messageListener&amp;quot; ref=&amp;quot;myMessageListener&amp;quot; /&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;&amp;lt;property name=&amp;quot;transactionManager&amp;quot; ref=&amp;quot;transactionManager&amp;quot;/&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;lt;/bean&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp;&amp;lt;bean id=&amp;quot;jbossTransactionManager&amp;quot;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; class=&amp;quot;com.arjuna.ats.internal.jta.transaction.arjunacore.TransactionManagerImple&amp;quot;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp;&amp;lt;/bean&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp;&amp;lt;bean id=&amp;quot;jbossUserTransaction&amp;quot;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; class=&amp;quot;com.arjuna.ats.internal.jta.transaction.arjunacore.UserTransactionImple&amp;quot;/&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp;&amp;lt;bean id=&amp;quot;transactionManager&amp;quot;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;class=&amp;quot;org.springframework.transaction.jta.JtaTransactionManager&amp;quot;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;&amp;lt;property name=&amp;quot;transactionManager&amp;quot;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;ref bean=&amp;quot;jbossTransactionManager&amp;quot; /&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;&amp;lt;/property&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;&amp;lt;property name=&amp;quot;userTransaction&amp;quot;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;ref bean=&amp;quot;jbossUserTransaction&amp;quot; /&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;&amp;lt;/property&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp;&amp;lt;/bean&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Regards,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Miten.
&lt;br&gt;&amp;gt; --
&lt;br&gt;&amp;gt; View this message in context:
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/xa-jta-activemq-jboss-tp26515685p26515685.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://old.nabble.com/xa-jta-activemq-jboss-tp26515685p26515685.html&lt;/a&gt;&lt;br&gt;&amp;gt; Sent from the ActiveMQ - User mailing list archive at Nabble.com.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;&lt;a href=&quot;http://blog.garytully.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://blog.garytully.com&lt;/a&gt;&lt;br&gt;&lt;br&gt;Open Source Integration
&lt;br&gt;&lt;a href=&quot;http://fusesource.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://fusesource.com&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;&lt;/blockquote&gt;
</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/xa-jta-activemq-jboss-tp26515685p26527052.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26526693</id>
	<title>Message not sent to consumers after restart</title>
	<published>2009-11-26T03:35:18Z</published>
	<updated>2009-11-26T03:35:18Z</updated>
	<author>
		<name>Alexey Romanchuk</name>
	</author>
	<content type="html">Hello All!
&lt;br&gt;&lt;br&gt;I have strange situation with last activemq and broker restart.
&lt;br&gt;&lt;br&gt;1. Sent 1000 messages to queue. There is 10 threads of consumers.
&lt;br&gt;2. Stop listeners, stop broker. Some messages are in queue.
&lt;br&gt;3. Start broker, start listeners. 
&lt;br&gt;4. All messages except 10 are processed. 10 messages are still in queue. Via jmx I saw queuesize = 10, inflightcount = 0;
&lt;br&gt;&lt;br&gt;I debugged jdbcPersistenceAdapter and found that I still had records in database for these 10 messages. Query to get messages is based on id &amp;gt; lastMessageId and all messages in database had id &amp;lt; lastMessageId.
&lt;br&gt;&lt;br&gt;Could anyone explain how it can be. And how it can be fixed?
&lt;br&gt;&lt;br&gt;Thanks!</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Message-not-sent-to-consumers-after-restart-tp26526693p26526693.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26526831</id>
	<title>Re: Managing default persistence data?</title>
	<published>2009-11-26T01:47:00Z</published>
	<updated>2009-11-26T01:47:00Z</updated>
	<author>
		<name>Gary Tully</name>
	</author>
	<content type="html">If the messages are acked the storage will be reclaimed in time, once the
&lt;br&gt;data file that they occupy is no longer referenced. Verify that your
&lt;br&gt;consumers are indeed doing an ack or transaction commit. The size of the
&lt;br&gt;datafiles and the cleanup/checkpoint period have an effect on this behavior.
&lt;br&gt;Doing a purge will remove pending messages in a queue, messages that have
&lt;br&gt;not yet been consumed, I does not sound like that is what you want.
&lt;br&gt;Are you on 5.3.0?
&lt;br&gt;&lt;br&gt;2009/11/26 capriipriya &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26526831&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;priyanka.sriyapareddy@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I have a similar issue with ActiveMQ Broker.I use a jms queue in my project
&lt;br&gt;&amp;gt; that uses activemq broker.I see that the activemq-data directory becomes
&lt;br&gt;&amp;gt; huge when there are a log of requests going in into the queue.The requests
&lt;br&gt;&amp;gt; are read from the queue and sent to a destination.I want the entries to be
&lt;br&gt;&amp;gt; purged from the activemq broker when a message has been sent successfully
&lt;br&gt;&amp;gt; to
&lt;br&gt;&amp;gt; a recipient.I see that the entries can be purged from the jmx console and
&lt;br&gt;&amp;gt; can delete existing messages on start up.But i want to make sure that i do
&lt;br&gt;&amp;gt; not delete messages which have not been delivered yet to the
&lt;br&gt;&amp;gt; destination.How
&lt;br&gt;&amp;gt; can i do this?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; --
&lt;br&gt;&amp;gt; View this message in context:
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/Managing-default-persistence-data--tp22300064p26525180.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://old.nabble.com/Managing-default-persistence-data--tp22300064p26525180.html&lt;/a&gt;&lt;br&gt;&amp;gt; Sent from the ActiveMQ - User mailing list archive at Nabble.com.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;&lt;a href=&quot;http://blog.garytully.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://blog.garytully.com&lt;/a&gt;&lt;br&gt;&lt;br&gt;Open Source Integration
&lt;br&gt;&lt;a href=&quot;http://fusesource.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://fusesource.com&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Managing-default-persistence-data--tp22300064p26526831.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26526453</id>
	<title>How to purge or Delete messages from ActiveMq Topic</title>
	<published>2009-11-26T01:09:50Z</published>
	<updated>2009-11-26T01:09:50Z</updated>
	<author>
		<name>Asheesh Gupta</name>
	</author>
	<content type="html">&lt;br&gt;Hi All,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;I am trying to write an application in which i am sending my logs
&lt;br&gt;messages to activemq Topic. 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;I am able to read the message but i m not able to clear or delete the
&lt;br&gt;messages from topic.
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Could any body tell me how to purge or delete the message from
&lt;br&gt;activemq topic.
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; I am using onMessage to read the message from activemq topic...
&lt;br&gt;&lt;br&gt;&lt;br&gt;Thanks,
&lt;br&gt;Asheesh
&lt;br&gt;-- 
&lt;br&gt;View this message in context: &lt;a href=&quot;http://old.nabble.com/How-to-purge-or-Delete-messages-from-ActiveMq-Topic-tp26525303p26525303.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://old.nabble.com/How-to-purge-or-Delete-messages-from-ActiveMq-Topic-tp26525303p26525303.html&lt;/a&gt;&lt;br&gt;Sent from the ActiveMQ - User mailing list archive at Nabble.com.
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/How-to-purge-or-Delete-messages-from-ActiveMq-Topic-tp26526453p26526453.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26525301</id>
	<title>How to purge or Delete messages from ActiveMq Topic</title>
	<published>2009-11-26T01:07:23Z</published>
	<updated>2009-11-26T01:07:23Z</updated>
	<author>
		<name>Asheesh Gupta</name>
	</author>
	<content type="html">Hi All,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;I am trying to write an application in which i am sending my logs messages to activemq Topic. 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;I am able to read the message but i m not able to clear or delete the messages from topic.
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Could any body tell me how to purge or delete the message from activemq topic.
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; I am using onMessage to read the message from activemq topic...
&lt;br&gt;&lt;br&gt;&lt;br&gt;Thanks,
&lt;br&gt;Asheesh</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/How-to-purge-or-Delete-messages-from-ActiveMq-Topic-tp26525301p26525301.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26525300</id>
	<title>How to purge or Delete messages from ActiveMq Topic</title>
	<published>2009-11-26T01:06:50Z</published>
	<updated>2009-11-26T01:06:50Z</updated>
	<author>
		<name>Asheesh Gupta</name>
	</author>
	<content type="html">Hi All,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;I am trying to write an application in which i am sending my logs messages to activemq Topic. 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;I am able to read the message but i m not able to clear or delete the messages from topic.
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Could any body tell me how to purge or delete the message from activemq topic.
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; I am using onMessage to read the message from activemq topic...
&lt;br&gt;&lt;br&gt;&lt;br&gt;Thanks,
&lt;br&gt;Asheesh</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/How-to-purge-or-Delete-messages-from-ActiveMq-Topic-tp26525300p26525300.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26525298</id>
	<title>How to purge or Delete messages from ActiveMq Topic</title>
	<published>2009-11-26T01:04:23Z</published>
	<updated>2009-11-26T01:04:23Z</updated>
	<author>
		<name>Asheesh Gupta</name>
	</author>
	<content type="html">Hi All,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;I am trying to write an application in which i am sending my logs messages to activemq Topic. 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;I am able to read the message but i m not able to clear or delete the messages from topic.
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Could any body tell me how to purge or delete the message from activemq topic.
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; I am using onMessage to read the message from activemq topic...
&lt;br&gt;&lt;br&gt;&lt;br&gt;Thanks,
&lt;br&gt;Asheesh</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/How-to-purge-or-Delete-messages-from-ActiveMq-Topic-tp26525298p26525298.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26525295</id>
	<title>How to purge or Delete messages from ActiveMq Topic</title>
	<published>2009-11-26T01:01:23Z</published>
	<updated>2009-11-26T01:01:23Z</updated>
	<author>
		<name>Asheesh Gupta</name>
	</author>
	<content type="html">Hi All,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;I am trying to write an application in which i am sending my logs messages to activemq Topic. 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;I am able to read the message but i m not able to clear or delete the messages from topic.
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Could any body tell me how to purge or delete the message from activemq topic.
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; I am using onMessage to read the message from activemq topic...
&lt;br&gt;&lt;br&gt;&lt;br&gt;Thanks,
&lt;br&gt;Asheesh</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/How-to-purge-or-Delete-messages-from-ActiveMq-Topic-tp26525295p26525295.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26525180</id>
	<title>Re: Managing default persistence data?</title>
	<published>2009-11-25T23:14:44Z</published>
	<updated>2009-11-25T23:14:44Z</updated>
	<author>
		<name>capriipriya</name>
	</author>
	<content type="html">I have a similar issue with ActiveMQ Broker.I use a jms queue in my project that uses activemq broker.I see that the activemq-data directory becomes huge when there are a log of requests going in into the queue.The requests are read from the queue and sent to a destination.I want the entries to be purged from the activemq broker when a message has been sent successfully to a recipient.I see that the entries can be purged from the jmx console and can delete existing messages on start up.But i want to make sure that i do not delete messages which have not been delivered yet to the destination.How can i do this?
&lt;br&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Managing-default-persistence-data--tp22300064p26525180.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26524516</id>
	<title>XML over JMS test using jmater</title>
	<published>2009-11-25T21:24:47Z</published>
	<updated>2009-11-25T21:24:47Z</updated>
	<author>
		<name>monikasachdev3</name>
	</author>
	<content type="html">hi,
&lt;br&gt;&lt;br&gt;i want to confirm that can we send XML request over JMS using Jmeter for load testing? if yes which sampler we need to choose?</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/XML-over-JMS-test-using-jmater-tp26524516p26524516.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26519716</id>
	<title>Re: Best implementation for reply-request</title>
	<published>2009-11-25T12:24:09Z</published>
	<updated>2009-11-25T12:24:09Z</updated>
	<author>
		<name>rajdavies</name>
	</author>
	<content type="html">there could well be an improvement using nio. Also - it it possible to &amp;nbsp;
&lt;br&gt;move to version 5.3 - which is generally a lot more stable.
&lt;br&gt;Btw - you didn't mention if you were having performance problems ?
&lt;br&gt;&lt;br&gt;cheers,
&lt;br&gt;&lt;br&gt;Rob
&lt;br&gt;On 25 Nov 2009, at 19:55, Andres Rangel wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Bruce thanks for your reply.
&lt;br&gt;&amp;gt; The consumers create the temporary queue only once, and they are &amp;nbsp;
&lt;br&gt;&amp;gt; cached in a pool for subsequent usage.
&lt;br&gt;&amp;gt; We are using tcp connection. If we move to nio connection, will &amp;nbsp;
&lt;br&gt;&amp;gt; there be any noticeable improvement?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; -----Original Message-----
&lt;br&gt;&amp;gt; From: Bruce Snyder [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26519716&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;bruce.snyder@...&lt;/a&gt;]
&lt;br&gt;&amp;gt; Sent: Wednesday, November 25, 2009 1:45 PM
&lt;br&gt;&amp;gt; To: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26519716&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users@...&lt;/a&gt;
&lt;br&gt;&amp;gt; Subject: Re: Best implementation for reply-request
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; On Wed, Nov 25, 2009 at 10:34 AM, Andres Rangel
&lt;br&gt;&amp;gt; &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26519716&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;andresr@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt;&amp;gt; Hi,
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; We have currently running apache activemq 5.2 in a network of brokers
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; It has close to 1500 producers and 1200 consumers.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; This producers have &amp;nbsp;each one a temporary queue so that will be 1500
&lt;br&gt;&amp;gt;&amp;gt; temp queues in the system.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; The reply-request is implemented using temporary queues.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; I would like to know if there's a performance hit by using temporary
&lt;br&gt;&amp;gt;&amp;gt; queues instead of using another option.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; What do you guys think?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; There's more overhead involved with such constant creation/destruction
&lt;br&gt;&amp;gt; of temp queues, but that's it. As long as the broker has been tuned to
&lt;br&gt;&amp;gt; scale for handling such a large number of destinations, then you
&lt;br&gt;&amp;gt; should be OK:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://activemq.apache.org/scaling-queues.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://activemq.apache.org/scaling-queues.html&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Bruce
&lt;br&gt;&amp;gt; -- 
&lt;br&gt;&amp;gt; perl -e 'print unpack(&amp;quot;u30&amp;quot;,&amp;quot;D0G)U8V4\@4VYY9&amp;5R\&amp;quot;F)R=6-E+G-N&amp;gt;61E&amp;lt;D\! 
&lt;br&gt;&amp;gt; G;6%I;\&amp;quot;YC;VT*&amp;quot;
&lt;br&gt;&amp;gt; );'
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ActiveMQ in Action: &lt;a href=&quot;http://bit.ly/2je6cQ&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://bit.ly/2je6cQ&lt;/a&gt;&lt;br&gt;&amp;gt; Blog: &lt;a href=&quot;http://bruceblog.org/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://bruceblog.org/&lt;/a&gt;&lt;br&gt;&amp;gt; Twitter: &lt;a href=&quot;http://twitter.com/brucesnyder&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://twitter.com/brucesnyder&lt;/a&gt;&lt;/div&gt;&lt;br&gt;Rob Davies
&lt;br&gt;&lt;a href=&quot;http://twitter.com/rajdavies&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://twitter.com/rajdavies&lt;/a&gt;&lt;br&gt;I work here: &lt;a href=&quot;http://fusesource.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://fusesource.com&lt;/a&gt;&lt;br&gt;My Blog: &lt;a href=&quot;http://rajdavies.blogspot.com/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://rajdavies.blogspot.com/&lt;/a&gt;&lt;br&gt;I'm writing this: &lt;a href=&quot;http://www.manning.com/snyder/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.manning.com/snyder/&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Best-implementation-for-reply-request-tp26517070p26519716.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26519260</id>
	<title>RE: Best implementation for reply-request</title>
	<published>2009-11-25T11:55:03Z</published>
	<updated>2009-11-25T11:55:03Z</updated>
	<author>
		<name>Andres Rangel-2</name>
	</author>
	<content type="html">Bruce thanks for your reply.
&lt;br&gt;The consumers create the temporary queue only once, and they are cached in a pool for subsequent usage.
&lt;br&gt;We are using tcp connection. If we move to nio connection, will there be any noticeable improvement?
&lt;br&gt;&lt;br&gt;-----Original Message-----
&lt;br&gt;From: Bruce Snyder [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26519260&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;bruce.snyder@...&lt;/a&gt;] 
&lt;br&gt;Sent: Wednesday, November 25, 2009 1:45 PM
&lt;br&gt;To: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26519260&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users@...&lt;/a&gt;
&lt;br&gt;Subject: Re: Best implementation for reply-request
&lt;br&gt;&lt;br&gt;On Wed, Nov 25, 2009 at 10:34 AM, Andres Rangel
&lt;br&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26519260&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;andresr@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hi,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; We have currently running apache activemq 5.2 in a network of brokers
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; It has close to 1500 producers and 1200 consumers.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; This producers have  each one a temporary queue so that will be 1500
&lt;br&gt;&amp;gt; temp queues in the system.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; The reply-request is implemented using temporary queues.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I would like to know if there's a performance hit by using temporary
&lt;br&gt;&amp;gt; queues instead of using another option.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; What do you guys think?
&lt;/div&gt;&lt;br&gt;There's more overhead involved with such constant creation/destruction
&lt;br&gt;of temp queues, but that's it. As long as the broker has been tuned to
&lt;br&gt;scale for handling such a large number of destinations, then you
&lt;br&gt;should be OK:
&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://activemq.apache.org/scaling-queues.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://activemq.apache.org/scaling-queues.html&lt;/a&gt;&lt;br&gt;&lt;br&gt;Bruce
&lt;br&gt;-- 
&lt;br&gt;perl -e 'print unpack(&amp;quot;u30&amp;quot;,&amp;quot;D0G)U8V4\@4VYY9&amp;5R\&amp;quot;F)R=6-E+G-N&amp;gt;61E&amp;lt;D\!G;6%I;\&amp;quot;YC;VT*&amp;quot;
&lt;br&gt;);'
&lt;br&gt;&lt;br&gt;ActiveMQ in Action: &lt;a href=&quot;http://bit.ly/2je6cQ&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://bit.ly/2je6cQ&lt;/a&gt;&lt;br&gt;Blog: &lt;a href=&quot;http://bruceblog.org/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://bruceblog.org/&lt;/a&gt;&lt;br&gt;Twitter: &lt;a href=&quot;http://twitter.com/brucesnyder&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://twitter.com/brucesnyder&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Best-implementation-for-reply-request-tp26517070p26519260.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26518735</id>
	<title>Re: Creating message from byte[]</title>
	<published>2009-11-25T11:20:41Z</published>
	<updated>2009-11-25T11:20:41Z</updated>
	<author>
		<name>Timothy Bish</name>
	</author>
	<content type="html">On Wed, 2009-11-25 at 09:12 -0800, jhakim wrote:
&lt;br&gt;&amp;gt; Thanks Tim. We are using ICSharpCode
&lt;br&gt;&amp;gt; (&lt;a href=&quot;http://www.icsharpcode.net/OpenSource/SharpZipLib/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.icsharpcode.net/OpenSource/SharpZipLib/&lt;/a&gt;) for end-to-end
&lt;br&gt;&amp;gt; compression between C#/Java clients using TIBCO EMS. 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; In any case, does the native ActiveMQ compression provide end-to-end
&lt;br&gt;&amp;gt; compression between C#/Java clients? If not, how do we get C#/Java clients
&lt;br&gt;&amp;gt; to exchange compressed messages?
&lt;br&gt;&lt;br&gt;The Java client can send and receive messages with compressed message
&lt;br&gt;bodies. &amp;nbsp;The body is compressed using the Java Deflate classes which
&lt;br&gt;work with ZLib compression. &amp;nbsp;In order to send and receive compressed
&lt;br&gt;messages from Java to .NET clients the .NET client needs to be able to
&lt;br&gt;handle Zlib compression as well. &amp;nbsp;We didn't want to tie the user to a
&lt;br&gt;particular compression library with NMS.ActiveMQ so we provide an
&lt;br&gt;interface class that the user can implement to give us access to a
&lt;br&gt;Stream class that can compress or decompress the message body.
&lt;br&gt;&lt;br&gt;If you grab the latest code from SVN you will find an interface called
&lt;br&gt;ICompressionPolicy in the NMS.ActiveMQ project. &amp;nbsp;The default
&lt;br&gt;implementation uses the .NET gzip Stream classes so those aren't going
&lt;br&gt;to work if you want to send to a Java client, you'd need to provide a
&lt;br&gt;new policy class. &amp;nbsp;If you take a look at the MessageCompressionTest.cs
&lt;br&gt;file in the NMS.ActiveMQ test/csharp/Commands folder you will see how
&lt;br&gt;this is done. &amp;nbsp;
&lt;br&gt;&lt;br&gt;Regards
&lt;br&gt;Tim.
&lt;br&gt;&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Timothy Bish wrote:
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; On Tue, 2009-11-24 at 07:55 -0800, jhakim wrote:
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; I would like to create a large (40+ MB) MapMessage, get its byte[],
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; compress
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; the bytes, and send it across the wire as a BytesMessage. On the
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; receiving
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; side, I would like to read the byte[], uncompress, and create the
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; original
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; MapMessage from the byte[].
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; We have been using this strategy with great success using TIBCO EMS. We
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; have
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; a mix of clients - Java and C#.
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; As we look at ActiveMQ as an alternative to TIBCO EMS, I am wondering if
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; there is an API that would let us implement the same strategy.
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; Specifically,
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; is there an API to get the byte[] from a MapMessage and to create a
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; MapMessage from a byte[]?
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; Thanks in advance.
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; There's not a direct way of doing this via the NMS API but there are
&lt;br&gt;&amp;gt; &amp;gt; some tricks that can allow you to get the byte[] from a MapMessage if
&lt;br&gt;&amp;gt; &amp;gt; you really wanted to. &amp;nbsp;There is another option that might be better that
&lt;br&gt;&amp;gt; &amp;gt; will be available in the NMS.AcitveMQ 1.2.0 release. &amp;nbsp;You can now set a
&lt;br&gt;&amp;gt; &amp;gt; property on the Connection instance to enable compression and provide a
&lt;br&gt;&amp;gt; &amp;gt; CompressionPolicy instance that defines the compression method used to
&lt;br&gt;&amp;gt; &amp;gt; compress and decompress the body of a Message. &amp;nbsp;By default NMS.ActiveMQ
&lt;br&gt;&amp;gt; &amp;gt; just uses the GZipStream built into .NET but if you want to actually
&lt;br&gt;&amp;gt; &amp;gt; trade messages between Java and .NET then you'd need to use something
&lt;br&gt;&amp;gt; &amp;gt; like the DotNetZip library which provides a ZlibStream class that can
&lt;br&gt;&amp;gt; &amp;gt; compress and decompress in a format that's compatible with the Java
&lt;br&gt;&amp;gt; &amp;gt; client's own compression format.
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; Regards
&lt;br&gt;&amp;gt; &amp;gt; Tim.
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; -- 
&lt;br&gt;&amp;gt; &amp;gt; Tim Bish
&lt;br&gt;&amp;gt; &amp;gt; &lt;a href=&quot;http://fusesource.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://fusesource.com&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;gt; &lt;a href=&quot;http://timbish.blogspot.com/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://timbish.blogspot.com/&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;/div&gt;-- 
&lt;br&gt;Tim Bish
&lt;br&gt;&lt;a href=&quot;http://fusesource.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://fusesource.com&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://timbish.blogspot.com/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://timbish.blogspot.com/&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Creating-message-from-byte---tp26498420p26518735.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26518158</id>
	<title>Re: Best implementation for reply-request</title>
	<published>2009-11-25T10:44:34Z</published>
	<updated>2009-11-25T10:44:34Z</updated>
	<author>
		<name>bsnyder</name>
	</author>
	<content type="html">On Wed, Nov 25, 2009 at 10:34 AM, Andres Rangel
&lt;br&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26518158&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;andresr@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hi,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; We have currently running apache activemq 5.2 in a network of brokers
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; It has close to 1500 producers and 1200 consumers.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; This producers have  each one a temporary queue so that will be 1500
&lt;br&gt;&amp;gt; temp queues in the system.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; The reply-request is implemented using temporary queues.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I would like to know if there's a performance hit by using temporary
&lt;br&gt;&amp;gt; queues instead of using another option.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; What do you guys think?
&lt;/div&gt;&lt;br&gt;There's more overhead involved with such constant creation/destruction
&lt;br&gt;of temp queues, but that's it. As long as the broker has been tuned to
&lt;br&gt;scale for handling such a large number of destinations, then you
&lt;br&gt;should be OK:
&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://activemq.apache.org/scaling-queues.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://activemq.apache.org/scaling-queues.html&lt;/a&gt;&lt;br&gt;&lt;br&gt;Bruce
&lt;br&gt;-- 
&lt;br&gt;perl -e 'print unpack(&amp;quot;u30&amp;quot;,&amp;quot;D0G)U8V4\@4VYY9&amp;5R\&amp;quot;F)R=6-E+G-N&amp;gt;61E&amp;lt;D\!G;6%I;\&amp;quot;YC;VT*&amp;quot;
&lt;br&gt;);'
&lt;br&gt;&lt;br&gt;ActiveMQ in Action: &lt;a href=&quot;http://bit.ly/2je6cQ&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://bit.ly/2je6cQ&lt;/a&gt;&lt;br&gt;Blog: &lt;a href=&quot;http://bruceblog.org/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://bruceblog.org/&lt;/a&gt;&lt;br&gt;Twitter: &lt;a href=&quot;http://twitter.com/brucesnyder&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://twitter.com/brucesnyder&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Best-implementation-for-reply-request-tp26517070p26518158.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26517070</id>
	<title>Best implementation for reply-request</title>
	<published>2009-11-25T09:34:08Z</published>
	<updated>2009-11-25T09:34:08Z</updated>
	<author>
		<name>Andres Rangel-2</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;&lt;br&gt;We have currently running apache activemq 5.2 in a network of brokers
&lt;br&gt;&lt;br&gt;&amp;nbsp;
&lt;br&gt;&lt;br&gt;It has close to 1500 producers and 1200 consumers.
&lt;br&gt;&lt;br&gt;This producers have &amp;nbsp;each one a temporary queue so that will be 1500
&lt;br&gt;temp queues in the system.
&lt;br&gt;&lt;br&gt;&amp;nbsp;
&lt;br&gt;&lt;br&gt;The reply-request is implemented using temporary queues.
&lt;br&gt;&lt;br&gt;&amp;nbsp;
&lt;br&gt;&lt;br&gt;&amp;nbsp;
&lt;br&gt;&lt;br&gt;I would like to know if there's a performance hit by using temporary
&lt;br&gt;queues instead of using another option.
&lt;br&gt;&lt;br&gt;&amp;nbsp;
&lt;br&gt;&lt;br&gt;What do you guys think?
&lt;br&gt;&lt;br&gt;--
&lt;br&gt;&lt;br&gt;Andres Rangel
&lt;br&gt;&lt;br&gt;Sw Engineer
&lt;br&gt;&lt;br&gt;Moniker.com
&lt;br&gt;&lt;br&gt;&amp;nbsp;
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Best-implementation-for-reply-request-tp26517070p26517070.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26516734</id>
	<title>Re: xa jta activemq jboss</title>
	<published>2009-11-25T09:19:05Z</published>
	<updated>2009-11-25T09:19:05Z</updated>
	<author>
		<name>Gary Tully</name>
	</author>
	<content type="html">is the problem that the
&lt;br&gt;ActiveMQInitialContextFactory returns a regular connection factory rather
&lt;br&gt;than an XA capable one. You may want to extend the
&lt;br&gt;ActiveMQInitialContextFactory to override the createConnectionFactory()
&lt;br&gt;method to return an XA variant or see if you can explicitly provide the
&lt;br&gt;connection factory reference.
&lt;br&gt;Either through configuration of by default the createConnectionFactory
&lt;br&gt;should be capable of returning an XA connection factory. I think by defaut
&lt;br&gt;it would make sense. Can you raise a JIRA for this an if you find that this
&lt;br&gt;is the root cause of your problem.
&lt;br&gt;&lt;br&gt;&lt;br&gt;2009/11/25 miten &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26516734&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Miten.Mehta@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Hi,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I am able to get things to work without global transaction. &amp;nbsp;With JBOSS I
&lt;br&gt;&amp;gt; am
&lt;br&gt;&amp;gt; getting &amp;quot;javax.jms.JMSException: Session's XAResource has not been enlisted
&lt;br&gt;&amp;gt; in a distributed transaction.&amp;quot;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; using the spring config as below:
&lt;br&gt;&amp;gt; =========================
&lt;br&gt;&amp;gt; &amp;lt;bean id=&amp;quot;myMessageListener&amp;quot; class=&amp;quot;jmsexample.ExampleListener&amp;quot; /&amp;gt;
&lt;br&gt;&amp;gt; &amp;lt;bean id=&amp;quot;jndiTemplate&amp;quot; class=&amp;quot;org.springframework.jndi.JndiTemplate&amp;quot;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;&amp;lt;property name=&amp;quot;environment&amp;quot;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;props&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;prop key=&amp;quot;java.naming.factory.initial&amp;quot;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;org.apache.activemq.jndi.ActiveMQInitialContextFactory
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/prop&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;prop key=&amp;quot;queue.TEST.Q1&amp;quot;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;TEST.Q1
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/prop&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/props&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;&amp;lt;/property&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp;&amp;lt;/bean&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp;&amp;lt;bean id=&amp;quot;appJmsDestination&amp;quot;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;class=&amp;quot;org.springframework.jndi.JndiObjectFactoryBean&amp;quot;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;&amp;lt;property name=&amp;quot;jndiTemplate&amp;quot;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;ref bean=&amp;quot;jndiTemplate&amp;quot;/&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;&amp;lt;/property&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;&amp;lt;property name=&amp;quot;jndiName&amp;quot; value=&amp;quot;TEST.Q1&amp;quot;/&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp;&amp;lt;/bean&amp;gt;
&lt;br&gt;&amp;gt; &amp;lt;bean id=&amp;quot;connectionFactory&amp;quot;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;class=&amp;quot;org.apache.activemq.ActiveMQXAConnectionFactory&amp;quot;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;property name=&amp;quot;brokerURL&amp;quot;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;value&amp;gt;tcp://localhost:61616&amp;lt;/value&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/property&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;&amp;lt;/bean&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;lt;bean id=&amp;quot;jmsContainer&amp;quot;
&lt;br&gt;&amp;gt; class=&amp;quot;org.springframework.jms.listener.DefaultMessageListenerContainer&amp;quot;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;&amp;lt;property name=&amp;quot;connectionFactory&amp;quot; ref=&amp;quot;connectionFactory&amp;quot;/&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;&amp;lt;property name=&amp;quot;destination&amp;quot; ref=&amp;quot;appJmsDestination&amp;quot;/&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;&amp;lt;property name=&amp;quot;messageListener&amp;quot; ref=&amp;quot;myMessageListener&amp;quot; /&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;&amp;lt;property name=&amp;quot;transactionManager&amp;quot; ref=&amp;quot;transactionManager&amp;quot;/&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;lt;/bean&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp;&amp;lt;bean id=&amp;quot;jbossTransactionManager&amp;quot;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; class=&amp;quot;com.arjuna.ats.internal.jta.transaction.arjunacore.TransactionManagerImple&amp;quot;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp;&amp;lt;/bean&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp;&amp;lt;bean id=&amp;quot;jbossUserTransaction&amp;quot;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; class=&amp;quot;com.arjuna.ats.internal.jta.transaction.arjunacore.UserTransactionImple&amp;quot;/&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp;&amp;lt;bean id=&amp;quot;transactionManager&amp;quot;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;class=&amp;quot;org.springframework.transaction.jta.JtaTransactionManager&amp;quot;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;&amp;lt;property name=&amp;quot;transactionManager&amp;quot;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;ref bean=&amp;quot;jbossTransactionManager&amp;quot; /&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;&amp;lt;/property&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;&amp;lt;property name=&amp;quot;userTransaction&amp;quot;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;ref bean=&amp;quot;jbossUserTransaction&amp;quot; /&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;&amp;lt;/property&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp;&amp;lt;/bean&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Regards,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Miten.
&lt;br&gt;&amp;gt; --
&lt;br&gt;&amp;gt; View this message in context:
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/xa-jta-activemq-jboss-tp26515685p26515685.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://old.nabble.com/xa-jta-activemq-jboss-tp26515685p26515685.html&lt;/a&gt;&lt;br&gt;&amp;gt; Sent from the ActiveMQ - User mailing list archive at Nabble.com.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;&lt;a href=&quot;http://blog.garytully.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://blog.garytully.com&lt;/a&gt;&lt;br&gt;&lt;br&gt;Open Source Integration
&lt;br&gt;&lt;a href=&quot;http://fusesource.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://fusesource.com&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/xa-jta-activemq-jboss-tp26515685p26516734.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26516611</id>
	<title>Re: Creating message from byte[]</title>
	<published>2009-11-25T09:12:58Z</published>
	<updated>2009-11-25T09:12:58Z</updated>
	<author>
		<name>jhakim</name>
	</author>
	<content type="html">Thanks Tim. We are using ICSharpCode (&lt;a href=&quot;http://www.icsharpcode.net/OpenSource/SharpZipLib/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.icsharpcode.net/OpenSource/SharpZipLib/&lt;/a&gt;) for end-to-end compression between C#/Java clients using TIBCO EMS. 
&lt;br&gt;&lt;br&gt;In any case, does the native ActiveMQ compression provide end-to-end compression between C#/Java clients? If not, how do we get C#/Java clients to exchange compressed messages?
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&lt;blockquote class=&quot;quote light-black dark-border-color&quot;&gt;&lt;div class=&quot;quote light-border-color&quot;&gt;
&lt;div class=&quot;quote-author&quot; style=&quot;font-weight: bold;&quot;&gt;Timothy Bish wrote:&lt;/div&gt;
&lt;div class=&quot;quote-message shrinkable-quote&quot;&gt;On Tue, 2009-11-24 at 07:55 -0800, jhakim wrote:
&lt;br&gt;&amp;gt; I would like to create a large (40+ MB) MapMessage, get its byte[], compress
&lt;br&gt;&amp;gt; the bytes, and send it across the wire as a BytesMessage. On the receiving
&lt;br&gt;&amp;gt; side, I would like to read the byte[], uncompress, and create the original
&lt;br&gt;&amp;gt; MapMessage from the byte[].
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; We have been using this strategy with great success using TIBCO EMS. We have
&lt;br&gt;&amp;gt; a mix of clients - Java and C#.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; As we look at ActiveMQ as an alternative to TIBCO EMS, I am wondering if
&lt;br&gt;&amp;gt; there is an API that would let us implement the same strategy. Specifically,
&lt;br&gt;&amp;gt; is there an API to get the byte[] from a MapMessage and to create a
&lt;br&gt;&amp;gt; MapMessage from a byte[]?
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Thanks in advance.
&lt;br&gt;&lt;br&gt;There's not a direct way of doing this via the NMS API but there are
&lt;br&gt;some tricks that can allow you to get the byte[] from a MapMessage if
&lt;br&gt;you really wanted to. &amp;nbsp;There is another option that might be better that
&lt;br&gt;will be available in the NMS.AcitveMQ 1.2.0 release. &amp;nbsp;You can now set a
&lt;br&gt;property on the Connection instance to enable compression and provide a
&lt;br&gt;CompressionPolicy instance that defines the compression method used to
&lt;br&gt;compress and decompress the body of a Message. &amp;nbsp;By default NMS.ActiveMQ
&lt;br&gt;just uses the GZipStream built into .NET but if you want to actually
&lt;br&gt;trade messages between Java and .NET then you'd need to use something
&lt;br&gt;like the DotNetZip library which provides a ZlibStream class that can
&lt;br&gt;compress and decompress in a format that's compatible with the Java
&lt;br&gt;client's own compression format.
&lt;br&gt;&lt;br&gt;Regards
&lt;br&gt;Tim.
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Tim Bish
&lt;br&gt;&lt;a href=&quot;http://fusesource.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://fusesource.com&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://timbish.blogspot.com/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://timbish.blogspot.com/&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;/div&gt;
&lt;/div&gt;&lt;/blockquote&gt;
</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Creating-message-from-byte---tp26498420p26516611.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26515685</id>
	<title>xa jta activemq jboss</title>
	<published>2009-11-25T08:21:46Z</published>
	<updated>2009-11-25T08:21:46Z</updated>
	<author>
		<name>miten</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;&lt;br&gt;I am able to get things to work without global transaction. &amp;nbsp;With JBOSS I am getting &amp;quot;javax.jms.JMSException: Session's XAResource has not been enlisted in a distributed transaction.&amp;quot;
&lt;br&gt;&lt;br&gt;using the spring config as below:
&lt;br&gt;=========================
&lt;br&gt;&amp;lt;bean id=&amp;quot;myMessageListener&amp;quot; class=&amp;quot;jmsexample.ExampleListener&amp;quot; /&amp;gt;
&lt;br&gt;&amp;lt;bean id=&amp;quot;jndiTemplate&amp;quot; class=&amp;quot;org.springframework.jndi.JndiTemplate&amp;quot;&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;lt;property name=&amp;quot;environment&amp;quot;&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;props&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;prop key=&amp;quot;java.naming.factory.initial&amp;quot;&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; org.apache.activemq.jndi.ActiveMQInitialContextFactory
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/prop&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;prop key=&amp;quot;queue.TEST.Q1&amp;quot;&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; TEST.Q1
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/prop&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/props&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;lt;/property&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;lt;/bean&amp;gt;
&lt;br&gt;&amp;nbsp;&amp;lt;bean id=&amp;quot;appJmsDestination&amp;quot;
&lt;br&gt;&amp;nbsp; &amp;nbsp; class=&amp;quot;org.springframework.jndi.JndiObjectFactoryBean&amp;quot;&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;lt;property name=&amp;quot;jndiTemplate&amp;quot;&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;ref bean=&amp;quot;jndiTemplate&amp;quot;/&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;lt;/property&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;lt;property name=&amp;quot;jndiName&amp;quot; value=&amp;quot;TEST.Q1&amp;quot;/&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;lt;/bean&amp;gt;
&lt;br&gt;&amp;lt;bean id=&amp;quot;connectionFactory&amp;quot;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; class=&amp;quot;org.apache.activemq.ActiveMQXAConnectionFactory&amp;quot;&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;property name=&amp;quot;brokerURL&amp;quot;&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;value&amp;gt;tcp://localhost:61616&amp;lt;/value&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/property&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;lt;/bean&amp;gt;
&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;lt;bean id=&amp;quot;jmsContainer&amp;quot; class=&amp;quot;org.springframework.jms.listener.DefaultMessageListenerContainer&amp;quot;&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;lt;property name=&amp;quot;connectionFactory&amp;quot; ref=&amp;quot;connectionFactory&amp;quot;/&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;lt;property name=&amp;quot;destination&amp;quot; ref=&amp;quot;appJmsDestination&amp;quot;/&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;lt;property name=&amp;quot;messageListener&amp;quot; ref=&amp;quot;myMessageListener&amp;quot; /&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;lt;property name=&amp;quot;transactionManager&amp;quot; ref=&amp;quot;transactionManager&amp;quot;/&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;lt;/bean&amp;gt;
&lt;br&gt;&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp;&amp;lt;bean id=&amp;quot;jbossTransactionManager&amp;quot;
&lt;br&gt;&amp;nbsp; &amp;nbsp; class=&amp;quot;com.arjuna.ats.internal.jta.transaction.arjunacore.TransactionManagerImple&amp;quot;&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;lt;/bean&amp;gt;
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;lt;bean id=&amp;quot;jbossUserTransaction&amp;quot;
&lt;br&gt;&amp;nbsp; &amp;nbsp; class=&amp;quot;com.arjuna.ats.internal.jta.transaction.arjunacore.UserTransactionImple&amp;quot;/&amp;gt;
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;lt;bean id=&amp;quot;transactionManager&amp;quot;
&lt;br&gt;&amp;nbsp; &amp;nbsp; class=&amp;quot;org.springframework.transaction.jta.JtaTransactionManager&amp;quot;&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;lt;property name=&amp;quot;transactionManager&amp;quot;&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;ref bean=&amp;quot;jbossTransactionManager&amp;quot; /&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;lt;/property&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;lt;property name=&amp;quot;userTransaction&amp;quot;&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;ref bean=&amp;quot;jbossUserTransaction&amp;quot; /&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;lt;/property&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;lt;/bean&amp;gt;
&lt;br&gt;&lt;br&gt;&lt;br&gt;Regards,
&lt;br&gt;&lt;br&gt;Miten.</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/xa-jta-activemq-jboss-tp26515685p26515685.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26515357</id>
	<title>Re: Active Consumers on TCP x HTTP</title>
	<published>2009-11-25T08:02:43Z</published>
	<updated>2009-11-25T08:02:43Z</updated>
	<author>
		<name>Uday Subbarayan-3</name>
	</author>
	<content type="html">I am also in a similar situation...I need a HTTP producer but can't get it work yet!
&lt;br&gt;&lt;br&gt;Uday.
&lt;br&gt;&lt;br&gt;-------------------------
&lt;br&gt;&lt;br&gt;I do not blog but e-write:
&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://uds-web.blogspot.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://uds-web.blogspot.com&lt;/a&gt;&lt;br&gt;&lt;br&gt;--- On Wed, 11/25/09, jfaerman &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26515357&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jfaerman@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&lt;br&gt;From: jfaerman &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26515357&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jfaerman@...&lt;/a&gt;&amp;gt;
&lt;br&gt;Subject: Active Consumers on TCP x HTTP
&lt;br&gt;To: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26515357&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users@...&lt;/a&gt;
&lt;br&gt;Date: Wednesday, November 25, 2009, 2:15 PM
&lt;br&gt;&lt;br&gt;&lt;br&gt;Hello,
&lt;br&gt;&lt;br&gt;I need a queue with HTTP consumers.
&lt;br&gt;My problem is that when the JVM dies, the consumer remains active (i can see
&lt;br&gt;them active in the web console), thus preventing the new consumer from
&lt;br&gt;receiving messages.
&lt;br&gt;If i use TCP instead of HTTP, the dead consumers are inactivated correctly
&lt;br&gt;and everything works.
&lt;br&gt;&lt;br&gt;Anyone been thru something like this or can suggest me a workaround?
&lt;br&gt;&lt;br&gt;Tnx,
&lt;br&gt;Julio
&lt;br&gt;-- 
&lt;br&gt;View this message in context: &lt;a href=&quot;http://old.nabble.com/Active-Consumers-on-TCP-x-HTTP-tp26513355p26513355.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://old.nabble.com/Active-Consumers-on-TCP-x-HTTP-tp26513355p26513355.html&lt;/a&gt;&lt;br&gt;Sent from the ActiveMQ - User mailing list archive at Nabble.com.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; </content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Active-Consumers-on-TCP-x-HTTP-tp26513355p26515357.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26515320</id>
	<title>Re: URI for Queue</title>
	<published>2009-11-25T08:01:16Z</published>
	<updated>2009-11-25T08:01:16Z</updated>
	<author>
		<name>Uday Subbarayan-3</name>
	</author>
	<content type="html">Hi Dejan,
&lt;br&gt;    This is also NOT working.(getting 404 resource not found) I am NOT using a servlet as a client. It's a POJO as a client to MQ.
&lt;br&gt;&lt;br&gt;I am still trying to find the URI for the Queue!
&lt;br&gt;&lt;br&gt;Thanks,
&lt;br&gt;Uday.
&lt;br&gt;&lt;br&gt;-------------------------
&lt;br&gt;&lt;br&gt;I do not blog but e-write:
&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://uds-web.blogspot.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://uds-web.blogspot.com&lt;/a&gt;&lt;br&gt;&lt;br&gt;--- On Wed, 11/25/09, Dejan Bosanac &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26515320&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dejan@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&lt;br&gt;From: Dejan Bosanac &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26515320&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dejan@...&lt;/a&gt;&amp;gt;
&lt;br&gt;Subject: Re: URI for Queue
&lt;br&gt;To: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26515320&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users@...&lt;/a&gt;
&lt;br&gt;Date: Wednesday, November 25, 2009, 8:12 AM
&lt;br&gt;&lt;br&gt;Hi Uday,
&lt;br&gt;&lt;br&gt;it all depends how you configure your servlet. In the demo app, distributed
&lt;br&gt;with the ActiveMQ, it is configured to listen to &amp;quot;messages/*&amp;quot; path, so the
&lt;br&gt;full path to your queue would be
&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://host:port/demo/messages/myqueue&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://host:port/demo/messages/myqueue&lt;/a&gt;&lt;br&gt;&lt;br&gt;Regarding security, you can secure it like any other web app. I suggest you
&lt;br&gt;take a look at webapp/demo/WEB-INF/web.xml and appropriate articles on the
&lt;br&gt;web on how to secure Java web apps.
&lt;br&gt;&lt;br&gt;Cheers
&lt;br&gt;--
&lt;br&gt;Dejan Bosanac - &lt;a href=&quot;http://twitter.com/dejanb&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://twitter.com/dejanb&lt;/a&gt;&lt;br&gt;&lt;br&gt;Open Source Integration - &lt;a href=&quot;http://fusesource.com/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://fusesource.com/&lt;/a&gt;&lt;br&gt;ActiveMQ in Action - &lt;a href=&quot;http://www.manning.com/snyder/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.manning.com/snyder/&lt;/a&gt;&lt;br&gt;Blog - &lt;a href=&quot;http://www.nighttale.net&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.nighttale.net&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;On Tue, Nov 24, 2009 at 4:09 PM, Uday Subbarayan
&lt;br&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26515320&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;uday.subbarayan@...&lt;/a&gt;&amp;gt;wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Thanks for the pointers. I checked them. I got the answer for my [1]. So,
&lt;br&gt;&amp;gt; if my queue name is 'myqueue', then URL is going to be &lt;a href=&quot;http://host:port/queue/myqueue&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://host:port/queue/myqueue&lt;/a&gt;,
&lt;br&gt;&amp;gt; right?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I am still looking for credentials stuff...I couldn't able to find it.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I don't want to use JMS. The reason is that I like to put a std. load
&lt;br&gt;&amp;gt; balancer between client &amp; ActiveMQ. I like HTTP.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Thanks,
&lt;br&gt;&amp;gt; Uday.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; -------------------------
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I do not blog but e-write:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://uds-web.blogspot.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://uds-web.blogspot.com&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; --- On Tue, 11/24/09, Dejan Bosanac &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26515320&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dejan@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; From: Dejan Bosanac &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26515320&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dejan@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt; Subject: Re: URI for Queue
&lt;br&gt;&amp;gt; To: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26515320&amp;i=6&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users@...&lt;/a&gt;
&lt;br&gt;&amp;gt; Date: Tuesday, November 24, 2009, 8:35 AM
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Hi,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; take a look at this article for more info:
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://activemq.apache.org/rest.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://activemq.apache.org/rest.html&lt;/a&gt;&lt;br&gt;&amp;gt; and be sure to check web demos &lt;a href=&quot;http://activemq.apache.org/web-samples.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://activemq.apache.org/web-samples.html&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; BTW. If you're using Java you'll have much better messaging experience
&lt;br&gt;&amp;gt; using
&lt;br&gt;&amp;gt; JMS API.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Cheers
&lt;br&gt;&amp;gt; --
&lt;br&gt;&amp;gt; Dejan Bosanac - &lt;a href=&quot;http://twitter.com/dejanb&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://twitter.com/dejanb&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Open Source Integration - &lt;a href=&quot;http://fusesource.com/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://fusesource.com/&lt;/a&gt;&lt;br&gt;&amp;gt; ActiveMQ in Action - &lt;a href=&quot;http://www.manning.com/snyder/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.manning.com/snyder/&lt;/a&gt;&lt;br&gt;&amp;gt; Blog - &lt;a href=&quot;http://www.nighttale.net&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.nighttale.net&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; On Tue, Nov 24, 2009 at 5:56 AM, Uday Subbarayan
&lt;br&gt;&amp;gt; &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26515320&amp;i=7&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;uday.subbarayan@...&lt;/a&gt;&amp;gt;wrote:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; Hi,
&lt;br&gt;&amp;gt; &amp;gt;    I have installed ActiveMQ 5.3 and created a test queue called
&lt;br&gt;&amp;gt; 'mytest'.
&lt;br&gt;&amp;gt; &amp;gt; I want to HTTP POST to this queue from my java application(J2SE) directly
&lt;br&gt;&amp;gt; &amp;gt; using java.net.httpurlconnection.
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; My questions are,
&lt;br&gt;&amp;gt; &amp;gt; [1] What is the URL for this queue?
&lt;br&gt;&amp;gt; &amp;gt; [2] What is the credentials(if any) to POST to this queue?
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; Thanks,
&lt;br&gt;&amp;gt; &amp;gt; Uday.
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; -------------------------
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; I do not blog but e-write:
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &lt;a href=&quot;http://uds-web.blogspot.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://uds-web.blogspot.com&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/URI-for-Queue-tp26490495p26515320.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26515220</id>
	<title>Re: How do I do this: &quot;configure AMQ to listen on the outbound  network&quot;</title>
	<published>2009-11-25T07:55:36Z</published>
	<updated>2009-11-25T07:55:36Z</updated>
	<author>
		<name>Gary Tully</name>
	</author>
	<content type="html">one thought, are you using the wildcard address in the transport connector
&lt;br&gt;url: &amp;quot;tcp://0.0.0.0:61616&amp;quot; to listen on all interfaces?
&lt;br&gt;&lt;br&gt;2009/11/25 gliesian &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26515220&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;robert@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; How do I do this: &amp;quot;configure AMQ to listen on the outbound network&amp;quot;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Reference:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://mail-archives.apache.org/mod_mbox/activemq-users/200906.mbox/%3C23839150.post@talk.nabble.com%3E&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mail-archives.apache.org/mod_mbox/activemq-users/200906.mbox/%3C23839150.post@...%3E&lt;/a&gt;&lt;br&gt;&amp;gt; --
&lt;br&gt;&amp;gt; View this message in context:
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/How-do-I-do-this%3A-%22configure-AMQ-to-listen-on-the-outbound-network%22-tp26514809p26514809.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://old.nabble.com/How-do-I-do-this%3A-%22configure-AMQ-to-listen-on-the-outbound-network%22-tp26514809p26514809.html&lt;/a&gt;&lt;br&gt;&amp;gt; Sent from the ActiveMQ - User mailing list archive at Nabble.com.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;&lt;a href=&quot;http://blog.garytully.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://blog.garytully.com&lt;/a&gt;&lt;br&gt;&lt;br&gt;Open Source Integration
&lt;br&gt;&lt;a href=&quot;http://fusesource.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://fusesource.com&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/How-do-I-do-this%3A-%22configure-AMQ-to-listen-on-the-outbound-network%22-tp26514809p26515220.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26515178</id>
	<title>Re: How to &quot;activate&quot; an interceptor</title>
	<published>2009-11-25T07:53:30Z</published>
	<updated>2009-11-25T07:53:30Z</updated>
	<author>
		<name>bsnyder</name>
	</author>
	<content type="html">On Wed, Nov 25, 2009 at 8:19 AM, moreno9000 &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26515178&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;moreno.mauri@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Now everything works!
&lt;br&gt;&amp;gt; Thank you Gary (and bsnyder too) !
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; This was the final configuration.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Client Side
&lt;br&gt;&amp;gt; ----------
&lt;br&gt;&amp;gt; In java code I use ActiveMQConnectionFactory
&lt;br&gt;&amp;gt; (previously, I used &amp;quot;generic&amp;quot; JMS ConnectionFactory) in order
&lt;br&gt;&amp;gt; to call connectionFactory.setAlwaysSyncSend(true) method.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; In jndi.properties file I specify in this way AMQ URL:
&lt;br&gt;&amp;gt; java.naming.provider.url = tcp://&amp;lt;my
&lt;br&gt;&amp;gt; host&amp;gt;:61616?wireFormat.maxInactivityDuration=0&amp;jms.useAsyncSend=false
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ServerSide
&lt;br&gt;&amp;gt; ----------
&lt;br&gt;&amp;gt; In AMQ 5.3 xml conf file:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;lt;destinationPolicy&amp;gt;
&lt;br&gt;&amp;gt;   &amp;lt;policyMap&amp;gt;
&lt;br&gt;&amp;gt;      &amp;lt;policyEntries&amp;gt;
&lt;br&gt;&amp;gt;         &amp;lt;policyEntry queue=&amp;quot;NAM_QUEUE_01&amp;quot; producerFlowControl=&amp;quot;true&amp;quot;
&lt;br&gt;&amp;gt; advisoryWhenFull=&amp;quot;true&amp;quot;
&lt;br&gt;&amp;gt;           memoryLimit=&amp;quot;20 kb&amp;quot;&amp;gt;
&lt;br&gt;&amp;gt;             &amp;lt;pendingQueuePolicy&amp;gt;
&lt;br&gt;&amp;gt;                &amp;lt;vmQueueCursor/&amp;gt;
&lt;br&gt;&amp;gt;             &amp;lt;/pendingQueuePolicy&amp;gt;
&lt;br&gt;&amp;gt;         &amp;lt;/policyEntry&amp;gt;
&lt;br&gt;&amp;gt;      &amp;lt;/policyEntries&amp;gt;
&lt;br&gt;&amp;gt;   &amp;lt;/policyMap&amp;gt;
&lt;br&gt;&amp;gt; &amp;lt;/destinationPolicy&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;lt;systemUsage&amp;gt;
&lt;br&gt;&amp;gt;   &amp;lt;systemUsage sendFailIfNoSpace=&amp;quot;true&amp;quot;&amp;gt;
&lt;br&gt;&amp;gt;      &amp;lt;memoryUsage&amp;gt;
&lt;br&gt;&amp;gt;         &amp;lt;memoryUsage limit=&amp;quot;200 mb&amp;quot;/&amp;gt;
&lt;br&gt;&amp;gt;      &amp;lt;/memoryUsage&amp;gt;
&lt;br&gt;&amp;gt;      &amp;lt;storeUsage&amp;gt;
&lt;br&gt;&amp;gt;         &amp;lt;storeUsage limit=&amp;quot;1 gb&amp;quot; name=&amp;quot;foo&amp;quot;/&amp;gt;
&lt;br&gt;&amp;gt;      &amp;lt;/storeUsage&amp;gt;
&lt;br&gt;&amp;gt;      &amp;lt;tempUsage&amp;gt;
&lt;br&gt;&amp;gt;         &amp;lt;tempUsage limit=&amp;quot;100 mb&amp;quot;/&amp;gt;
&lt;br&gt;&amp;gt;      &amp;lt;/tempUsage&amp;gt;
&lt;br&gt;&amp;gt; &amp;lt;/systemUsage&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; With setAlwaysSyncSend() method, client receives
&lt;br&gt;&amp;gt; ResourceAllocationException.
&lt;br&gt;&amp;gt; With &amp;lt;vmQueueCursor/&amp;gt; policy, exception is raised in a deterministic way
&lt;br&gt;&amp;gt; (in my tests always after 20 messages).
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; There is no reason to test 5.4 SNAPSHOT (5.3. is already good).
&lt;br&gt;&amp;gt; I try to redo this test using 5.1 release.
&lt;/div&gt;&lt;br&gt;This is why I asked about your use case. I wanted to distinguish the
&lt;br&gt;use case from the code you were trying to write as the two are
&lt;br&gt;distinctly separate items. I'm glad that Gary's suggestion worked out.
&lt;br&gt;&lt;br&gt;Bruce
&lt;br&gt;-- 
&lt;br&gt;perl -e 'print unpack(&amp;quot;u30&amp;quot;,&amp;quot;D0G)U8V4\@4VYY9&amp;5R\&amp;quot;F)R=6-E+G-N&amp;gt;61E&amp;lt;D\!G;6%I;\&amp;quot;YC;VT*&amp;quot;
&lt;br&gt;);'
&lt;br&gt;&lt;br&gt;ActiveMQ in Action: &lt;a href=&quot;http://bit.ly/2je6cQ&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://bit.ly/2je6cQ&lt;/a&gt;&lt;br&gt;Blog: &lt;a href=&quot;http://bruceblog.org/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://bruceblog.org/&lt;/a&gt;&lt;br&gt;Twitter: &lt;a href=&quot;http://twitter.com/brucesnyder&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://twitter.com/brucesnyder&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/How-to-%22activate%22-an-interceptor-tp26478807p26515178.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26515173</id>
	<title>Re: ActiveMQ 5.3.1-SNAPSHOT daily builds available</title>
	<published>2009-11-25T07:53:22Z</published>
	<updated>2009-11-25T07:53:22Z</updated>
	<author>
		<name>Gary Tully</name>
	</author>
	<content type="html">btw: what sort of 'failure' do u experience trying to build from source?
&lt;br&gt;would be good to get to the bottom of that and reflect your experience in
&lt;br&gt;the wiki.
&lt;br&gt;&lt;br&gt;2009/11/25 Fredrik Jonson &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26515173&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;fredrik@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hi all,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; For those interested in trying out the coming stable bugfix release
&lt;br&gt;&amp;gt; there is a daily build available here:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &lt;a href=&quot;https://repository.apache.org/content/repositories/snapshots/org/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://repository.apache.org/content/repositories/snapshots/org/&lt;/a&gt;&lt;br&gt;&amp;gt; apache/activemq/apache-activemq/5.3.1-SNAPSHOT/&amp;lt;&lt;a href=&quot;https://repository.apache.org/content/repositories/snapshots/org/%0Aapache/activemq/apache-activemq/5.3.1-SNAPSHOT/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://repository.apache.org/content/repositories/snapshots/org/%0Aapache/activemq/apache-activemq/5.3.1-SNAPSHOT/&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Maybe you all already knew that, but I've missed it completely and
&lt;br&gt;&amp;gt; instead wasted my time trying (and failing) to build from source.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; --
&lt;br&gt;&amp;gt; Fredrik Jonson
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;&lt;a href=&quot;http://blog.garytully.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://blog.garytully.com&lt;/a&gt;&lt;br&gt;&lt;br&gt;Open Source Integration
&lt;br&gt;&lt;a href=&quot;http://fusesource.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://fusesource.com&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/ActiveMQ-5.3.1-SNAPSHOT-daily-builds-available-tp26514099p26515173.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26514871</id>
	<title>JMSException - Reason: java.net.ConnectException: Connection refused: connect</title>
	<published>2009-11-25T07:37:32Z</published>
	<updated>2009-11-25T07:37:32Z</updated>
	<author>
		<name>gliesian</name>
	</author>
	<content type="html">Hi... I could use a little help.
&lt;br&gt;&lt;br&gt;My servicemix client works locally but not remotely.
&lt;br&gt;&lt;br&gt;Here's the code:
&lt;br&gt;ActiveMQConnectionFactory connectionFactory = new ActiveMQConnectionFactory(user, password, url);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Connection connection = connectionFactory.createConnection();
&lt;br&gt;&lt;br&gt;INFO &amp;nbsp;XXXX &amp;nbsp; - Caught: javax.jms.JMSException: Could not connect to broker URL: tcp://XX.XX.XX.XX:61616. Reason: java.net.ConnectException: Connection refused: connect
&lt;br&gt;&lt;br&gt;BTW, on the linux server machine, I did the following to open all ports and there is no router in the mix:
&lt;br&gt;iptables -P OUTPUT ACCEPT
&lt;br&gt;iptables -P INPUT ACCEPT
&lt;br&gt;iptables -P FORWARD ACCEPT
&lt;br&gt;&lt;br&gt;Any help would be appreciated!
&lt;br&gt;&lt;br&gt;Thanks!
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/JMSException---Reason%3A-java.net.ConnectException%3A-Connection-refused%3A-connect-tp26514871p26514871.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26514809</id>
	<title>How do I do this: &quot;configure AMQ to listen on the outbound network&quot;</title>
	<published>2009-11-25T07:32:55Z</published>
	<updated>2009-11-25T07:32:55Z</updated>
	<author>
		<name>gliesian</name>
	</author>
	<content type="html">How do I do this: &amp;quot;configure AMQ to listen on the outbound network&amp;quot;
&lt;br&gt;&lt;br&gt;Reference: &lt;a href=&quot;http://mail-archives.apache.org/mod_mbox/activemq-users/200906.mbox/%3C23839150.post@talk.nabble.com%3E&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mail-archives.apache.org/mod_mbox/activemq-users/200906.mbox/%3C23839150.post@talk.nabble.com%3E&lt;/a&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/How-do-I-do-this%3A-%22configure-AMQ-to-listen-on-the-outbound-network%22-tp26514809p26514809.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26514557</id>
	<title>Re: How to &quot;activate&quot; an interceptor</title>
	<published>2009-11-25T07:19:47Z</published>
	<updated>2009-11-25T07:19:47Z</updated>
	<author>
		<name>moreno9000</name>
	</author>
	<content type="html">Now everything works!
&lt;br&gt;Thank you Gary (and bsnyder too) !
&lt;br&gt;&lt;br&gt;This was the final configuration.
&lt;br&gt;&lt;br&gt;Client Side
&lt;br&gt;---------- 
&lt;br&gt;In java code I use ActiveMQConnectionFactory
&lt;br&gt;(previously, I used &amp;quot;generic&amp;quot; JMS ConnectionFactory) in order
&lt;br&gt;to call &lt;b&gt;connectionFactory.setAlwaysSyncSend(true)&lt;/b&gt;&amp;nbsp;method.
&lt;br&gt;&lt;br&gt;In jndi.properties file I specify in this way AMQ URL:
&lt;br&gt;java.naming.provider.url = tcp://&amp;lt;my host&amp;gt;:61616?wireFormat.maxInactivityDuration=0&amp;&lt;b&gt;jms.useAsyncSend=false&lt;/b&gt;&lt;br&gt;&lt;br&gt;ServerSide
&lt;br&gt;----------
&lt;br&gt;In AMQ 5.3 xml conf file:
&lt;br&gt;&lt;br&gt;&amp;lt;destinationPolicy&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp;&amp;lt;policyMap&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;policyEntries&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;policyEntry queue=&amp;quot;NAM_QUEUE_01&amp;quot; &lt;b&gt;producerFlowControl=&amp;quot;true&amp;quot; advisoryWhenFull=&amp;quot;true&amp;quot;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;memoryLimit=&amp;quot;20 kb&amp;quot;&lt;/b&gt;&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;b&gt;&amp;lt;pendingQueuePolicy&amp;gt;&lt;/b&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;b&gt;&amp;lt;vmQueueCursor/&amp;gt;&lt;/b&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;b&gt;&amp;lt;/pendingQueuePolicy&amp;gt;&lt;/b&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/policyEntry&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/policyEntries&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp;&amp;lt;/policyMap&amp;gt;
&lt;br&gt;&amp;lt;/destinationPolicy&amp;gt; 
&lt;br&gt;&lt;br&gt;&amp;lt;systemUsage&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp;&amp;lt;systemUsage &lt;b&gt;sendFailIfNoSpace=&amp;quot;true&amp;quot;&lt;/b&gt;&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;memoryUsage&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;memoryUsage limit=&amp;quot;200 mb&amp;quot;/&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/memoryUsage&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;storeUsage&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;storeUsage limit=&amp;quot;1 gb&amp;quot; name=&amp;quot;foo&amp;quot;/&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/storeUsage&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;tempUsage&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;tempUsage limit=&amp;quot;100 mb&amp;quot;/&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/tempUsage&amp;gt;
&lt;br&gt;&amp;lt;/systemUsage&amp;gt;
&lt;br&gt;&lt;br&gt;With setAlwaysSyncSend() method, client receives ResourceAllocationException.
&lt;br&gt;With &amp;lt;vmQueueCursor/&amp;gt; policy, exception is raised in a deterministic way
&lt;br&gt;(in my tests always after 20 messages).
&lt;br&gt;&lt;br&gt;There is no reason to test 5.4 SNAPSHOT (5.3. is already good).
&lt;br&gt;I try to redo this test using 5.1 release.
&lt;br&gt;&lt;br&gt;Ciao,
&lt;br&gt;Moreno &amp;nbsp;
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;blockquote class=&quot;quote light-black dark-border-color&quot;&gt;&lt;div class=&quot;quote light-border-color&quot;&gt;
&lt;div class=&quot;quote-author&quot; style=&quot;font-weight: bold;&quot;&gt;Gary Tully wrote:&lt;/div&gt;
&lt;div class=&quot;quote-message shrinkable-quote&quot;&gt;so using sync send (alwaysSyncSend=true) on the connection factory, and
&lt;br&gt;Usage.sendFailIfNoSpace in your config is what you need here. This should
&lt;br&gt;work and should be deterministic. If this is not the case, can you open a
&lt;br&gt;jira issue and attach your test case and we can get to the bottom of this.
&lt;br&gt;When the queue memory limit is reached and the system memory limit is *not*
&lt;br&gt;reached (such that no spooling to disk occurs) (or if you use a
&lt;br&gt;vmPendingMessageCursor (so messages are always in memory)) the send
&lt;br&gt;operation will fail with a ResourceAllocaitonException which will be
&lt;br&gt;propagated back to the client, which will be blocked because of the sync
&lt;br&gt;send.
&lt;/div&gt;
&lt;/div&gt;&lt;/blockquote&gt;
</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/How-to-%22activate%22-an-interceptor-tp26478807p26514557.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26514099</id>
	<title>ActiveMQ 5.3.1-SNAPSHOT daily builds available</title>
	<published>2009-11-25T06:58:07Z</published>
	<updated>2009-11-25T06:58:07Z</updated>
	<author>
		<name>Fredrik Jonson-2</name>
	</author>
	<content type="html">Hi all,
&lt;br&gt;&lt;br&gt;For those interested in trying out the coming stable bugfix release
&lt;br&gt;there is a daily build available here:
&lt;br&gt;&lt;br&gt;&lt;a href=&quot;https://repository.apache.org/content/repositories/snapshots/org/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://repository.apache.org/content/repositories/snapshots/org/&lt;/a&gt;&lt;br&gt;apache/activemq/apache-activemq/5.3.1-SNAPSHOT/
&lt;br&gt;&lt;br&gt;Maybe you all already knew that, but I've missed it completely and
&lt;br&gt;instead wasted my time trying (and failing) to build from source.
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Fredrik Jonson
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/ActiveMQ-5.3.1-SNAPSHOT-daily-builds-available-tp26514099p26514099.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26513355</id>
	<title>Active Consumers on TCP x HTTP</title>
	<published>2009-11-25T06:15:42Z</published>
	<updated>2009-11-25T06:15:42Z</updated>
	<author>
		<name>jfaerman</name>
	</author>
	<content type="html">Hello,
&lt;br&gt;&lt;br&gt;I need a queue with HTTP consumers.
&lt;br&gt;My problem is that when the JVM dies, the consumer remains active (i can see them active in the web console), thus preventing the new consumer from receiving messages.
&lt;br&gt;If i use TCP instead of HTTP, the dead consumers are inactivated correctly and everything works.
&lt;br&gt;&lt;br&gt;Anyone been thru something like this or can suggest me a workaround?
&lt;br&gt;&lt;br&gt;Tnx,
&lt;br&gt;Julio</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Active-Consumers-on-TCP-x-HTTP-tp26513355p26513355.html" />
</entry>

</feed>
