Re: JMSPriority and activeMQ

2010-07-26 Thread andrew . marlow
Yes, I reckon they should be int. Maybe setPriority should throw an exception if the input priority is out of range. Regards, Andrew Marlow Internet clark.obr...@ttmsolutions.com 26/07/2010 17:40 Please respond to users@activemq.apache.org To users@activemq.apache.org cc Subject Re: JMSP

When ActiveMQ does flush non persistent messages to disk

2010-07-26 Thread Denis Bazhenov
We have some administrative task, from time to time. For example, move database on another physical server etc. It's very easy when write to database in offloaded with ActiveMQ. We simply turn off the consumer updating database, move database, switching read to a new database, and finally, turning

Re: Having Duplicate message when using failover and networkConnector .

2010-07-26 Thread honno
I use the same test case to test the 5.4-SNAPSHOT and the 5.3.3-SNAPSHOT which both have the duplicate message. So it maybe a bug in the version 5.3.0 ,5.3.2,5.3.3-SNAPSHOT and 5.4-SNAPSHOT. Gary Tully wrote: > > can you try your test case against a 5.4-SNAPSHOT? > > On 26 July 2010 10:47,

Selector and payload

2010-07-26 Thread Jai_M
This might be a really stupid question but I had to get it cleared. I create a ActiveMQTextMessage with a simple string. ActiveMQTextMessage message = new ActiveMQTextMessage(); message.setJMSType("text"); message.setProperty("msgOpCode", "some_Op_code"); message.

How to secure ActiveMQ admin console, running inside JBoss

2010-07-26 Thread Hammad . Said
I am trying to secure ActiveMQ web console running inside JBoss. What is the best way of doing it? I have an activemq-web-console.war file that i have deployed on JBoss. The queue is running fine with the JBoss start up , but now I want to secure access to the admin console. Thanks! Hammad

Re: pyactivemq

2010-07-26 Thread Timothy Bish
On Mon, 2010-07-26 at 20:52 +0200, James Casey wrote: > On 26 July 2010 18:10:16 UTC+2, Neil Pritchard > wrote: > > Hi, > > > > I'm using activemq as an exchange and consumer of amqp messages in a > > distributed system that's written largely in python but has some java > > components, and a pyt

Re: pyactivemq

2010-07-26 Thread James Casey
On 26 July 2010 18:10:16 UTC+2, Neil Pritchard wrote: > Hi, > > I'm using activemq as an exchange and consumer of amqp messages in a > distributed system that's written largely in python but has some java > components, and a python stomp library for producing messages in the python > components

Re: Correct way to build a mesh of brokers

2010-07-26 Thread ripienaar
ripienaar wrote: > > The configs for 5.3.2 is not compatible with 5.4, I'd say that renders 5.4 > useless and I cannot test. Given the state of the documentation, it > really is an unresolvable issue at this point for me. > > The XML config seem to have a fairly random behavior wrt ordering,

Re: Correct way to build a mesh of brokers

2010-07-26 Thread ripienaar
ripienaar wrote: > > > > Gary Tully wrote: >> >> sorry, yes, having only half of them duplex will do it. I neglected to >> ask what version you have, in any event, the issue referenced in the >> last message (AMQ-2704) was recently resolved so you need to try a >> 5.4-SNAPSHOT to get the ben

Re: pyactivemq

2010-07-26 Thread cobrien
Neil, Are you aware of the pyactivemq project? http://code.google.com/p/pyactivemq/ Clark www.ttmsolutions.com ActiveMQ reference guide at http://bit.ly/AMQRefGuide neilpritchard wrote: > > Hi, > > I'm using activemq as an exchange and consumer of amqp messages in a > distributed syste

Re: master/slave status command

2010-07-26 Thread cobrien
Andrew, Could you satisfy your requirements using advisory messages to listen for the ActiveMQ.Advisory.MasterBroker notification to keep track of who is the master broker? http://activemq.apache.org/advisory-message.html Clark www.ttmsolutions.com ActiveMQ reference guide at http://bit.ly/A

Re: JMSPriority and activeMQ

