<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
<title>users@activemq.apache.org Archives</title>
<link rel="self" href="http://mail-archives.apache.org/mod_mbox/activemq-users/?format=atom"/>
<link href="http://mail-archives.apache.org/mod_mbox/activemq-users/"/>
<id>http://mail-archives.apache.org/mod_mbox/activemq-users/</id>
<updated>2009-12-05T13:25:53Z</updated>
<entry>
<title>Another need for integrating embedded broker into Tomcat</title>
<author><name>Thierry H &lt;thierry.hanot@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/activemq-users/200912.mbox/%3c26651812.post@talk.nabble.com%3e"/>
<id>urn:uuid:%3c26651812-post@talk-nabble-com%3e</id>
<updated>2009-12-05T00:50:33Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

Hello
I 'm trying to embed AMQ(5.3) into tomcat(6) with a simple WAR which is
containing the configuration files and all the JARs. I also want to use Http
Tunnel to avoid firewall issue ( so i' ll be using the tomcat port)

To do that i've tried to use the servlet (HttpSpringEmbeddedTunnelServlet) 
which isdelivered into the optional package and which seem to be done for
that.

May be it's due to the fact that i'm just start to use AMQ but i was unable
to make them work without modification for following reasons: 

1 
      - The servlet is using the BrokerFactoryBean -&gt; XBeanBrokerService
which is starting automatically the broker.
      - Then adding the TransportConnector on a started broker is doing
nothing , and the HttpTunnelServlet cannot be initialised since the accept
listener is not set.

      =&gt; to avoid that i had to add start="false" into the broker tag of the
activemq.xml 
           This may be something usefull to have this into a documentation
to embed a broker :
             configure using a xml and the BrokerFactoryBean, then add what
you want to have programmatic-ally and then start the broker , but if you do
that .......


2 
     The second part is about the HttpTransportServer which is  starting a
jetty server 
     But the Bind address which is used is the one already used by tomcat
     It was unable to start.
      
       =&gt; to avoid the problem i 've made a another HttpTransportServer
class which is doing nothing except what is done into the base class
TransportServerSupport.
        I also add to modify the HttpEmbeddedTunnelServlet , since the
context which is used to transmit information with its base class
(HttpTunnelServlet) is set to the wrong attribute (
"transportChannelListener" when the base class expect the value to be set on
the attribute "acceptListener" )

After doing thing all seems to work for now.

I may be totally wrong in my analysis and what i ve done . But if somebody
can confirm that , i ll be happy to give the modified classes and open the
associated ticket in Jira.

Thanks.
 
 

   

-- 
View this message in context: http://old.nabble.com/Another-need-for-integrating-embedded-broker-into-Tomcat-tp26651812p26651812.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: camel 2.1</title>
<author><name>Rob Davies &lt;rajdavies@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/activemq-users/200912.mbox/%3c37E29D85-0E0D-4E8F-9DD0-468E506DB047@gmail.com%3e"/>
<id>urn:uuid:%3c37E29D85-0E0D-4E8F-9DD0-468E506DB047@gmail-com%3e</id>
<updated>2009-12-04T23:19:38Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
that should work! :)
On 4 Dec 2009, at 22:16, lujan99 wrote:

&gt;
&gt; how can I Install Camel 2.1 over AMQ 5.3??
&gt; only replace camel files??
&gt;
&gt; thanks
&gt;
&gt; Dan
&gt;
&gt; -- 
&gt; View this message in context: http://old.nabble.com/camel-2.1-tp26642154p26642154.html
&gt; Sent from the ActiveMQ - User mailing list archive at Nabble.com.
&gt;

Rob Davies
http://twitter.com/rajdavies
I work here: http://fusesource.com
My Blog: http://rajdavies.blogspot.com/
I'm writing this: http://www.manning.com/snyder/







</pre>
</div>
</content>
</entry>
<entry>
<title>camel 2.1</title>
<author><name>lujan99 &lt;lujan99@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/activemq-users/200912.mbox/%3c26642154.post@talk.nabble.com%3e"/>
<id>urn:uuid:%3c26642154-post@talk-nabble-com%3e</id>
<updated>2009-12-04T22:16:52Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

how can I Install Camel 2.1 over AMQ 5.3??
only replace camel files??

thanks

Dan

-- 
View this message in context: http://old.nabble.com/camel-2.1-tp26642154p26642154.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: How can we obtain automatic removal of expired messages from	queues?</title>
<author><name>Bruce Snyder &lt;bruce.snyder@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/activemq-users/200912.mbox/%3c7b3355cb0912041136w3ad42b8fx1bf46477b544039e@mail.gmail.com%3e"/>
<id>urn:uuid:%3c7b3355cb0912041136w3ad42b8fx1bf46477b544039e@mail-gmail-com%3e</id>
<updated>2009-12-04T19:36:29Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
On Fri, Dec 4, 2009 at 9:38 AM, Fred Moore &lt;fred.moore77@gmail.com&gt; wrote:
&gt; Hi folks,
&gt;
&gt; this is probably easy but we not able to figure it out: we have producers
&gt; setting msg expiration and msgs ending up in DLQ upon expiration (with their
&gt; expiration reset to "never").
&gt;
&gt; How can I set things up in a way such that expired msgs will simply
&gt; disappear for good automatically (without going into a DLQ together with
&gt; msgs discarded for more unexpected reasons)?

Just to clarify, I think you're asking for expired messages to simply
be discarded instead of being sent to the DLQ. To achieve this, you'll
need to set the processExpired property to false in the dead letter
strategy. Below is an example of how to configure this in the
activemq.xml:

&lt;destinationPolicy&gt;
  &lt;policyMap&gt;
    &lt;policyEntries&gt;
      &lt;!-- Set the following policy on all queues using the '&gt;' wildcard --&gt;
      &lt;policyEntry queue="&gt;"&gt;
        &lt;!-- Tell the dead letter strategy not to process expired messages
              so that they will just be discarded --&gt;
        &lt;deadLetterStrategy processExpired="false" /&gt;
      &lt;/policyEntry&gt;
    &lt;/policyEntries&gt;
  &lt;/policyMap&gt;
&lt;/destinationPolicy&gt;

Bruce
-- 
perl -e 'print unpack("u30","D0G)U8V4\@4VYY9&amp;5R\"F)R=6-E+G-N&gt;61E&lt;D\!G;6%I;\"YC;VT*"
);'

ActiveMQ in Action: http://bit.ly/2je6cQ
Blog: http://bruceblog.org/
Twitter: http://twitter.com/brucesnyder


</pre>
</div>
</content>
</entry>
<entry>
<title>OutOfMemoryError when reconnecting forwarding bridge</title>
<author><name>Geoffrey Arnold &lt;geoffrey@geoffreyarnold.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/activemq-users/200912.mbox/%3c51BEC991-FF3A-490D-8C81-CED8810243F8@geoffreyarnold.com%3e"/>
<id>urn:uuid:%3c51BEC991-FF3A-490D-8C81-CED8810243F8@geoffreyarnold-com%3e</id>
<updated>2009-12-04T18:50:23Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi all,

We have a forwarding bridge between an embedded broker in one VM and a remote broker in another
VM using the examples from the network-of-brokers documentation[1].  While testing failover,
we left the embedded broker VM running overnight but did not start the remote broker VM. 
NOTE: The embedded broker VM was idle (we were not testing application logic).

In the morning the embedded broker VM threw an OutOfMemoryError:

	Exception in thread "Simple Discovery Agent: java.util.concurrent.ThreadPoolExecutor$Worker@61472b3c"
java.lang.OutOfMemoryError: Java heap space
		at org.apache.activemq.openwire.OpenWireFormat.&lt;init&gt;(OpenWireFormat.java:60)
		at org.apache.activemq.openwire.OpenWireFormat.&lt;init&gt;(OpenWireFormat.java:69)
		at org.apache.activemq.openwire.OpenWireFormatFactory.createWireFormat(OpenWireFormatFactory.java:62)
		at org.apache.activemq.transport.TransportFactory.createWireFormat(TransportFactory.java:212)
		at org.apache.activemq.transport.TransportFactory.doConnect(TransportFactory.java:140)
		at org.apache.activemq.transport.TransportFactory.connect(TransportFactory.java:67)
		at org.apache.activemq.network.DiscoveryNetworkConnector.onServiceAdd(DiscoveryNetworkConnector.java:111)
		at org.apache.activemq.transport.discovery.simple.SimpleDiscoveryAgent$1.run(SimpleDiscoveryAgent.java:164)
		at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
		at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
		at java.lang.Thread.run(Thread.java:637)

Our logs contained repeated (and expected) messages indicating that a connection could not
be established with the remote broker.  The one thing that stands out from these logs is that
a new thread was created in the embedded broker VM on each attempt to connect to the remote
broker VM:

	[1259881226751][Thread-10] Could not start network bridge between: vm://embeddedBroker and:
tcp://localhost:61616 due to: java.net.ConnectException: Connection refused
	[1259881227757][Thread-11] Could not start network bridge between: vm://embeddedBroker and:
tcp://localhost:61616 due to: java.net.ConnectException: Connection refused
	[1259881229762][Thread-12] Could not start network bridge between: vm://embeddedBroker and:
tcp://localhost:61616 due to: java.net.ConnectException: Connection refused
	...
	[1259888976178][Thread-267] Could not start network bridge between: vm://embeddedBroker and:
tcp://localhost:61616 due to: java.net.ConnectException: Connection refused
	[1259889006398][Thread-268] Could not start network bridge between: vm://embeddedBroker and:
tcp://localhost:61616 due to: java.net.ConnectException: Connection refused
	[1259889036611][Thread-269] Could not start network bridge between: vm://embeddedBroker and:
tcp://localhost:61616 due to: java.net.ConnectException: Connection refused

The embedded broker VM is configured via Spring as follows:

	&lt;amq:broker id="embeddedBroker" brokerName="embeddedBroker" useJmx="true" persistent="false"
useShutdownHook="true"&gt;
		&lt;amq:managementContext&gt;
			&lt;amq:managementContext createConnector="false"/&gt;
		&lt;/amq:managementContext&gt;
		&lt;amq:networkConnectors&gt;
			&lt;amq:networkConnector uri="static:(tcp://localhost:61616)"/&gt;
		&lt;/amq:networkConnectors&gt;
	&lt;/amq:broker&gt;

Any help would be greatly appreciated.

Thanks,
Geoff.

[1] http://activemq.apache.org/networks-of-brokers.html

