Re: Help with xslt configuration

2010-06-11 Thread cobrien
It would be interesting to know what platform you are on. To have a cross-platform solution you may want to try using PropertyPlaceholderConfigurer to set a property for your activemq home. something like Clark http://www.ttmsolutions.com thiago wrote: > > Hi, > >I

Re: Priority message

2010-06-14 Thread cobrien
I can't say much not knowing your use cases but perhaps deploying a multiple queue architecture might meet your requirements better then relying on queue priority. see http://activemq.apache.org/producer-flow-control.html on flow control. The JMS spec does not require messages to be deliver

Re: Securing ActiveMQ 5.3.2 Web console

2010-06-15 Thread cobrien
I think you are missing a reference to the security handling in your list of handlers. Should be something like: http://bit.ly/AMQRefGuide vbose wrote: > > I tried to follow the steps mentioned at the URL > http://www.nighttale.net/activemq/securi

Re: Securing ActiveMQ 5.3.2 Web console

2010-06-15 Thread cobrien
://old.nabble.com/file/p28894803/jetty.xml jetty.xml http://old.nabble.com/file/p28894803/jetty-realm.properties jetty-realm.properties cobrien wrote: > > I think you are missing a reference to the security handling in your list > of handlers. > > > Should

Re: Securing ActiveMQ 5.3.2 Web console

2010-06-15 Thread cobrien
start and stop active mq broker > service. > > Vigil > > > > cobrien wrote: >> >> The attached files cause a browser authentication challenge on my >> machine. >> The jetty.xml is in apache-activemq-5.3.2 - NOT under conf >> and jetty-re

Re: online xml validation

2010-06-17 Thread cobrien
You can look into using Camel http://camel.apache.org/validation.html Clark www.ttmsolutions.com ingorfano wrote: > > Hi folks > > i have integrated Siebel with ActiveMQ. The xml has to be validated with > an xsd. Unfortunately Siebel is not able to do this validation internally. > How can i

Re: activemq.conf - import xml tags using XInclude

2010-06-25 Thread cobrien
Clark I am not quite clear on what you are trying to accomplish but spring does allow one to break up bean definitions into multiple files: The link below describes the syntax. http://static.springsource.org/spring/docs/3.0.x/spring-framework-reference/html/beans.html#beans-factory-xml-import

Re: ActiveMQ 5.3.2 transportConnector uri="tcp://0.0.0.0:61616"

2010-06-27 Thread cobrien
Richard, What happens if you ping 'localhost'? If you don't get a response verify that the line "127.0.0.1 localhost" is in your hosts file (etc/hosts). Clark www.ttmsolutions.com ActiveMQ reference guide at http://bit.ly/AMQRefGuide RichardWang wrote: > > Hi, > > I use ActiveM

Re: Consuming selective messages with multiple consumers, single queue (REST)

2010-06-27 Thread cobrien
ActiveMQ 5.4.0 and above supports selectors with REST. Clark www.ttmsolutions.com ActiveMQ reference guide at http://bit.ly/AMQRefGuide lokem wrote: > > Hi folks, > > I have 2 publishers submitting to a single queue. These 2 publishers also > act as consumers for the responses from a

Re: ActiveMQ 5.3.2 transportConnector uri="tcp://0.0.0.0:61616"

2010-06-28 Thread cobrien
er, I suspect this is a ActiveMQ 5.3.2 issue. > > Thanks, > Richard > > > cobrien wrote: >> >> Richard, >> What happens if you ping 'localhost'? If you don't get a response verify >> that the line "127.0.0.1 localhost" is in

Re: systemUsage in activeMQ.xml

2010-06-28 Thread cobrien
Radha The element is used to set the maximum amount of memory the broker will use. The element is used to set the maximum size of the message store used for non- persistent messages that overflow from memory awaiting dispatch. This overflow typically occurs when producer flow control has been d

Re: ActiveMQ mixes up order of messages while receiving them from Camel

2010-06-28 Thread cobrien
Hi, Can you describe a little more your Queue topology and configuration- perhaps even share your config file(s). Not all queue topologies are order preserving! -clark Clark www.ttmsolutions.com ActiveMQ reference guide at http://bit.ly/AMQRefGuide sonicBasher wrote: > > At the end of my c

Re: ActiveMQ 5.3.2 transportConnector uri="tcp://0.0.0.0:61616"