2010-07-26 Thread cobrien
Andrew, What is your suggestion that would work in the unsigned java world. I guess the getPriority and setPriority are required by the spec to be int primitive types. Clark www.ttmsolutions.com ActiveMQ reference guide at http://bit.ly/AMQRefGuide andrew.marlow wrote: > > Hello, > > It l

Re: Correct way to build a mesh of brokers

2010-07-26 Thread ripienaar
Gary Tully wrote: > > sorry, yes, having only half of them duplex will do it. I neglected to > ask what version you have, in any event, the issue referenced in the > last message (AMQ-2704) was recently resolved so you need to try a > 5.4-SNAPSHOT to get the benefit. > I am on 5.3.2, will try

message filtering via ajax in 5.4?

2010-07-26 Thread Alex Dean
In 5.4, will ajax clients be able to specify per-subscription filtering rules when subscribing to topics? I don't see any obvious support for this in the 5.4-SNAPSHOT amq.js code, but maybe I'm missing it. Would be very helpful to have, and I'd be happy to work on the JavaScript side of t

Re: Correct way to build a mesh of brokers

2010-07-26 Thread Gary Tully
sorry, yes, having only half of them duplex will do it. I neglected to ask what version you have, in any event, the issue referenced in the last message (AMQ-2704) was recently resolved so you need to try a 5.4-SNAPSHOT to get the benefit. On 26 July 2010 17:10, ripienaar wrote: > > > > Gary Tull

pyactivemq

2010-07-26 Thread Neil Pritchard
Hi, I'm using activemq as an exchange and consumer of amqp messages in a distributed system that's written largely in python but has some java components, and a python stomp library for producing messages in the python components. ActiveMQ seems to be far superior to anything else that I could

Re: Correct way to build a mesh of brokers

2010-07-26 Thread ripienaar
Gary Tully wrote: > > you need to turn duplex off or only create the bridges from one > broker. With your config, where every broker is connected to every > other broker, duplex=true causes every broker to be connected twice to > every other broker! > > duplex is handy in a hub-spoke topology

Re: Correct way to build a mesh of brokers

2010-07-26 Thread Gary Tully
you need to turn duplex off or only create the bridges from one broker. With your config, where every broker is connected to every other broker, duplex=true causes every broker to be connected twice to every other broker! duplex is handy in a hub-spoke topology where the spoke initiates the forwar

Re: J2ME ActiveMQ Client

2010-07-26 Thread Joe Fernandez
Looks like Ian was working on this back in '06 using STOMP. http://markmail.org/message/eahnrljkyemqvuag Joe http://www.ttmsolutions.com ActiveMQ reference guide at http://bit.ly/AMQRefGuide newphoenix wrote: > > Hi > Is there any J2ME library to connect and start using ActiveMQ as Client

Re: Correct way to build a mesh of brokers

2010-07-26 Thread ripienaar
Gary Tully wrote: > > ok, so you need to set networTTL=2 for your 3 broker mesh (two hops > will get to any broker) and enable audit for your topics by explicitly > setting a topic destination policy. > See the relevant test case: testAllConnectedBrokerNetworkSingleProducerTTL > in > http://sv

Re: CLASSPATH 5.3.2 and 5.3.0 ?

2010-07-26 Thread Eric-AWL
YES ! Thank you. Eric-AWL Gary Tully wrote: > > I guess I should have pointed you at > http://www.mail-archive.com/users@activemq.apache.org/msg16102.html > which is more in context. > > On 26 July 2010 14:08, Eric-AWL wrote: >> >> I don't use shutdownhook nor servicemix at all. This proble

JMSPriority and activeMQ

2010-07-26 Thread andrew . marlow
Hello, It looks to me like ActiveMQ uses a byte to hold the message priority and treats it as a signed integer. This makes the range -127 to +128. According to page 34, section 3.4.10 of the JMS spec, priorities are in the range 0 to 9. I have also found that IBMs MQSeries, which offers a JMS

Re: CLASSPATH 5.3.2 and 5.3.0 ?

2010-07-26 Thread Gary Tully
I guess I should have pointed you at http://www.mail-archive.com/users@activemq.apache.org/msg16102.html which is more in context. On 26 July 2010 14:08, Eric-AWL wrote: > > I don't use shutdownhook nor servicemix at all. This problem appears when my > program wants to instantiate an embedded bro