</pre>
</div>
</content>
</entry>
<entry>
<title>RE: Shutting down a broker in a network of brokers</title>
<author><name>&quot;Andres Rangel&quot; &lt;andresr@corp.moniker.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/activemq-users/200912.mbox/%3c886461EE661A1E45BAA97AF28FAA85DB023C4A4E@barbados.corp.oversee.net%3e"/>
<id>urn:uuid:%3c886461EE661A1E45BAA97AF28FAA85DB023C4A4E@barbados-corp-oversee-net%3e</id>
<updated>2009-12-04T18:28:33Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
The messages are synced between brokers only if there are consumers of
the same queue in both brokers. 
If you have temporary queues, since they are broker specific, any
messages in those queues will be lost

-----Original Message-----
From: Sebastian Rodriguez [mailto:srodrigu85@gmail.com] 
Sent: Thursday, December 03, 2009 7:59 PM
To: users@activemq.apache.org
Subject: Re: Shutting down a broker in a network of brokers

I might be wrong on this one, but usually, in a network of brokers, the
messages are synced between brokers.
When one of the brokers goes down, the messages are not lost. The
producers
and consumers will switch automatically to an available broker,
transparently for the end user.

2009/12/4 yello_downunder &lt;jseutter@gmail.com&gt;

&gt;
&gt; I'm looking at using a network of brokers.  When shutting down a
broker in
&gt; the network of brokers, how can you ensure that no messages are
trapped on
&gt; the broker being shut down?  Do you have to remove all producers on
the
&gt; network of brokers and wait for messages to be processed on all
brokers?
&gt;
&gt; --
&gt; View this message in context:
&gt;
http://old.nabble.com/Shutting-down-a-broker-in-a-network-of-brokers-tp2
6634351p26634351.html
&gt; Sent from the ActiveMQ - User mailing list archive at Nabble.com.
&gt;
&gt;


-- 
Sebastien Rodriguez


</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Free Fuse day - talks on Apache ActiveMQ, ServiceMix and Camel</title>
<author><name>Hiram Chirino &lt;hiram@hiramchirino.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/activemq-users/200912.mbox/%3caf2843cd0912041004i5f14c4f3ye7a9dbee7c342097@mail.gmail.com%3e"/>
<id>urn:uuid:%3caf2843cd0912041004i5f14c4f3ye7a9dbee7c342097@mail-gmail-com%3e</id>
<updated>2009-12-04T18:04:57Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Yay!  Just found out I'll be attending the San Francisco event!

Anyone else able to make it out?


On Mon, Nov 30, 2009 at 7:24 AM, Rob Davies &lt;rajdavies@gmail.com&gt; wrote:
&gt;
&gt; If any folks are in New York on December 8th or near San Francisco on
&gt; December 10th - there is a free Community day sponsored by Fuse Source -
&gt; with talks on Apache ServiceMix, ActiveMQ and Camel.
&gt; If you'd like to attend - you need to register - its all free and includes
&gt; lunch. If you can't make it - James Strachan and myself will no doubt be
&gt; found in a local bar afterwards - so why not pop by for a chat and a beer.
&gt; Not being local, suggestions are welcome :)
&gt;
&gt; To register for the New York  event (Hyatt Hotel next to Grand Central) on
&gt; December 8th - go here: http://form.fusesource.com/forms/registerny2009
&gt; To register for the San Francisco event (Hyatt Hotel next to the er, Airport
&gt; :( )  on December 10th - go here:
&gt; http://form.fusesource.com/forms/registersf2009
&gt;
&gt; cheers,
&gt;
&gt; Rob
&gt;
&gt; Rob Davies
&gt; http://twitter.com/rajdavies
&gt; I work here: http://fusesource.com
&gt; My Blog: http://rajdavies.blogspot.com/
&gt; I'm writing this: http://www.manning.com/snyder/
&gt;
&gt;
&gt;
&gt;
&gt;
&gt;



-- 
Regards,
Hiram

Blog: http://hiramchirino.com

Open Source SOA
http://fusesource.com/


</pre>
</div>
</content>
</entry>
<entry>
<title>How can we obtain automatic removal of expired messages from queues?</title>
<author><name>Fred Moore &lt;fred.moore77@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/activemq-users/200912.mbox/%3c69b2d60e0912040838l300aea29wc6085a652249ab71@mail.gmail.com%3e"/>
<id>urn:uuid:%3c69b2d60e0912040838l300aea29wc6085a652249ab71@mail-gmail-com%3e</id>
<updated>2009-12-04T16:38:01Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi folks,

this is probably easy but we not able to figure it out: we have producers
setting msg expiration and msgs ending up in DLQ upon expiration (with their
expiration reset to "never").

How can I set things up in a way such that expired msgs will simply
disappear for good automatically (without going into a DLQ together with
msgs discarded for more unexpected reasons)?

Cheers,
F.


</pre>
</div>
</content>
</entry>
<entry>
<title>Persisting Queues when passed through Mule</title>
<author><name>eric tice &lt;eric.tice@lifeway.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/activemq-users/200912.mbox/%3c26635892.post@talk.nabble.com%3e"/>
<id>urn:uuid:%3c26635892-post@talk-nabble-com%3e</id>
<updated>2009-12-04T14:03:38Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

I am using Mule and ActiveMQ together.  ActiveMQ version 5.2.0.  I am
noticing something I don't get in the logs.  I set the config in
activemq.xml to persistent=true at the broker level and created a
destination of type queue.  I set to journal persistance and I see in the
console that my message is received and it is being picked up by the
consumer, but it also appears to be removed (See Below).  The console would
also lead me to believe that active mq is treating my queue as a topic.  I
would appreciate any help/clarification:

- Adding destination: topic://ActiveMQ.Advisory.Producer.Queue.b2bqueue
DEBUG AbstractRegion                 - Adding destination:
temp-queue://ID:FA2275059.local-64357-1259934819940-0:0:1
DEBUG AbstractRegion                 - Adding destination:
topic://ActiveMQ.Advisory.TempQueue
DEBUG AMQMessageStore                - Journalled message add for:
ID:FA2275059.local-64357-1259934819940-0:0:1:1:1, at: offset = 19525, file =
1, size = 1327, type = 1
DEBUG AMQMessageStore                - Doing batch update... adding: 1
removing: 0 
DEBUG AMQMessageStore                - Batch update done.
DEBUG AbstractRegion                 - Adding consumer:
ID:FA2275059.local-64357-1259934819940-0:0:1:1
DEBUG AbstractRegion                 - Adding destination:
topic://ActiveMQ.Advisory.Consumer.Queue.ID:FA2275059.local-64357-1259934819940-0:0:1
DEBUG InactivityMonitor              - 10001 ms elapsed since last write
check.
DEBUG InactivityMonitor              - 9998 ms elapsed since last write
check.
DEBUG AbstractRegion                 - Removing consumer:
ID:FA2275059.local-64357-1259934819940-0:0:1:1
DEBUG AbstractRegion                 - Removing destination:
temp-queue://ID:FA2275059.local-64357-1259934819940-0:0:1
DEBUG AbstractRegion                 - Removing destination:
topic://ActiveMQ.Advisory.Consumer.Queue.ID:FA2275059.local-64357-1259934819940-0:0:1

-- 
View this message in context: http://old.nabble.com/Persisting-Queues-when-passed-through-Mule-tp26635892p26635892.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.



</pre>
</div>
</content>
</entry>
<entry>
<title>\bin\..\data\kahadb\lock' could not be locked...</title>
<author><name>krishnasynd &lt;krishnareddycm@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/activemq-users/200912.mbox/%3c26635855.post@talk.nabble.com%3e"/>
<id>urn:uuid:%3c26635855-post@talk-nabble-com%3e</id>
<updated>2009-12-04T11:20:35Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

INFO | Using Persistence Adapter:
org.apache.activemq.store.kahadb.KahaDBPersistenceAdapter@578073
INFO | Database
C:\ATSL\TSL_JAVA_27-11-09\apache-activemq-5.3.0-bin\apache-activemq-5.3.0\bin\..\data\kahadb\lock
is locked... waiting 10 seconds for the database to be unlocked. Reason:
java.io.IOException: File
'C:\ATSL\TSL_JAVA_27-11-09\apache-activemq-5.3.0-bin\apache-activemq-5.3.0\bin\..\data\kahadb\lock'
could not be locked.

please help me
-- 
View this message in context: http://old.nabble.com/%5Cbin%5C..%5Cdata%5Ckahadb%5Clock%27-could-not-be-locked...-tp26635855p26635855.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.



</pre>
</div>
</content>
</entry>
<entry>
<title>HTTPS configuration not working</title>
<author><name>RJtokenlanring &lt;ing.marco.colombo@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/activemq-users/200912.mbox/%3c26635829.post@talk.nabble.com%3e"/>
<id>urn:uuid:%3c26635829-post@talk-nabble-com%3e</id>
<updated>2009-12-04T09:52:59Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

Default apache-mq 5.3.0 comes with a non properly confgured https support.
If a user enables https transport into activemq.xml configuration file, 

&lt;transportConnector name="https" uri="https://0.0.0.0:61617"/&gt;

process enter in an infinite loop (as described into jetty docs).

Could you provide a working https configuration?

Thank you
-- 
View this message in context: http://old.nabble.com/HTTPS-configuration-not-working-tp26635829p26635829.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Failing to send non-persistent/ttl message using spring/java</title>
<author><name>Dejan Bosanac &lt;dejan@nighttale.net&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/activemq-users/200912.mbox/%3c36e91d9d0912040126m38921bd4wdf815c18958f9762@mail.gmail.com%3e"/>
<id>urn:uuid:%3c36e91d9d0912040126m38921bd4wdf815c18958f9762@mail-gmail-com%3e</id>
<updated>2009-12-04T09:26:50Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi,

as far as I can see, you message is marked as non-persistent, however
if you want to set explicit time to live you have to set
isExplicitQosEnabled(). See here
http://www.jarvana.com/jarvana/view/org/springframework/spring/1.2.9/spring-1.2.9-javadoc.jar!/org/springframework/jms/core/JmsTemplate.html#isExplicitQosEnabled()
for more info.

Cheers
--
Dejan Bosanac - http://twitter.com/dejanb

Open Source Integration - http://fusesource.com/
ActiveMQ in Action - http://www.manning.com/snyder/
Blog - http://www.nighttale.net



On Thu, Dec 3, 2009 at 11:03 PM, neillott &lt;neilmatthewlott@yahoo.com&gt; wrote:
&gt;
&gt; Hi,
&gt;
&gt; I'm using activemq 5.3.0.
&gt;
&gt; Essentially, I'd like to have a queue that is not persistent whose producers
&gt; will send non-persistent messages.
&gt;
&gt; If I send a message to the queue through the activemq ui and mark it as
&gt; persistent delivery=false and timetolive=10000 -- after 10 seconds it goes
&gt; away.
&gt;
&gt; However, if I set up a java application using spring as follows:
&gt;
&gt;  &lt;bean id="activeMQConnectionFactory"
&gt; class="org.apache.activemq.ActiveMQConnectionFactory"&gt;
&gt;        &lt;property name="brokerURL" value="tcp://10.254.0.47:61616"/&gt;
&gt;        &lt;property name="useAsyncSend" value="true"/&gt;
&gt;
&gt;    &lt;/bean&gt;
&gt;
&gt;    &lt;bean id="cachingConnectionFactory"
&gt; class="org.springframework.jms.connection.CachingConnectionFactory"&gt;
&gt;        &lt;property name="targetConnectionFactory"
&gt; ref="activeMQConnectionFactory"/&gt;
&gt;        &lt;property name="sessionCacheSize" value="100"/&gt;
&gt;        &lt;property name="exceptionListener" ref="preludeExceptionListener"/&gt;
&gt;    &lt;/bean&gt;
&gt;
&gt;    &lt;bean id="jmsTemplate" class="org.springframework.jms.core.JmsTemplate"&gt;
&gt;        &lt;constructor-arg ref="cachingConnectionFactory"/&gt;
&gt;        &lt;property name="deliveryPersistent" value="false"/&gt;
&gt;        &lt;property name="deliveryMode" value="1"/&gt;
&gt;        &lt;property name="timeToLive" value="20000"/&gt;
&gt;    &lt;/bean&gt;
&gt;
&gt; --- and here's my sender
&gt;
&gt; public void send(final String message)
&gt;   {
&gt;
&gt;      log.info("delivery mode {}, timeToLive {}",
&gt; jmsTemplate.getDeliveryMode(), jmsTemplate.getTimeToLive());
&gt; //      jmsTemplate.convertAndSend(QUEUE_NAME, message);
&gt;
&gt;
&gt;      MessageCreator mc = new MessageCreator()
&gt;      {
&gt;         public Message createMessage(Session session) throws JMSException
&gt;         {
&gt;            TextMessage msg = session.createTextMessage();
&gt;            msg.setJMSPriority(9);
&gt;            msg.setText("This is easy!");
&gt;            return msg;
&gt;         }
&gt;      };
&gt;
&gt;      jmsTemplate.send(QUEUE_NAME, mc);
&gt;
&gt;   }
&gt;
&gt; --
&gt;
&gt; The message gets delivered to activemq however it gets marked as persistent
&gt; and it never expires.
&gt;
&gt; Here's the log messages:
&gt;
&gt; 2009-12-03 14:58:29,927  INFO [main] (PreludeNavigationSender.send:68) -
&gt; delivery mode 1, timeToLive 20000
&gt; 2009-12-03 14:58:29,936 DEBUG [main]
&gt; (CachingConnectionFactory.getSession:152) - Created cached Session for mode
&gt; 1: ActiveMQSession {id=ID:flicker-54570-1259877509487-0:0:3,started=true}
&gt; 2009-12-03 14:58:29,936 DEBUG [main] (JmsTemplate.execute:469) - Executing
&gt; callback on JMS Session: ActiveMQSession
&gt; {id=ID:flicker-54570-1259877509487-0:0:3,started=true}
&gt; 2009-12-03 14:58:29,940 DEBUG [main]
&gt; (CachingConnectionFactory$CachedSessionInvocationHandler.invoke:244) -
&gt; Created cached MessageProducer for destination
&gt; [queue://preludenavigationout]: ActiveMQMessageProducer {
&gt; value=ID:flicker-54570-1259877509487-0:0:3:1 }
&gt; 2009-12-03 14:58:29,952 DEBUG [main] (JmsTemplate.doSend:572) - Sending
&gt; created message: ActiveMQTextMessage {commandId = 0, responseRequired =
&gt; false, messageId = null, originalDestination = null, originalTransactionId =
&gt; null, producerId = null, destination = null, transactionId = null,
&gt; expiration = 0, timestamp = 0, arrival = 0, brokerInTime = 0, brokerOutTime
&gt; = 0, correlationId = null, replyTo = null, persistent = false, type = null,
&gt; priority = 9, groupID = null, groupSequence = 0, targetConsumerId = null,
&gt; compressed = false, userID = null, content = null, marshalledProperties =
&gt; null, dataStructure = null, redeliveryCounter = 0, size = 0, properties =
&gt; null, readOnlyProperties = false, readOnlyBody = false, droppable = false,
&gt; text = This is easy!}
&gt;
&gt; Anyone have any ideas?
&gt;
&gt; Thanks,
&gt;
&gt; Neil
&gt;
&gt; --
&gt; View this message in context: http://old.nabble.com/Failing-to-send-non-persistent-ttl-message-using-spring-java-tp26634035p26634035.html
&gt; Sent from the ActiveMQ - User mailing list archive at Nabble.com.
&gt;
&gt;


</pre>
</div>
</content>
</entry>
<entry>
<title>Re: deployment of hundreds of client. broker name configuration	problem?</title>
<author><name>James Casey &lt;jamesc.000@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/activemq-users/200912.mbox/%3cd3e714120912040109me32a277t9dab679c1e67e468@mail.gmail.com%3e"/>
<id>urn:uuid:%3cd3e714120912040109me32a277t9dab679c1e67e468@mail-gmail-com%3e</id>
<updated>2009-12-04T09:09:07Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi Sebastian,

An easy way is to modify the bin/activemq script to pass across an
activemq.hostname parameter.

e.g.  in bin/activemq, add:

ACTIVEMQ_HOSTNAME=`hostname -f`

and then in the line :

exec "$JAVACMD" $ACTIVEMQ_DEBUG_OPTS $ACTIVEMQ_OPTS -Dactivemq.classpath="${
ACTIVEMQ_CLASSPATH}" -Dactivemq.home="${ACTIVEMQ_HOME}" -Dactivemq.base="${ACTIV
EMQ_BASE}" -jar "${ACTIVEMQ_HOME}/bin/run.jar" start $@


