Re: Fully programmatic authorization map

2010-05-21 Thread Dejan Bosanac
Hi Jim, it can be set of any objects you need. The only thing is that they can be matched using equals() method. Take a look at SecurityContext.isInOneOf() method, which is used for authorization purposes. For example JaasSecurityContext is dealing with Subject objects set by JaasAuthenticationBro

Re: Broker to Broker authentication using JAAS fails

2010-05-21 Thread Jim Lloyd
James, I seem to have made a break through. I found that the broker1 & broker2 configuration that you referenced are located in activemq-parent-5.3.2/activemq-core/src/test/resources/org/apache/activemq/security, and after I modified my code to be as close as possible to that configuration, the U

[ANNOUNCE] Apache.NMS.ActiveMQ v1.3.0 Released

2010-05-21 Thread Timothy Bish
Hello The Apache.NMS.ActiveMQ 1.3.0 Release bundle is now available at the following location: This release is based on the Apache.NMS API v1.3.0 and runs on .NET frameworks 2.0+ and Mono 2.0+. Changes in this version include * Add

Re: ActiveMQ - JMX - Queue with "READ" access define

2010-05-21 Thread Dejan Bosanac
Hi Charles, this should be fixed with https://issues.apache.org/activemq/browse/AMQ-2516and JMX should have broker security context. Cheers -- Dejan Bosanac - http://twitter.com/dejanb Open Source Integration - http://fusesource.com/ ActiveMQ in Action - http://www.manning.com/snyder/ Blog - htt

Re: Broker to Broker authentication using JAAS fails

2010-05-21 Thread Jim Lloyd
James, Are you sure this should is fixed in 5.3.1? (You said fix in > 5.3.1, not >= 5.3.1). As it turns out I was using 5.3.0 for the client side (i.e. a 'spoke') for much of this week, but last night I started working on smaller test configuration running on one machine, and my script to start th

Re: How to handle fast producer when JMS timeout happens?

2010-05-21 Thread Gary Tully
I think u have it. for more info on the prefetch see: http://activemq.apache.org/what-is-the-prefetch-limit-for.html note that the Pending Message Limit Strategy are only for topics. With a queue, there is no discarding of messages, just expiry if that is specified on each message. On 21 May 20

Re: How to handle fast producer when JMS timeout happens?

2010-05-21 Thread easyl
thanks for the link! Some points I still cannot understand. What the PrefetchPolicy really means in the content with queue size? For example I use MDB as Consumer Producer - send -> (Queue) ---> MessageDrivenBean does the pre-fetch limit determine how many maximal messages can be sent to the que

Re: does ActiveMQ-CPP 3.x support JAAS Authentication

2010-05-21 Thread Timothy Bish
On Thu, 2010-05-20 at 02:21 -0700, jolly.Wang wrote: > the version : ActiveMQ 5.3.0, activemq-cpp 3.1.0 > > When I use a c++ client to connect the broker, the broker got these > exceptions: > > - > > java

ActiveMQ - JMX - Queue with "READ" access define

2010-05-21 Thread cmoulliard
Hi, I have been able to stop the vm:// connector created by ActiveMq 5.x and used by JMX/Jconsole to communicate with the broker simply by posting a message from JConsole on a queue defined with "READ" access Here is a part of the config :

Re: Finding out when client is offlin

2010-05-21 Thread Markus Schaber
Hi, Gary, Gary Tully wrote: > > If you register for consumer advisories, on your initial subscription, you > will get the current state replayed to you. > > The current state is also exposed via jmx. so you can code against the > mbeans to find existing consumers. Then use advisories or poll j

Re: How to handle fast producer when JMS timeout happens?

2010-05-21 Thread Gary Tully
have u read through: http://activemq.apache.org/slow-consumer-handling.html On 21 May 2010 14:25, easyl wrote: > > Geronimo 2.2 / AMQ 5.3 > > I have the following scenario > > producerA --send-->(Queue)--> consumerB > > The prodcerA sends JMS message continuously to consumerB, while consumerB

Re: Finding out when client is offlin

2010-05-21 Thread Gary Tully
If you register for consumer advisories, on your initial subscription, you will get the current state replayed to you. The current state is also exposed via jmx. so you can code against the mbeans to find existing consumers. Then use advisories or poll jmx to see changes. http://activemq.apache.or

How to handle fast producer when JMS timeout happens?

2010-05-21 Thread easyl
Geronimo 2.2 / AMQ 5.3 I have the following scenario producerA --send-->(Queue)--> consumerB The prodcerA sends JMS message continuously to consumerB, while consumerB can consume message slower than that producerA produces. (consumerB processes the message and has database operations.) To t

Re: Finding out when client is offlin

2010-05-21 Thread Markus Schaber
Hi, Gary Tully wrote: > > lots of the information in the advisories is stored in properties and > these > properties are not automatically mapped into the stomp message so most of > the information in the advisory is lost when it is consumed via stomp. > It may be an easy enough fix if you are

Re: Finding out when client is offlin

2010-05-21 Thread Gary Tully
lots of the information in the advisories is stored in properties and these properties are not automatically mapped into the stomp message so most of the information in the advisory is lost when it is consumed via stomp. It may be an easy enough fix if you are interested to have a go at a resolutio

Re: Finding out when client is offlin

2010-05-21 Thread Markus Schaber
Hi, Dejan, Dejan Bosanac wrote: > > the most natural way would be to use advisory messages ( > http://activemq.apache.org/advisory-message.html), but this is not yet > supported from Stomp (https://issues.apache.org/activemq/browse/AMQ-2098), > so you'd need to use Java to process this kind of

Re: ActiveMQ freeze

2010-05-21 Thread Christian Grobmeier
Hello all, we have meanwhile disconnected the master/slave configuration and are running on only one instance. However, we have the same problem. Two times in the middle of the night all consumers are gone and then message processing stops. Before we had the consumers still there but doing nothing