2010-06-28 Thread cobrien
Richard, It appears that the java method getLocalHost on the java class java.net.InetAddress , on which the transportConnector depends, can be ambiguous on linux. Its behavior is also dependent on the version of java you are using. The issue and solutions discussed below: http://bugs.sun.com/bu

Re: ActiveMQ mixes up order of messages while receiving them from Camel

2010-06-29 Thread cobrien
/www.springframework.org/schema/beans/spring-beans.xsd";> > > http://camel.apache.org/schema/spring";> > > > >org.foo.bar > > > > > > > > > >

Re: network of brokers question

2010-06-29 Thread cobrien
Ami, Well the nice thing about ActiveMQ is almost everything is configurable. >From your description I gather you have a requirement for high availability. If this is the only reason for using multiple brokers then using a master-slave would be simplify things for you. http://activemq.apach

Re: ActiveMQ mixes up order of messages while receiving them from Camel

2010-07-01 Thread cobrien
Message message = session.createTextMessage(x.toXML(eo)); > producer.send(message); > if (q == listOfMyObjects .size() - 1) { > session.commit(); > } > } > } > > > > regards > > > > >

Re: Slow producing of messages, expected behaviour?

2010-07-01 Thread cobrien
Matthias, If do not require guaranteed delivery to the broker you can set jms.useAsyncSend=true so the producer does not wait for an acknowledgement from the broker before sending the next message. The caveat here is that if message is lost between the producer and broker you will not be notifi

Re: problem related to reading multiple messages from the queue

2010-07-01 Thread cobrien
Yelei If DEFAULTWAITTIME expires then you will break out of your loop and not receive any messages unless you restart. Clark www.ttmsolutions.com ActiveMQ reference guide at http://bit.ly/AMQRefGuide savagre wrote: > > Hello guys, > > I've got a strange problem related to reading multipl

Re: Deploying the ActiveMQ demo apps in Tomcat

2010-07-01 Thread cobrien
Q/activemq-parent-5.3.2/activemq-web-demo/target/activemq-web-demo-5.3.2.war [INFO] [ianal:verify-legal-files {execution: default}] [INFO] Checking legal files in: activemq-web-demo-5.3.2.war [INFO] [install:install {execution: default-install}] [INFO] Installing /Users/cobrien/ActiveMQ/activemq-pa

Re: Slow producing of messages, expected behaviour?

2010-07-01 Thread cobrien
Matthias You can also look into using transactions to batch send messages which may improve performance. ActiveMQ has many tuning parameters so the more we know about your particular configuration the more suggestions can be made. www.ttmsolutions.com ActiveMQ reference guide at http://bit.

Re: Deploying the ActiveMQ demo apps in Tomcat

2010-07-01 Thread cobrien
Happy coding Clark www.ttmsolutions.com ActiveMQ reference guide at http://bit.ly/AMQRefGuide Tommy75 wrote: > > Thanks a million Clark, > Will try this > > cobrien wrote: >> >> Tommy, >> run 'mvn install' from the activemq-web-demo directo

Re: Debuging Activemq code

2010-07-01 Thread cobrien
Hi, For debugging you have two options remote debugging and in proc debugging. 1) enable remote debugging. Search for ACTIVEMQ_DEBUG_OPTS in your activemq start script and enable it. You may want to read up on remote debugging here: http://www.ibm.com/developerworks/library/os-ecbug/ 2) For in

Re: problem related to reading multiple messages from the queue

2010-07-03 Thread cobrien
terval defined by the wait time. But the messages in the queue is >>> really >>> small, like 5 or 6 lines of text; and I already increased the wait time >>> to >>> 10 seconds (1). When the code works, it's able to read exactly the >>> same >>&

Re: web service reliablility with CXF - MQ

2010-07-03 Thread cobrien
Dixit, The simple answer to your Question is no. You can achieve both reliability and secure messaging using OASIS standards alone. You should probably encrypt and sign the message and use a certificate to identify the sender. The following links provide good descriptions of the OASIS standards.

Re: Noob Questions - Fail-over / Redundancy Help.

2010-07-03 Thread cobrien
For Oracle, the master instance of ActiveMQ obtains a lock the database using a "select for update" SQL statement. It appears that when you pull the plug, the data store does not detect the stale connection in a timely enough fashion for your requirements. You can shorten the time needed to

Re: Noob Questions - Fail-over / Redundancy Help.