add in  "-Dactivemq.hostname=${ACTIVEMQ_HOSTNAME} ".


If you use Java Wrapper and an init.d you can do a similar logic - set
the hostname in the init.d script as before, and in the wrapper.conf
do something like:

wrapper.java.additional.3=-Dactivemq.hostname=%ACTIVEMQ_HOSTNAME%

We use the second method in production successfully.

cheers,

James.


2009/12/4 Sebastian Rodriguez &lt;srodrigu85@gmail.com&gt;:
&gt; Dear all,
&gt; In need your advice in the following configuration scenario: we are
&gt; deploying ActiveMQ 5.3 in a big number of machines. The configuration is
&gt; exactly the same for all the machines, the only difference is, of course,
&gt; the broker name. As they need to be unique, they need to be changed in all
&gt; the machines, creating a very repetitive yet time consuming task that would
&gt; be to modify the activemq.xml file.
&gt; Is there a way to use a environment variables in the configuration file (to
&gt; put the hostname of the machine as the broker name)?
&gt; I see there is already some configuration possible through the
&gt; eg.springframework.beans.factory.config.PropertyPlaceholderConfigurer class,
&gt; but those properties are static. I guess I can create a deploy script that
&gt; created my own properties file that will put the hostname in it, but that
&gt; property would only be created or refreshed when I deploy the service.
&gt; This is not the ideal solution as the hostname might change in the machine
&gt; life, so I'm seeking for your advice in the matter.
&gt; Thank you very much for your help,
&gt; --
&gt; Sebastien Rodriguez
&gt;


</pre>
</div>
</content>
</entry>
<entry>
<title>deployment of hundreds of client. broker name configuration problem?</title>
<author><name>Sebastian Rodriguez &lt;srodrigu85@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/activemq-users/200912.mbox/%3cccabef070912040010t109235c0t53ec2af97d8788cb@mail.gmail.com%3e"/>
<id>urn:uuid:%3cccabef070912040010t109235c0t53ec2af97d8788cb@mail-gmail-com%3e</id>
<updated>2009-12-04T08:10:04Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Dear all,
In need your advice in the following configuration scenario: we are
deploying ActiveMQ 5.3 in a big number of machines. The configuration is
exactly the same for all the machines, the only difference is, of course,
the broker name. As they need to be unique, they need to be changed in all
the machines, creating a very repetitive yet time consuming task that would
be to modify the activemq.xml file.
Is there a way to use a environment variables in the configuration file (to
put the hostname of the machine as the broker name)?
I see there is already some configuration possible through the
eg.springframework.beans.factory.config.PropertyPlaceholderConfigurer class,
but those properties are static. I guess I can create a deploy script that
created my own properties file that will put the hostname in it, but that
property would only be created or refreshed when I deploy the service.
This is not the ideal solution as the hostname might change in the machine
life, so I'm seeking for your advice in the matter.
Thank you very much for your help,
-- 
Sebastien Rodriguez


</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Shutting down a broker in a network of brokers</title>
<author><name>Sebastian Rodriguez &lt;srodrigu85@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/activemq-users/200912.mbox/%3cccabef070912031658u6b6052f6i8d6f2697bec7913a@mail.gmail.com%3e"/>
<id>urn:uuid:%3cccabef070912031658u6b6052f6i8d6f2697bec7913a@mail-gmail-com%3e</id>
<updated>2009-12-04T00:58:30Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
I might be wrong on this one, but usually, in a network of brokers, the
messages are synced between brokers.
When one of the brokers goes down, the messages are not lost. The producers
and consumers will switch automatically to an available broker,
transparently for the end user.

2009/12/4 yello_downunder &lt;jseutter@gmail.com&gt;

&gt;
&gt; I'm looking at using a network of brokers.  When shutting down a broker in
&gt; the network of brokers, how can you ensure that no messages are trapped on
&gt; the broker being shut down?  Do you have to remove all producers on the
&gt; network of brokers and wait for messages to be processed on all brokers?
&gt;
&gt; --
&gt; View this message in context:
&gt; http://old.nabble.com/Shutting-down-a-broker-in-a-network-of-brokers-tp26634351p26634351.html
&gt; Sent from the ActiveMQ - User mailing list archive at Nabble.com.
&gt;
&gt;


-- 
Sebastien Rodriguez


</pre>
</div>
</content>
</entry>
<entry>
<title>Shutting down a broker in a network of brokers</title>
<author><name>yello_downunder &lt;jseutter@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/activemq-users/200912.mbox/%3c26634351.post@talk.nabble.com%3e"/>
<id>urn:uuid:%3c26634351-post@talk-nabble-com%3e</id>
<updated>2009-12-03T22:24:50Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