Re: CLASSPATH 5.3.2 and 5.3.0 ?

2010-07-26 Thread Eric-AWL
I don't use shutdownhook nor servicemix at all. This problem appears when my program wants to instantiate an embedded broker. Why don't I experiment this problem on my 5.3.2 own JUNIT tests (AMQ-2775) ? I imagine that one of the JUnit test permits to validate an external xml file configuration an

Re: CLASSPATH 5.3.2 and 5.3.0 ?

2010-07-26 Thread Gary Tully
That osgi dependency was inadvertently added in 5.3.2 but it has been resolved for 5.4 such that osgi is again optional. see: https://issues.apache.org/activemq/browse/AMQ-2574 On 26 July 2010 12:28, Eric-AWL wrote: > > Hi > > I use an activemq.xml file to configure my brokers (embedded or not).

Re: Correct way to build a mesh of brokers

2010-07-26 Thread Gary Tully
ok, so you need to set networTTL=2 for your 3 broker mesh (two hops will get to any broker) and enable audit for your topics by explicitly setting a topic destination policy. See the relevant test case: testAllConnectedBrokerNetworkSingleProducerTTL in http://svn.apache.org/viewvc/activemq/trunk/a

master/slave status command

2010-07-26 Thread Andrew Wasilczuk
Hi there, In a shared file system master/slave configuation is there an easy way to find out if a given broker is currently a master or slave? I tired using activemq-admin query, but it always shows Slave = false. I know it's possible to work it out from looking at the logs, however this method

CLASSPATH 5.3.2 and 5.3.0 ?

2010-07-26 Thread Eric-AWL
Hi I use an activemq.xml file to configure my brokers (embedded or not). When I use 5.3.0.5 fuse version, my CLASSPATH is /SIB/activemq-release/activemq-all-5.3.0.5-fuse.jar: /SIB/activemq-release/lib/commons-logging-1.1.jar: /SIB/activemq-release/lib/optional/xbean-spring-3.6.jar: /SIB/activem

Re: Correct way to build a mesh of brokers

2010-07-26 Thread ripienaar
Gary Tully wrote: > > set decreaseNetworkConsumerPriority=true because the topic duplicate > suppression logic depends on priority to remove a duplicate network > subscription. > Thanks for your reply, have tried this before, tried again now this is the setup from one of the 3:

Re: Having Duplicate message when using failover and networkConnector .

2010-07-26 Thread Gary Tully
can you try your test case against a 5.4-SNAPSHOT? On 26 July 2010 10:47, honno wrote: > > HI,all. > I use failover transport to connect to brokerA and brokerB.The brokerA and > brokerB use a networkConnector to connect each other. > > But i found the brokerA has a duplicate message when restart

Re: Correct way to build a mesh of brokers

2010-07-26 Thread Gary Tully
set decreaseNetworkConsumerPriority=true because the topic duplicate suppression logic depends on priority to remove a duplicate network subscription. On 24 July 2010 15:35, ripienaar wrote: > > I should also add that with the TTL set to 1 this works in the usual case > where everything is up, bu

J2ME ActiveMQ Client

2010-07-26 Thread newphoenix
Hi Is there any J2ME library to connect and start using ActiveMQ as Client from Mobile Application. If there isn't then how can i connect to activeMQ from my mobile application using J2ME Please Help needed. -- View this message in context: http://old.nabble.com/J2ME-ActiveMQ-Client-tp292650

Having Duplicate message when using failover and networkConnector .

2010-07-26 Thread honno
HI,all. I use failover transport to connect to brokerA and brokerB.The brokerA and brokerB use a networkConnector to connect each other. But i found the brokerA has a duplicate message when restart brokerA or brokerB. The test case as follow: (1)start brokerA,brokerB,start producer and consumer

Re: Storage utilisation not decreasing when memory utilisation reaches 70%

2010-07-26 Thread Pavel Moravec
I don't think so. See attached activemq.xml file. Gary Tully wrote: > > Is the advice from https://issues.apache.org/activemq/browse/AMQ-2834 > relevant to your use case? > > On 23 July 2010 15:32, Pavel Moravec wrote: >> >> Hello, >> we experience the following problem when using Active-MQ