2010-07-06 Thread cobrien
179.html#a28222719 Is ActiveMQ not ready for production enterprise networks or is there a better method of implementing H.A.? cobrien wrote: > > For Oracle, the master instance of ActiveMQ obtains a lock the database > using a "select for update" SQL statement. > It a

Re: Strange behavior using failover and network of broker

2010-07-08 Thread cobrien
denis, if networkTTL="1", without a consumer consuming messages on BROKER1 messages will just accumulate. I would try after setting dynamicOnly=true on the network connectors. -Clark PS Which broker received the OOM error? www.ttmsolutions.com ActiveMQ reference guide at http://bit.ly

Re: Strange behavior using failover and network of broker

2010-07-10 Thread cobrien
www.ttmsolutions.com ActiveMQ reference guide at http://bit.ly/AMQRefGuide dbrondy wrote: > > > Hi Cobrien, and thanks for you answer, > > In my understanding, I set networkTTL equal to 1 because we need only one > hop to forward one produced message to a consumer,

Re: MS Sql server Master Slave problem

2010-07-12 Thread cobrien
Hi: Set useDatabaseLock=true. -Clark www.ttmsolutions.com ActiveMQ reference guide at http://bit.ly/AMQRefGuide test4john wrote: > > Client code start producing msg OK, but if stop broker A in the middle of > the loop (expect broker B will take over and continue to produce), > excepti

Re: MS Sql server Master Slave problem

2010-07-13 Thread cobrien
milli(s) before trying > again... > 2010-07-13 10:52:16,375 [Thread-2 ] INFO DefaultDatabaseLocker > - Failed to acquire lock. Sleeping for 1000 milli(s) before trying > again... > > > on both brokers. > > sqljdbc4.jar is used. Also the embedded a

Re: Avoiding confirmation when shutdown ActiveMQ ?

2010-07-20 Thread cobrien
Ben, This link below discusses your question in depth. http://superuser.com/questions/35698/how-to-supress-terminate-batch-job-y-n-confirmation BenXS wrote: > > When I shutdown ActiveMQ under Windows by hitting ctrl-C in the > CommandPrompt-Terminal-Window > then ActiveMQ prompts me always:

Re: question on ActiveMQ performance using 10GBP network card

2010-07-22 Thread cobrien
Jerry, There are several tuning params that can dramatically change the throughput. For starters I am wondering what your prefetch size is? do you use transactions? Can you provide your activemq.xml and let us know the size of the messages and average and worse case time required for a consume

Re: maven version for activemq

2010-07-25 Thread cobrien
java 1.5 and Maven 2.0.4 and above are recommended for building and running version 5.3.2 as you will find in the getting started guide under environment. http://activemq.apache.org/version-5-getting-started.html. -Clark www.ttmsolutions.com ActiveMQ reference guide at http://bit.ly/AMQRefG

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: 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: 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-27 Thread cobrien
if slave=false always it sounds like a bug to me. a similar bug was reported, AMQ-2669, that looks like this one and is reported fixed in 5.4.0. https://issues.apache.org/activemq/browse/AMQ-2669 -clark www.ttmsolutions.com ActiveMQ reference guide at http://bit.ly/AMQRefGuide Andrew Wasil

Re: 5.3.2 : Small question on transport binding

2010-07-27 Thread cobrien
Eric, On startup, the Broker does a reverse DNS lookup which is unpredictable across os versions especially with multihomed machines. Keep this in mind especially when making the assumption: "if "name" = "localhost" binding on localhost only => not visible for the rest of the network" -clark

Re: Selector and payload

2010-07-27 Thread cobrien
I don't think most providers read the JMS as exclusionary but anyway if you want to use only API provided by the JMS specifications then you can. The examples included with ActiveMQ provide examples on how to send messages using only the JMS standard API. -clark www.ttmsolutions.com Act

Re: Enable durable subscribers to receive previously published msgs

2010-07-31 Thread cobrien
Hi, The functionality you are describing is handled by a Retroactive Consumer and governed by Subscription Recovery Policy. You can read about these features at the links below. Be sure to read the limitations of retroactive consumers. http://activemq.apache.org/retroactive-consumer.html http://

Re: Enable durable subscribers to receive previously published msgs

2010-07-31 Thread cobrien
Hi,You explained it clearly but I will recap just to be sure. You have the following sequence of events. 1) create Topic. 2) persistent messages arrive in Topic. 3) ActiveMQ is bounced. 4) Durable subscriber subscribes to topic. I am assuming you are installing on cloud images (called AMI for Am