I'm looking at using a network of brokers.  When shutting down a broker in
the network of brokers, how can you ensure that no messages are trapped on
the broker being shut down?  Do you have to remove all producers on the
network of brokers and wait for messages to be processed on all brokers?

-- 
View this message in context: http://old.nabble.com/Shutting-down-a-broker-in-a-network-of-brokers-tp26634351p26634351.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.



</pre>
</div>
</content>
</entry>
<entry>
<title>Failing to send non-persistent/ttl message using spring/java</title>
<author><name>neillott &lt;neilmatthewlott@yahoo.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/activemq-users/200912.mbox/%3c26634035.post@talk.nabble.com%3e"/>
<id>urn:uuid:%3c26634035-post@talk-nabble-com%3e</id>
<updated>2009-12-03T22:03:55Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

Hi,

I'm using activemq 5.3.0.

Essentially, I'd like to have a queue that is not persistent whose producers
will send non-persistent messages.

If I send a message to the queue through the activemq ui and mark it as
persistent delivery=false and timetolive=10000 -- after 10 seconds it goes
away.  

However, if I set up a java application using spring as follows:

 &lt;bean id="activeMQConnectionFactory"
class="org.apache.activemq.ActiveMQConnectionFactory"&gt;
        &lt;property name="brokerURL" value="tcp://10.254.0.47:61616"/&gt;
        &lt;property name="useAsyncSend" value="true"/&gt;

    &lt;/bean&gt;

    &lt;bean id="cachingConnectionFactory"
class="org.springframework.jms.connection.CachingConnectionFactory"&gt;
        &lt;property name="targetConnectionFactory"
ref="activeMQConnectionFactory"/&gt;
        &lt;property name="sessionCacheSize" value="100"/&gt;
        &lt;property name="exceptionListener" ref="preludeExceptionListener"/&gt;
    &lt;/bean&gt;

    &lt;bean id="jmsTemplate" class="org.springframework.jms.core.JmsTemplate"&gt;
        &lt;constructor-arg ref="cachingConnectionFactory"/&gt;
        &lt;property name="deliveryPersistent" value="false"/&gt;
        &lt;property name="deliveryMode" value="1"/&gt;
        &lt;property name="timeToLive" value="20000"/&gt;
    &lt;/bean&gt;

--- and here's my sender

public void send(final String message)
   {

      log.info("delivery mode {}, timeToLive {}",
jmsTemplate.getDeliveryMode(), jmsTemplate.getTimeToLive());
//      jmsTemplate.convertAndSend(QUEUE_NAME, message);


      MessageCreator mc = new MessageCreator()
      {
         public Message createMessage(Session session) throws JMSException
         {
            TextMessage msg = session.createTextMessage();
            msg.setJMSPriority(9);
            msg.setText("This is easy!");
            return msg;
         }
      };

      jmsTemplate.send(QUEUE_NAME, mc);

   }

--

The message gets delivered to activemq however it gets marked as persistent
and it never expires.

Here's the log messages:

2009-12-03 14:58:29,927  INFO [main] (PreludeNavigationSender.send:68) -
delivery mode 1, timeToLive 20000
2009-12-03 14:58:29,936 DEBUG [main]
(CachingConnectionFactory.getSession:152) - Created cached Session for mode
1: ActiveMQSession {id=ID:flicker-54570-1259877509487-0:0:3,started=true}
2009-12-03 14:58:29,936 DEBUG [main] (JmsTemplate.execute:469) - Executing
callback on JMS Session: ActiveMQSession
{id=ID:flicker-54570-1259877509487-0:0:3,started=true}
2009-12-03 14:58:29,940 DEBUG [main]
(CachingConnectionFactory$CachedSessionInvocationHandler.invoke:244) -
Created cached MessageProducer for destination
[queue://preludenavigationout]: ActiveMQMessageProducer {
value=ID:flicker-54570-1259877509487-0:0:3:1 }
2009-12-03 14:58:29,952 DEBUG [main] (JmsTemplate.doSend:572) - Sending
created message: ActiveMQTextMessage {commandId = 0, responseRequired =
false, messageId = null, originalDestination = null, originalTransactionId =
null, producerId = null, destination = null, transactionId = null,
expiration = 0, timestamp = 0, arrival = 0, brokerInTime = 0, brokerOutTime
= 0, correlationId = null, replyTo = null, persistent = false, type = null,
priority = 9, groupID = null, groupSequence = 0, targetConsumerId = null,
compressed = false, userID = null, content = null, marshalledProperties =
null, dataStructure = null, redeliveryCounter = 0, size = 0, properties =
null, readOnlyProperties = false, readOnlyBody = false, droppable = false,
text = This is easy!}

Anyone have any ideas?

Thanks,

Neil

-- 
View this message in context: http://old.nabble.com/Failing-to-send-non-persistent-ttl-message-using-spring-java-tp26634035p26634035.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.



</pre>
</div>
</content>
</entry>
<entry>
<title>ActiveMQ-CPP v3.1.0 RC1 Released</title>
<author><name>Timothy Bish &lt;tabish121@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/activemq-users/200912.mbox/%3c1259867596.2869.12.camel@localhost%3e"/>
<id>urn:uuid:%3c1259867596-2869-12-camel@localhost%3e</id>
<updated>2009-12-03T19:13:16Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hey everyone,
Today ActiveMQ-CPP v3.1.0 RC1 is available for download.  This release
sees improvements in the Failover Transport as well as the welcome
addition of an Inactivity Monitor to better detect broken connections.
The threading code has been rewritten with an eye towards performance
and lower memory consumption as well.  Several other bits of code have
been tuned as well making this the fastest version of CMS yet.  Please
take some time to download the release candidate and try it out, report
any bugs you find so we can make this a great release.

See the release notes in the source archive for more information on
what's changed or refer to the official release page for 3.1.0, you
check it out here:
&lt;http://activemq.apache.org/cms/activemq-cpp-310-release.html&gt;

The download links on this page won't work until the release is
official.  For now, follow the instructions at the top to download the
release candidate:
&lt;http://people.apache.org/~tabish/cms-3.1.0/activemq-cpp-library-3.1.0-RC1-src.tar.gz&gt;

Regards,
Tim



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Slow KahaDB access</title>
<author><name>neillott &lt;neilmatthewlott@yahoo.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/activemq-users/200912.mbox/%3c26629348.post@talk.nabble.com%3e"/>
<id>urn:uuid:%3c26629348-post@talk-nabble-com%3e</id>
<updated>2009-12-03T16:58:38Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

Thanks for the clarification.

Then my next question is what is the advantage to having persistence turned
on for a broker in activemq if none of the topics or queues are durable and
the producers of messages are not asking for delivery persistence and all
the messages are asynchronous.
-- 
View this message in context: http://old.nabble.com/Slow-KahaDB-access-tp26594249p26629348.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.



</pre>
</div>
</content>
</entry>
<entry>
<title>HTTPS configuration - HELP!</title>
<author><name>RJtokenlanring &lt;ing.marco.colombo@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/activemq-users/200912.mbox/%3c26628876.post@talk.nabble.com%3e"/>
<id>urn:uuid:%3c26628876-post@talk-nabble-com%3e</id>
<updated>2009-12-03T16:28:52Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

Hi all, I've followed all the threads and configurations guide for
configuring HTTPS support
(activeMQ 5.3.0 + JBOSS)

I have activated jetty.xml file into broker-config.xml

&lt;import resource="jetty.xml"/&gt;

and configured jetty.xml as follow:

    &lt;jetty&gt;
    ..........
		&lt;Call name="addConnector"&gt;
		&lt;Arg&gt;
		  &lt;New class="org.mortbay.jetty.security.SslSocketConnector"&gt;
			&lt;!-- &lt;Set name="Port"&gt;61&lt;/Set&gt; --&gt;
			&lt;Set name="maxIdleTime"&gt;30000&lt;/Set&gt;
			&lt;Set name="keystore"&gt;./keystore&lt;/Set&gt;
			&lt;Set name="password"&gt;password&lt;/Set&gt;
			&lt;Set name="keyPassword"&gt;password&lt;/Set&gt;
			&lt;Set name="truststore"&gt;./keystore&lt;/Set&gt;
			&lt;Set name="trustPassword"&gt;password&lt;/Set&gt;
		  &lt;/New&gt;
		&lt;/Arg&gt;
	  &lt;/Call&gt;
		
    &lt;/jetty&gt;

keystore was created as described here: 

http://docs.codehaus.org/display/JETTY/How%20to%20configure%20SSL

What is wrong? 

Thank you!!
-- 
View this message in context: http://old.nabble.com/HTTPS-configuration---HELP%21-tp26628876p26628876.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.



</pre>
</div>
</content>
</entry>
<entry>
<title>Howto check if connection is active in Pool when all brokers in a failover chain are shutdown</title>
<author><name>forda &lt;daniel.forberg@bredband.net&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/activemq-users/200912.mbox/%3c26626661.post@talk.nabble.com%3e"/>
<id>urn:uuid:%3c26626661-post@talk-nabble-com%3e</id>
<updated>2009-12-03T14:19:55Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

Hi !

Which is the easiest way to check if the connection to a broker is active.
Using:

&lt;bean id="amqConnectionFactory"
class="org.apache.activemq.pool.PooledConnectionFactory"
destroy-method="stop"&gt;
	    &lt;property name="connectionFactory"&gt;
	      &lt;bean class="org.apache.activemq.ActiveMQConnectionFactory"&gt;
	      	&lt;property name="brokerURL" value="${jms.brokerurl}" /&gt;	   
	      &lt;/bean&gt;
	    &lt;/property&gt;
&lt;/bean&gt;

&lt;bean id="amqTransactionManager"
class="org.springframework.jms.connection.JmsTransactionManager"&gt;
	    &lt;property name="connectionFactory" ref="amqConnectionFactory" /&gt;
	&lt;/bean&gt;
	&lt;bean id="amqJmsTemplate" class="org.springframework.jms.core.JmsTemplate"&gt;    
		&lt;property name="connectionFactory" ref="amqConnectionFactory" /&gt;        
	&lt;/bean&gt;	


In a monitor servlet code the the jmstemplate sends a message to a queue.
But
i seems to hang for a while. The socket seems to be open even after the
default
time of 30 seconds. Is there a way to check before try sending the message
to a queue. Or is there any other smart way to accomplish same thing ?

Thanks in advance.

Regards,

Daniel
-- 
View this message in context: http://old.nabble.com/Howto-check-if-connection-is-active-in-Pool-when-all-brokers-in-a-failover-chain-are-shutdown-tp26626661p26626661.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Confirm the correct usage of &quot;connectionFactoryNames&quot;</title>
<author><name>sbasani &lt;sreekanthbasani@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/activemq-users/200912.mbox/%3c26623402.post@talk.nabble.com%3e"/>
<id>urn:uuid:%3c26623402-post@talk-nabble-com%3e</id>
<updated>2009-12-03T09:50:22Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

Can anyone please respond to this issue... :-((
-- 
View this message in context: http://old.nabble.com/Confirm-the-correct-usage-of-%22connectionFactoryNames%22-tp26591001p26623402.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Slow KahaDB access</title>
<author><name>Gary Tully &lt;gary.tully@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/activemq-users/200912.mbox/%3c3a73c17c0912030148u6bbda57fiac889f953dcbf1cf@mail.gmail.com%3e"/>
<id>urn:uuid:%3c3a73c17c0912030148u6bbda57fiac889f953dcbf1cf@mail-gmail-com%3e</id>
<updated>2009-12-03T09:48:29Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
The problem is that they cannot be interpreted by the end user and even if
they could here is no clear corresponding lever to tweak at this time. It
makes sense to leave them in but with a default threshold of 0, such that
they must be enabled, by a knowledgeable user, with a limit that makes sense
for a given application environment.

2009/12/2 Fredrik Jonson &lt;fredrik@jonson.org&gt;

&gt; Gary Tully wrote:
&gt;
&gt; &gt;  Those log messages are developer debug aids that were added early on in
&gt; the
&gt; &gt;  dev cycle and possibly should now be removed.
&gt;
&gt; If those messages can be interpreted by end user why not leave them in?
&gt; Right
&gt; now I agree that they might be of little use, because we haven't got any
&gt; yard
&gt; stick to measure against. It could become useful if someone could say,
&gt; "well
&gt; anything below 500 ms is nothing to worry" - or - "well, once you go above
&gt; five
&gt; seconds you really need to consider the configuration and the hardware".
&gt;
&gt; I understand that it all depends on the load, even so lets start somewhere.
&gt; As I've seen mentioned that anything below 500 ms will be filtered ouy in
&gt; the
&gt; future, can we assume that's a "safe" level? And if so, where is a first
&gt; rough
&gt; upper bound where you would start to monitor the situation? 3 s? 5? 10? 30?
&gt;
&gt; Thanks
&gt; --
&gt; Fredrik Jonson
&gt;
&gt;


-- 
http://blog.garytully.com

Open Source Integration
http://fusesource.com


</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Jetty and clientAccessPolicy.xml</title>
<author><name>Dejan Bosanac &lt;dejan@nighttale.net&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/activemq-users/200912.mbox/%3c36e91d9d0912030043y4bf1c530k22a20be62764503e@mail.gmail.com%3e"/>
<id>urn:uuid:%3c36e91d9d0912030043y4bf1c530k22a20be62764503e@mail-gmail-com%3e</id>
<updated>2009-12-03T08:43:16Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi,

web applications distributed with ActiveMQ are located in webapps/
folder. The REST API is distributed with the "demo" application, so
it's in "webapps/demo"

Cheers
--
Dejan Bosanac - http://twitter.com/dejanb

Open Source Integration - http://fusesource.com/
ActiveMQ in Action - http://www.manning.com/snyder/
Blog - http://www.nighttale.net



On Wed, Dec 2, 2009 at 10:42 PM, nisbus &lt;nisbus@gmail.com&gt; wrote:
&gt;
&gt; Hi,
&gt;
&gt; I want to use the REST interface to ActiveMQ from Silverlight but the
&gt; requirement is that the root of the webserver have a clientaccesspolicy.xml
&gt; file for Silverlight to be able to communicate with it.
&gt;
&gt; Where is the root of Jetty that drives the applets for REST?
&gt;
&gt; thanks,
&gt;  nisbus
&gt; --
&gt; View this message in context: http://old.nabble.com/Jetty-and-clientAccessPolicy.xml-tp26616994p26616994.html
&gt; Sent from the ActiveMQ - User mailing list archive at Nabble.com.
&gt;
&gt;


</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Slow KahaDB access</title>
<author><name>neillott &lt;neilmatthewlott@yahoo.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/activemq-users/200912.mbox/%3c26617441.post@talk.nabble.com%3e"/>
<id>urn:uuid:%3c26617441-post@talk-nabble-com%3e</id>
<updated>2009-12-02T22:13:32Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>


&gt;Are you noticing delays in producers or consumers or just a little worried
&gt;about the INFO message?

My main concern was about the message.  I haven't seen any delays.

-- 
View this message in context: http://old.nabble.com/Slow-KahaDB-access-tp26594249p26617441.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Slow KahaDB access</title>
<author><name>Fredrik Jonson &lt;fredrik@jonson.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/activemq-users/200912.mbox/%3cslrnhhdoul.8cm.fredrik@scout.jonson.org%3e"/>
<id>urn:uuid:%3cslrnhhdoul-8cm-fredrik@scout-jonson-org%3e</id>
<updated>2009-12-02T22:01:30Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Gary Tully wrote:

&gt;  Those log messages are developer debug aids that were added early on in the
&gt;  dev cycle and possibly should now be removed.
 
If those messages can be interpreted by end user why not leave them in? Right
now I agree that they might be of little use, because we haven't got any yard
stick to measure against. It could become useful if someone could say, "well
anything below 500 ms is nothing to worry" - or - "well, once you go above five
seconds you really need to consider the configuration and the hardware".

I understand that it all depends on the load, even so lets start somewhere.
As I've seen mentioned that anything below 500 ms will be filtered ouy in the
future, can we assume that's a "safe" level? And if so, where is a first rough
upper bound where you would start to monitor the situation? 3 s? 5? 10? 30?

Thanks
-- 
Fredrik Jonson



</pre>
</div>
</content>
</entry>
<entry>
<title>Help please: Hourglass on ajax client</title>
<author><name>jaguarg &lt;fotshudi@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/activemq-users/200912.mbox/%3c26617241.post@talk.nabble.com%3e"/>
<id>urn:uuid:%3c26617241-post@talk-nabble-com%3e</id>
<updated>2009-12-02T21:59:39Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

Hi, 
I am using the activemq ajax client to push data to a web browser. 

When polling starts, I have noticed that mouse icon is always showing the
hourglass and the browser status bar reads "Waiting for &lt;myhost&gt;" 

Help please. this doesn't look very nice and my users a going wonder why it
looks like the page is not loading fully.

--
jaguarg 
-- 
View this message in context: http://old.nabble.com/Help-please%3A-Hourglass-on-ajax-client-tp26617241p26617241.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.



</pre>
</div>
</content>
</entry>
<entry>
<title>Jetty and clientAccessPolicy.xml</title>
<author><name>nisbus &lt;nisbus@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/activemq-users/200912.mbox/%3c26616994.post@talk.nabble.com%3e"/>
<id>urn:uuid:%3c26616994-post@talk-nabble-com%3e</id>
<updated>2009-12-02T21:42:57Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

Hi,

I want to use the REST interface to ActiveMQ from Silverlight but the
requirement is that the root of the webserver have a clientaccesspolicy.xml
file for Silverlight to be able to communicate with it.

Where is the root of Jetty that drives the applets for REST?

thanks,
  nisbus
-- 
View this message in context: http://old.nabble.com/Jetty-and-clientAccessPolicy.xml-tp26616994p26616994.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.



</pre>
</div>
</content>
</entry>
<entry>
<title>ActiveMQ ear deployed in jBoss - DB2 jdbc jar errors - Broker does not start</title>
<author><name>&quot;au.pg&quot; &lt;pgovind@interwoven.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/activemq-users/200912.mbox/%3c26616899.post@talk.nabble.com%3e"/>
<id>urn:uuid:%3c26616899-post@talk-nabble-com%3e</id>
<updated>2009-12-02T21:36:32Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

Hi,

When I use DB2 as database I am getting below errors and broker does not
start.

----------------------------------------------------------------
Caused by: com.ibm.db2.jcc.b.gm: [jcc][t4][2030][11211][3.50.152] A
communication error occurred during operations on the connection's
underlying socket, socket input stream, 

or socket output stream.  Error location: Reply.fill().  Message: Connection
reset. ERRORCODE=-4499, SQLSTATE=08001
        at com.ibm.db2.jcc.b.wc.a(wc.java:283)
...
009-11-24 19:59:45,997 ERROR [org.jboss.deployment.MainDeployer] Could not
initialise deployment:
file:/ABC/ApplicationContainer/server/default/deploy/activemq-ear-5.3.0.ear/

org.jboss.deployment.DeploymentException: exception in init of
file:/ABC/ApplicationContainer/server/default/deploy/activemq-ear-5.3.0.ear/activemq-ra.rar/db2jcc.jar;
- nested throwable: (java.lang.RuntimeException: java.io.IOException: bad
magic number: cba78dd8)

        at
org.jboss.deployment.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:53)

----------------------------------------------------------------

1) Please note that I dont see any errors with other database
(Oracle,SQLServer,MySQL, etc. works fine).
2) If I *move* db2 jdbc jars to jboss server/default/lib then error goes
away and broker start properly.

Does anyone faced this issue?

Thanks,
PG
-- 
View this message in context: http://old.nabble.com/ActiveMQ-ear-deployed-in-jBoss---DB2-jdbc-jar-errors---Broker-does-not-start-tp26616899p26616899.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.



</pre>
</div>
</content>
</entry>
<entry>
<title>javax.jms.JMSException: Not Supported</title>
<author><name>DJ Daugherty &lt;ddaugher@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/activemq-users/200912.mbox/%3c26615993.post@talk.nabble.com%3e"/>
<id>urn:uuid:%3c26615993-post@talk-nabble-com%3e</id>
<updated>2009-12-02T20:38:09Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

I am trying to get ActiveMQ embedded into Jboss... followed the instructions
to the letter from the activemq site... when I try to deploy my MDB... i get
the following error...

and help would be greatly appreciated.

15:19:32,219 ERROR [JmsActivation] Unable to reconnect
org.jboss.resource.adapter.jms.inflow.JmsActivationSpec@5dcbf8e5(ra=org.jboss.resource.adapter.jms.JmsResourceAdapter@160630e1
destination=activemq/queue/outbound destinationType=javax.jms.Queue tx=true
durable=true clientID=ScanDomainConsumerMDBBean
subscription=ScanDomainConsumerMDBBean reconnect=10
provider=java:/DefaultJMSProvider user=null maxMessages=1 minSession=1
maxSession=15 keepAlive=60000 useDLQ=true
DLQHandler=org.jboss.resource.adapter.jms.inflow.dlq.GenericDLQHandler
DLQJndiName=queue/DLQ DLQUser=null DLQMaxResent=5)
javax.jms.JMSException: Not Supported.
	at
org.apache.activemq.ra.ManagedConnectionProxy.createConnectionConsumer(ManagedConnectionProxy.java:253)
	at
org.jboss.resource.adapter.jms.inflow.JmsServerSessionPool.setupConsumer(JmsServerSessionPool.java:289)
	at
org.jboss.resource.adapter.jms.inflow.JmsServerSessionPool.start(JmsServerSessionPool.java:89)
	at
org.jboss.resource.adapter.jms.inflow.JmsActivation.setupSessionPool(JmsActivation.java:656)
	at
org.jboss.resource.adapter.jms.inflow.JmsActivation.setup(JmsActivation.java:359)
	at
org.jboss.resource.adapter.jms.inflow.JmsActivation.handleFailure(JmsActivation.java:292)
	at
org.jboss.resource.adapter.jms.inflow.JmsActivation$SetupActivation.run(JmsActivation.java:733)
	at org.jboss.resource.work.WorkWrapper.execute(WorkWrapper.java:205)
	at
org.jboss.util.threadpool.BasicTaskWrapper.run(BasicTaskWrapper.java:260)
	at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:637)

-- 
View this message in context: http://old.nabble.com/javax.jms.JMSException%3A-Not-Supported-tp26615993p26615993.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: EJB3 authentication issue</title>
<author><name>RJtokenlanring &lt;ing.marco.colombo@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/activemq-users/200912.mbox/%3c26611656.post@talk.nabble.com%3e"/>
<id>urn:uuid:%3c26611656-post@talk-nabble-com%3e</id>
<updated>2009-12-02T16:18:51Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

Resolved: correct parametres is ...propertyName = "userName"
-- 
View this message in context: http://old.nabble.com/EJB3-authentication-issue-tp26611052p26611656.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.



</pre>
</div>
</content>
</entry>
<entry>
<title>EJB3 authentication issue</title>
<author><name>RJtokenlanring &lt;ing.marco.colombo@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/activemq-users/200912.mbox/%3c26611052.post@talk.nabble.com%3e"/>
<id>urn:uuid:%3c26611052-post@talk-nabble-com%3e</id>
<updated>2009-12-02T15:45:24Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

Hi all, 
I have some problems with authentication.
I've configured the authentication with AMQ 5.3 + JBOSS. How can I
authenticate my MDBs??

I've tested with the standard annotations: 

	@ActivationConfigProperty(propertyName = "user", propertyValue = "admin"),
	@ActivationConfigProperty(propertyName = "password", propertyValue =
"admin")

buth this exception is raised.

org.jboss.deployment.DeploymentException: Error for ActivationSpec class
org.apache.activemq.ra.ActiveMQActivationSpec as JavaBean; - nested
throwable: (java.bean
s.IntrospectionException: No property found for: user on JavaBean:
ActiveMQActivationSpec{acknowledgeMode='Auto-acknowledge',
destinationType='javax.jms.Queue
', messageSelector='null', destination='queue/RawDataQueue',
clientId='null', subscriptionName='null',
subscriptionDurability='NonDurable'})
        at
org.jboss.deployment.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:53)
        at
org.jboss.resource.deployment.ActivationSpecFactory.createActivationSpec(ActivationSpecFactory.java:135)
        at
org.jboss.resource.deployment.RARDeployment.createActivationSpec(RARDeployment.java:254)
        at
org.jboss.resource.deployment.RARDeployment.internalInvoke(RARDeployment.java:218)
        at
org.jboss.system.ServiceDynamicMBeanSupport.invoke(ServiceDynamicMBeanSupport.java:156)
        at
org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
        at
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
        at
org.jboss.ejb3.JmxClientKernelAbstraction.invoke(JmxClientKernelAbstraction.java:44)

Without this annotations, the exception is (and is expected):

16:38:45,234 INFO  [TransportConnector] Connector vm://localhost Started
16:38:45,250 WARN  [TransportConnection] Failed to add Connection
java.lang.SecurityException: User name or password is invalid.
        at
org.apache.activemq.security.SimpleAuthenticationBroker.addConnection(SimpleAuthenticationBroker.java:52)
        at
org.apache.activemq.broker.BrokerFilter.addConnection(BrokerFilter.java:82)
        at
org.apache.activemq.broker.MutableBrokerFilter.addConnection(MutableBrokerFilter.java:89)

which is the correct property to use?? Or I have to set up a default
container username/password? Where?

Thank you in advance


       
-- 
View this message in context: http://old.nabble.com/EJB3-authentication-issue-tp26611052p26611052.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Slow KahaDB access</title>
<author><name>Gary Tully &lt;gary.tully@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/activemq-users/200912.mbox/%3c3a73c17c0912020526i68a736bfy73058ba9956061aa@mail.gmail.com%3e"/>
<id>urn:uuid:%3c3a73c17c0912020526i68a736bfy73058ba9956061aa@mail-gmail-com%3e</id>
<updated>2009-12-02T13:26:06Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Those log messages are developer debug aids that were added early on in the
dev cycle and possibly should now be removed.
In addition, this one is a little misleading as the cleanup duration is
including the wait time to get exclusive access to the index, and not just
the index cleanup operation duration while it has the lock as it should be.
Are you noticing delays in producers or consumers or just a little worried
about the INFO message?


2009/12/1 neillott &lt;neilmatthewlott@yahoo.com&gt;

&gt;
&gt; Hi,
&gt;
&gt; I know this question was posted earlier, but can anyone help here?
&gt;
&gt; http://old.nabble.com/slow-KahaDB-access-td26172918.html#a26216649
&gt;
&gt; I'm seeing this in my activemq log:
&gt;
&gt; 2009-12-01 09:29:08,690 | INFO  | Slow KahaDB access: cleanup took 9789 |
&gt; org.apache.activemq.store.kahadb.MessageDatabase | ActiveMQ Journal
&gt; Checkpoint Worker
&gt; 2009-12-01 09:30:36,376 | INFO  | Slow KahaDB access: cleanup took 1298 |
&gt; org.apache.activemq.store.kahadb.MessageDatabase | ActiveMQ Journal
&gt; Checkpoint Worker
&gt; 2009-12-01 09:47:18,871 | INFO  | Slow KahaDB access: cleanup took 14058 |
&gt; org.apache.activemq.store.kahadb.MessageDatabase | ActiveMQ Journal
&gt; Checkpoint Worker
&gt;
&gt; When I benchmark the box I'm seeing this:
&gt;
&gt; [myserver] /usr/local/neil/activemq &gt; java -classpath lib/kahadb-5.3.0.jar
&gt; org.apache.kahadb.util.DiskBenchmark
&gt; Benchmarking: /usr/local/neil/activemq/disk-benchmark.dat
&gt; Writes:
&gt;  128000 writes of size 4096 written in 18.521 seconds.
&gt;  6911.0737 writes/second.
&gt;  26.996382 megs/second.
&gt;
&gt; Sync Writes:
&gt;  57936 writes of size 4096 written in 10.001 seconds.
&gt;  5793.0205 writes/second.
&gt;  22.628986 megs/second.
&gt;
&gt; Reads:
&gt;  1960651 reads of size 4096 read in 10.001 seconds.
&gt;  196045.5 writes/second.
&gt;  765.80273 megs/second.
&gt;
&gt;
&gt; What exactly do I need to do to get rid of the slow kahadb access messages?
&gt;
&gt; Thanks,
&gt;
&gt; Neil
&gt; --
&gt; View this message in context:
&gt; http://old.nabble.com/Slow-KahaDB-access-tp26594249p26594249.html
&gt; Sent from the ActiveMQ - User mailing list archive at Nabble.com.
&gt;
&gt;


-- 
http://blog.garytully.com

Open Source Integration
http://fusesource.com


</pre>
</div>
</content>
</entry>
<entry>
<title>Re: tmp_storage created even with presistence turned on? (ActiveMQ 5.0)</title>
<author><name>Diego Castorina &lt;diego@func.nl&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/activemq-users/200912.mbox/%3c26608566.post@talk.nabble.com%3e"/>
<id>urn:uuid:%3c26608566-post@talk-nabble-com%3e</id>
<updated>2009-12-02T13:07:11Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

The reason why it does not work is that you forgot to add the attribute
start="true" to the broker declaration.
When the AMQConnectionFactory tries to connect to the broker it does not
find it (since you have not started it yet) and than creates and start a new
one using default values. The new broker will create the directory
activemq-data/localhost which will be the one actually used by your
application :)
Maybe it would be better to make the AMQConnectionFactory throwing an
Exception if it does not find the broker at the url specified
-- 
View this message in context: http://old.nabble.com/tmp_storage-created-even-with-presistence-turned-on--%28ActiveMQ-5.0%29-tp16193933p26608566.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Slow KahaDB access</title>
<author><name>Dejan Bosanac &lt;dejan@nighttale.net&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/activemq-users/200912.mbox/%3c36e91d9d0912020355q52487de3j9c1817ac78870da0@mail.gmail.com%3e"/>
<id>urn:uuid:%3c36e91d9d0912020355q52487de3j9c1817ac78870da0@mail-gmail-com%3e</id>
<updated>2009-12-02T11:55:15Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi,

FWIW, I just documented how to configure the threshold on which the message
will be logged
http://cwiki.apache.org/confluence/display/ACTIVEMQ/KahaDB#KahaDB-SlowKahaDBaccesslogmessages

Cheers
--
Dejan Bosanac - http://twitter.com/dejanb

Open Source Integration - http://fusesource.com/
ActiveMQ in Action - http://www.manning.com/snyder/
Blog - http://www.nighttale.net


On Tue, Dec 1, 2009 at 5:56 PM, neillott &lt;neilmatthewlott@yahoo.com&gt; wrote:

&gt;
&gt; Hi,
&gt;
&gt; I know this question was posted earlier, but can anyone help here?
&gt;
&gt; http://old.nabble.com/slow-KahaDB-access-td26172918.html#a26216649
&gt;
&gt; I'm seeing this in my activemq log:
&gt;
&gt; 2009-12-01 09:29:08,690 | INFO  | Slow KahaDB access: cleanup took 9789 |
&gt; org.apache.activemq.store.kahadb.MessageDatabase | ActiveMQ Journal
&gt; Checkpoint Worker
&gt; 2009-12-01 09:30:36,376 | INFO  | Slow KahaDB access: cleanup took 1298 |
&gt; org.apache.activemq.store.kahadb.MessageDatabase | ActiveMQ Journal
&gt; Checkpoint Worker
&gt; 2009-12-01 09:47:18,871 | INFO  | Slow KahaDB access: cleanup took 14058 |
&gt; org.apache.activemq.store.kahadb.MessageDatabase | ActiveMQ Journal
&gt; Checkpoint Worker
&gt;
&gt; When I benchmark the box I'm seeing this:
&gt;
&gt; [myserver] /usr/local/neil/activemq &gt; java -classpath lib/kahadb-5.3.0.jar
&gt; org.apache.kahadb.util.DiskBenchmark
&gt; Benchmarking: /usr/local/neil/activemq/disk-benchmark.dat
&gt; Writes:
&gt;  128000 writes of size 4096 written in 18.521 seconds.
&gt;  6911.0737 writes/second.
&gt;  26.996382 megs/second.
&gt;
&gt; Sync Writes:
&gt;  57936 writes of size 4096 written in 10.001 seconds.
&gt;  5793.0205 writes/second.
&gt;  22.628986 megs/second.
&gt;
&gt; Reads:
&gt;  1960651 reads of size 4096 read in 10.001 seconds.
&gt;  196045.5 writes/second.
&gt;  765.80273 megs/second.
&gt;
&gt;
&gt; What exactly do I need to do to get rid of the slow kahadb access messages?
&gt;
&gt; Thanks,
&gt;
&gt; Neil
&gt; --
&gt; View this message in context:
&gt; http://old.nabble.com/Slow-KahaDB-access-tp26594249p26594249.html
&gt; Sent from the ActiveMQ - User mailing list archive at Nabble.com.
&gt;
&gt;


</pre>
</div>
</content>
</entry>
<entry>
<title>Re: How do I remove a queue in an embedded broker without having it	listen on a tcp/ip port?</title>
<author><name>Dejan Bosanac &lt;dejan@nighttale.net&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/activemq-users/200912.mbox/%3c36e91d9d0912020336ha7e8942h9f07326c6e15949e@mail.gmail.com%3e"/>
<id>urn:uuid:%3c36e91d9d0912020336ha7e8942h9f07326c6e15949e@mail-gmail-com%3e</id>
<updated>2009-12-02T11:36:06Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi,

you can specify createConnector=false on a management context and in that
way you can only access JMX from the local machine (no ports will be open).
Jconsole will see this process nicely, but you'll have to use Sun JDK to
access JMX API exposed in this way.

Cheers
--
Dejan Bosanac - http://twitter.com/dejanb

Open Source Integration - http://fusesource.com/
ActiveMQ in Action - http://www.manning.com/snyder/
Blog - http://www.nighttale.net


On Tue, Dec 1, 2009 at 6:18 PM, Fred Moore &lt;fred.moore77@gmail.com&gt; wrote:

&gt; Hi folks,
&gt; I have a completely embedded broker instance running in the same JVM as my
&gt; JMS applications, all applications use a VM transport connector so the
&gt; "TCP/IP footprint" (i.e. used ports) of this system is currently zero.
&gt;
&gt; Now my additional requirement is to be able to remove some [unused] broker
&gt; queues programmatically via a new service application running in the same
&gt; JVM as the broker.
&gt;
&gt; Is there a way of performing this simple operation without having my broker
&gt; listening on a TCP/IP port (and consequently introducing the need for
&gt; locking down admin access with security credentials management etc)?
&gt;
&gt; For instance this wiki
&gt; http://activemq.apache.org/how-do-i-delete-a-destination.html points to
&gt; JMX
&gt; which -- AFAIK -- requires listening on TCP/IP to start with.
&gt;
&gt; I'm I missing something obvious here?
&gt; Thanks in advance.
&gt; Cheers,
&gt; F.
&gt;


</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Producer flow control and hard lockup of 5.3.0</title>
<author><name>Gary Tully &lt;gary.tully@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/activemq-users/200912.mbox/%3c3a73c17c0912020335t11bc91bbm5760778e1a892390@mail.gmail.com%3e"/>
<id>urn:uuid:%3c3a73c17c0912020335t11bc91bbm5760778e1a892390@mail-gmail-com%3e</id>
<updated>2009-12-02T11:35:18Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
stock activemq.xml should be fine. The client ack in the tests is because
the limits are such that only one message can fit in the queue so that the
ack behavior is exactly deterministic w.r.t memory usage.
JMX instrumentation will help. Use jconsole and when the queue is drained,
what does the Broker say w.r.t to memory usage and for the queue w.r.t
cursor memory usage. Both should go to 0. If they are not at zero you may be
experiencing some of the known issues that effect memory management
accounting w.r.t the file based cursor in 5.3.0 that have been resolved on
trunk. If this is the case, I would recommend trying  a run with the latest
5.4-SNAPSHOT and if that shows the problem to progress to opening an issue
and attaching your test case.


2009/12/2 Geir Magnusson Jr. &lt;geir@pobox.com&gt;

&gt; Thanks for the response.
&gt;
&gt; On Dec 2, 2009, at 4:38 AM, Gary Tully wrote:
&gt;
&gt; &gt; can you post your activemq.xml?
&gt;
&gt; It's as distributed in 5.3.0
&gt;
&gt; &gt; possibly compare you setup to what is known to work from the unit tests:
&gt; &gt; org.apache.activemq.ProducerFlowControlTest
&gt; &gt;
&gt; &gt;
&gt; http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/ProducerFlowControlTest.java?view=markup
&gt;
&gt;
&gt; Thx.  The only thing that jumps out at me is that
&gt;
&gt; a) I'm not ever calling setUseAsyncSend on the factory, but as my messages
&gt; are non-persistent, I don't know if it matters.  I can try it though,
&gt; although I'm loathe to just "try things" :)
&gt; b) I use auto ack rather than client ack.  Does that make a diff?
&gt;
&gt; I did try OpenMQ with the same code, and everything just worked - ran about
&gt; 10MM messages until I got bored. I would prefer to use ActiveMQ though.  Is
&gt; the fact I have a stock activemq.xml relevant?  Is there any way I can ask
&gt; the broker what it thinks about the state of affairs when this happens?  any
&gt; verbose logging modes beyond the log message I mentioned?
&gt;
&gt; geir
&gt;
&gt;
&gt; &gt;
&gt; &gt; 2009/12/1 Geir Magnusson Jr. &lt;geir@pobox.com&gt;
&gt; &gt;
&gt; &gt;&gt; I'm doing some simple stress experiments and am able to lockup 5.3.0.  I
&gt; &gt;&gt; have a simple producer and consumer as described below.  The queue is
&gt; &gt;&gt; non-perstent, moving small text messages.  Flailing about, I've set my
&gt; &gt;&gt; producer window size to 1024000.
&gt; &gt;&gt;
&gt; &gt;&gt; Upshot is that I can flood the queue for about 250k to 300k messages
&gt; &gt;&gt; overall, and the producer eventually gets stopped.  THe consumer seems
&gt; to
&gt; &gt;&gt; get all of them, at least according to the console which shows 0
&gt; messages in
&gt; &gt;&gt; queue, eventually.
&gt; &gt;&gt;
&gt; &gt;&gt; At this point, the producer never starts again, and even bouncing the
&gt; &gt;&gt; producer doesn't get messages flowing again.  The only thing that works
&gt; is
&gt; &gt;&gt; bouncing the broker, but clearly that's a crappy solution.
&gt; &gt;&gt;
&gt; &gt;&gt; What am I doing wrong?
&gt; &gt;&gt;
&gt; &gt;&gt; geir
&gt; &gt;&gt;
&gt; &gt;&gt;
&gt; &gt;&gt;
&gt; &gt;&gt; Producer - single one, thread...
&gt; &gt;&gt;
&gt; &gt;&gt;       ActiveMQConnectionFactory factory = new
&gt; &gt;&gt; ActiveMQConnectionFactory("tcp://10.0.0.2:61616");
&gt; &gt;&gt;       factory.setProducerWindowSize(1024000);
&gt; &gt;&gt;
&gt; &gt;&gt;       Connection connection = factory.createConnection();
&gt; &gt;&gt;       connection.start();
&gt; &gt;&gt;
&gt; &gt;&gt;       Session session = connection.createSession(false,
&gt; &gt;&gt; Session.AUTO_ACKNOWLEDGE);
&gt; &gt;&gt;       Queue queue = session.createQueue("svc");
&gt; &gt;&gt;       MessageProducer producer = session.createProducer(queue);
&gt; &gt;&gt;       producer.setDeliveryMode(DeliveryMode.NON_PERSISTENT);
&gt; &gt;&gt;
&gt; &gt;&gt;       while(true) {
&gt; &gt;&gt;
&gt; &gt;&gt;           while(true) {
&gt; &gt;&gt;               TextMessage tm = session.createTextMessage(theMessage);
&gt; &gt;&gt;               producer.send(tm);
&gt; &gt;&gt;           }
&gt; &gt;&gt;       }
&gt; &gt;&gt;
&gt; &gt;&gt; That simply floods the queue with small text messages.
&gt; &gt;&gt;
&gt; &gt;&gt; On the consumer side, I have 15 threads, each of which does something
&gt; like
&gt; &gt;&gt; :
&gt; &gt;&gt;
&gt; &gt;&gt;       ActiveMQConnectionFactory factory = new
&gt; &gt;&gt; ActiveMQConnectionFactory(_brokerURL);
&gt; &gt;&gt;
&gt; &gt;&gt;       _connection = factory.createConnection();
&gt; &gt;&gt;       Session _session = _connection.createSession(false,
&gt; &gt;&gt; Session.AUTO_ACKNOWLEDGE);
&gt; &gt;&gt;
&gt; &gt;&gt;      Queue queue = _session.createQueue(name);
&gt; &gt;&gt;
&gt; &gt;&gt;      MessageConsumer consumer = _session.createConsumer(queue);
&gt; &gt;&gt;
&gt; &gt;&gt;      consumer.setMessageListener(new MessageHandlerAdapter(_session,
&gt; &gt;&gt; msgHandler));
&gt; &gt;&gt;
&gt; &gt;&gt; where my MessageHandlerAdapter has a pretty boring onMessage() method.
&gt; &gt;&gt;
&gt; &gt;&gt; Things go fine until I see the now-dreaded
&gt; &gt;&gt;
&gt; &gt;&gt; INFO | Usage Manager memory limit reached on queue://svc. Producers will
&gt; be
&gt; &gt;&gt; throttled to the rate at which messages are removed from this
&gt; destination to
&gt; &gt;&gt; prevent flooding it. See
&gt; &gt;&gt; http://activemq.apache.org/producer-flow-control.html for more info
&gt; &gt;&gt;
&gt; &gt;&gt;
&gt; &gt;&gt;
&gt; &gt;&gt;
&gt; &gt;&gt;
&gt; &gt;
&gt; &gt;
&gt; &gt; --
&gt; &gt; http://blog.garytully.com
&gt; &gt;
&gt; &gt; Open Source Integration
&gt; &gt; http://fusesource.com
&gt;
&gt;


-- 
http://blog.garytully.com

Open Source Integration
http://fusesource.com


</pre>
</div>
</content>
</entry>
<entry>
<title>Adding Users/ Permissions to ActiveMQ in Runtime</title>
<author><name>Srinath Perera &lt;srinath@wso2.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/activemq-users/200912.mbox/%3cf8de7ee0912020216q30aa917bo120c891da4cf7de1@mail.gmail.com%3e"/>
<id>urn:uuid:%3cf8de7ee0912020216q30aa917bo120c891da4cf7de1@mail-gmail-com%3e</id>
<updated>2009-12-02T10:16:33Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi All;

I am trying to create a new secure Queue at the runtime, and provides
users access to that Queue in runtime, without restarting the ActiveMQ
broker. (And if possible add new users in runtime as well).

Is this possible? For example, is it possible to do this through JMX
console or is there something equivalent.

I also looked at http://activemq.apache.org/security.html, and If I
get that right, methods describe in the document need a restart of the
message broker?

Thanks very much
Srinath


-- 
============================
Srinath Perera, Ph.D.
   WSO2 Inc. http://wso2.com
   Blog: http://srinathsview.blogspot.com/


</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Producer flow control and hard lockup of 5.3.0</title>
<author><name>&quot;Geir Magnusson Jr.&quot; &lt;geir@pobox.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/activemq-users/200912.mbox/%3c83405999-EC99-43CE-B7E7-4CF1DE1ECF75@pobox.com%3e"/>
<id>urn:uuid:%3c83405999-EC99-43CE-B7E7-4CF1DE1ECF75@pobox-com%3e</id>
<updated>2009-12-02T09:52:56Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Thanks for the response.

On Dec 2, 2009, at 4:38 AM, Gary Tully wrote:

&gt; can you post your activemq.xml?

It's as distributed in 5.3.0

&gt; possibly compare you setup to what is known to work from the unit tests:
&gt; org.apache.activemq.ProducerFlowControlTest
&gt; 
&gt; http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/ProducerFlowControlTest.java?view=markup


Thx.  The only thing that jumps out at me is that 

a) I'm not ever calling setUseAsyncSend on the factory, but as my messages are non-persistent,
I don't know if it matters.  I can try it though, although I'm loathe to just "try things"
:)
b) I use auto ack rather than client ack.  Does that make a diff?

I did try OpenMQ with the same code, and everything just worked - ran about 10MM messages
until I got bored. I would prefer to use ActiveMQ though.  Is the fact I have a stock activemq.xml
relevant?  Is there any way I can ask the broker what it thinks about the state of affairs
when this happens?  any verbose logging modes beyond the log message I mentioned?

geir


&gt; 
&gt; 2009/12/1 Geir Magnusson Jr. &lt;geir@pobox.com&gt;
&gt; 
&gt;&gt; I'm doing some simple stress experiments and am able to lockup 5.3.0.  I
&gt;&gt; have a simple producer and consumer as described below.  The queue is
&gt;&gt; non-perstent, moving small text messages.  Flailing about, I've set my
&gt;&gt; producer window size to 1024000.
&gt;&gt; 
&gt;&gt; Upshot is that I can flood the queue for about 250k to 300k messages
&gt;&gt; overall, and the producer eventually gets stopped.  THe consumer seems to
&gt;&gt; get all of them, at least according to the console which shows 0 messages in
&gt;&gt; queue, eventually.
&gt;&gt; 
&gt;&gt; At this point, the producer never starts again, and even bouncing the
&gt;&gt; producer doesn't get messages flowing again.  The only thing that works is
&gt;&gt; bouncing the broker, but clearly that's a crappy solution.
&gt;&gt; 
&gt;&gt; What am I doing wrong?
&gt;&gt; 
&gt;&gt; geir
&gt;&gt; 
&gt;&gt; 
&gt;&gt; 
&gt;&gt; Producer - single one, thread...
&gt;&gt; 
&gt;&gt;       ActiveMQConnectionFactory factory = new
&gt;&gt; ActiveMQConnectionFactory("tcp://10.0.0.2:61616");
&gt;&gt;       factory.setProducerWindowSize(1024000);
&gt;&gt; 
&gt;&gt;       Connection connection = factory.createConnection();
&gt;&gt;       connection.start();
&gt;&gt; 
&gt;&gt;       Session session = connection.createSession(false,
&gt;&gt; Session.AUTO_ACKNOWLEDGE);
&gt;&gt;       Queue queue = session.createQueue("svc");
&gt;&gt;       MessageProducer producer = session.createProducer(queue);
&gt;&gt;       producer.setDeliveryMode(DeliveryMode.NON_PERSISTENT);
&gt;&gt; 
&gt;&gt;       while(true) {
&gt;&gt; 
&gt;&gt;           while(true) {
&gt;&gt;               TextMessage tm = session.createTextMessage(theMessage);
&gt;&gt;               producer.send(tm);
&gt;&gt;           }
&gt;&gt;       }
&gt;&gt; 
&gt;&gt; That simply floods the queue with small text messages.
&gt;&gt; 
&gt;&gt; On the consumer side, I have 15 threads, each of which does something like
&gt;&gt; :
&gt;&gt; 
&gt;&gt;       ActiveMQConnectionFactory factory = new
&gt;&gt; ActiveMQConnectionFactory(_brokerURL);
&gt;&gt; 
&gt;&gt;       _connection = factory.createConnection();
&gt;&gt;       Session _session = _connection.createSession(false,
&gt;&gt; Session.AUTO_ACKNOWLEDGE);
&gt;&gt; 
&gt;&gt;      Queue queue = _session.createQueue(name);
&gt;&gt; 
&gt;&gt;      MessageConsumer consumer = _session.createConsumer(queue);
&gt;&gt; 
&gt;&gt;      consumer.setMessageListener(new MessageHandlerAdapter(_session,
&gt;&gt; msgHandler));
&gt;&gt; 
&gt;&gt; where my MessageHandlerAdapter has a pretty boring onMessage() method.
&gt;&gt; 
&gt;&gt; Things go fine until I see the now-dreaded
&gt;&gt; 
&gt;&gt; INFO | Usage Manager memory limit reached on queue://svc. Producers will be
&gt;&gt; throttled to the rate at which messages are removed from this destination to
&gt;&gt; prevent flooding it. See
&gt;&gt; http://activemq.apache.org/producer-flow-control.html for more info
&gt;&gt; 
&gt;&gt; 
&gt;&gt; 
&gt;&gt; 
&gt;&gt; 
&gt; 
&gt; 
&gt; -- 
&gt; http://blog.garytully.com
&gt; 
&gt; Open Source Integration
&gt; http://fusesource.com



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Producer flow control and hard lockup of 5.3.0</title>
<author><name>Gary Tully &lt;gary.tully@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/activemq-users/200912.mbox/%3c3a73c17c0912020138o3290cf21i53880673f76d78dc@mail.gmail.com%3e"/>
<id>urn:uuid:%3c3a73c17c0912020138o3290cf21i53880673f76d78dc@mail-gmail-com%3e</id>
<updated>2009-12-02T09:38:14Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
can you post your activemq.xml?
possibly compare you setup to what is known to work from the unit tests:
org.apache.activemq.ProducerFlowControlTest

http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/ProducerFlowControlTest.java?view=markup

2009/12/1 Geir Magnusson Jr. &lt;geir@pobox.com&gt;

&gt; I'm doing some simple stress experiments and am able to lockup 5.3.0.  I
&gt; have a simple producer and consumer as described below.  The queue is
&gt; non-perstent, moving small text messages.  Flailing about, I've set my
&gt; producer window size to 1024000.
&gt;
&gt; Upshot is that I can flood the queue for about 250k to 300k messages
&gt; overall, and the producer eventually gets stopped.  THe consumer seems to
&gt; get all of them, at least according to the console which shows 0 messages in
&gt; queue, eventually.
&gt;
&gt; At this point, the producer never starts again, and even bouncing the
&gt; producer doesn't get messages flowing again.  The only thing that works is
&gt; bouncing the broker, but clearly that's a crappy solution.
&gt;
&gt; What am I doing wrong?
&gt;
&gt; geir
&gt;
&gt;
&gt;
&gt; Producer - single one, thread...
&gt;
&gt;        ActiveMQConnectionFactory factory = new
&gt; ActiveMQConnectionFactory("tcp://10.0.0.2:61616");
&gt;        factory.setProducerWindowSize(1024000);
&gt;
&gt;        Connection connection = factory.createConnection();
&gt;        connection.start();
&gt;
&gt;        Session session = connection.createSession(false,
&gt; Session.AUTO_ACKNOWLEDGE);
&gt;        Queue queue = session.createQueue("svc");
&gt;        MessageProducer producer = session.createProducer(queue);
&gt;        producer.setDeliveryMode(DeliveryMode.NON_PERSISTENT);
&gt;
&gt;        while(true) {
&gt;
&gt;            while(true) {
&gt;                TextMessage tm = session.createTextMessage(theMessage);
&gt;                producer.send(tm);
&gt;            }
&gt;        }
&gt;
&gt; That simply floods the queue with small text messages.
&gt;
&gt; On the consumer side, I have 15 threads, each of which does something like
&gt; :
&gt;
&gt;        ActiveMQConnectionFactory factory = new
&gt; ActiveMQConnectionFactory(_brokerURL);
&gt;
&gt;        _connection = factory.createConnection();
&gt;        Session _session = _connection.createSession(false,
&gt; Session.AUTO_ACKNOWLEDGE);
&gt;
&gt;       Queue queue = _session.createQueue(name);
&gt;
&gt;       MessageConsumer consumer = _session.createConsumer(queue);
&gt;
&gt;       consumer.setMessageListener(new MessageHandlerAdapter(_session,
&gt; msgHandler));
&gt;
&gt; where my MessageHandlerAdapter has a pretty boring onMessage() method.
&gt;
&gt; Things go fine until I see the now-dreaded
&gt;
&gt; INFO | Usage Manager memory limit reached on queue://svc. Producers will be
&gt; throttled to the rate at which messages are removed from this destination to
&gt; prevent flooding it. See
&gt; http://activemq.apache.org/producer-flow-control.html for more info
&gt;
&gt;
&gt;
&gt;
&gt;


-- 
http://blog.garytully.com

Open Source Integration
http://fusesource.com


</pre>
</div>
</content>
</entry>
</feed>
