Re: NFS v4 locks "given up" w/o any logging?

2016-03-19 Thread James A. Robinson
Yes indeed there was a problem w/ the underlying NFS connection, logged at the OS level. It's funny, this service wasn't even under load when the timeout happened, so NFS is living up to my expectations already. So I could either lower the client side timeouts to fit within the 30 second lease, o

NFS v4 locks "given up" w/o any logging?

2016-03-19 Thread James A. Robinson
Is it common that an activemq broker might give up its NFS v4 lock w/o logging any sort of message? I've got two brokers that logged this: broker-a which held the log: 2016-03-17 15:01:51,113 [yMonitor Worker] WARN Transport - Transport Connection to: tcp://104.232.16.4:62269 failed: org.apac

Re: Artemis REST Interface Installation in Wildfly

2016-03-19 Thread amorell
Added the manifest entry in my pom and that did the trick. Thank you. -- View this message in context: http://activemq.2283324.n4.nabble.com/Artemis-REST-Interface-Installation-in-Wildfly-tp4709542p4709588.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Re: ActiveMQ 5.13.1 Web Console, purge message queue, UnsupportedOperationException (possible CSRF attack)

2016-03-19 Thread Derek Mahar
Please note that I encountered this exception when using Firefox 45.0 to access ActiveMQ Web Console. On 17 March 2016 at 11:44, Derek Mahar wrote: > What might be the cause of the following UnsupportedOperationException > that ActiveMQ 5.13.1 Web Console reports when I attempt to > unsuccessfull

Re: ActiveMQ Queue TTL

2016-03-19 Thread Tim Bain
I thought (assumed, I guess) STOMP was just the transfer protocol but that once the message made it to the broker it would be treated like any other message. So I had assumed you would set the same headers as for an OpenWire message, including JMSExpiration. Did I assume wrongly? On Mar 18, 2016

Re: Message content returns null occasionally from Virtual Topic to the consumer

2016-03-19 Thread Christopher Shannon
Can you create a new Jira for this and post your test case and log output to it? Based on your output there may be a race condition here that needs further investigation. On Tue, Mar 15, 2016 at 9:06 AM, Rohit Sonawat wrote: > I have also tested in 5.13.2 and issue is still exists. > I have a w

Re: 'AllowLinkStealing' does not work for TCP transport with leveldb persistent store

2016-03-19 Thread Timothy Bish
On 03/18/2016 06:31 AM, khandelwalanuj wrote: Hi, I am using ActiveMQv5.11.1 with levelDB replication. I want to use 'allowLinkStealing' option for TCP transport. I tried but it doesn;t seems to be removing old connections and adding new one. Thanks, Anuj -- View this message in context: ht

Re: NFS v4 locks "given up" w/o any logging?

2016-03-19 Thread James A. Robinson
Yes, the combination of settings in place right now could add up to 3 minutes: On the client side: nfsvers=4,proto=tcp, hard,timeo=600,retrans=2,ac,acregmin=3,acregmax=60,acdirmin=30,fg,retry=120, sharecache,lookupcache=all,cto So right now it's got a 60 second timeo value, and it will retry up

Re: Multiple virtual topics and messages routing to consumers

2016-03-19 Thread Nuno Oliveira
You're right the problem was the > wildcard ... thank you ! Le mercredi 16 mars 2016 à 08:03 -0600, Quinn Stevenson a écrit : > Looking at your sample, I think your destination name is causing you > problems. The “>” character is for pattern matching in the configs > and wildcard subscribers - I

Re: ActiveMQ Queue TTL

2016-03-19 Thread shahbour
Thanks i intercepted the message and added an expires header to the STOMP , ActiveMQ stomp doesn't support ttl right ? On Fri, Mar 18, 2016 at 4:38 AM Tim Bain [via ActiveMQ] < ml-node+s2283324n4709663...@n4.nabble.com> wrote: > Time to live must be set by the producer; I'm not aware of a built-i

Re: Configuring Virtual Destinations via Jolokia REST Api in ActiveMQ 5.13.2

2016-03-19 Thread Quinn Stevenson
Yes - the Camel route would be static, but you could use the recipient list EIP to dynamically determine where the messages are sent. http://camel.apache.org/recipient-list.html > On Mar 17, 2016, at 5:15 PM, Adel Boutros wrote: > > Hello Quinn, >

ActiveMQ Queue TTL

2016-03-19 Thread shahbour
Hello I want to set a default Time to live for all messages in a queue , is it possible and how BR Shahbour -- View this message in context: http://activemq.2283324.n4.nabble.com/ActiveMQ-Queue-TTL-tp4709580.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Re: Unable to set Jetty httpClient option

2016-03-19 Thread Tim Bain
This looks like a question for the Camel mailing list. On Mar 17, 2016 7:47 AM, "mluckam" wrote: > I am attempting to set my own httpClient in the url of the camel producer > but > it does not appear to be taking effect. Looking at the JettyHttpComponent > it appears that the endpoint options be

Re: ActiveMQ Queue TTL

2016-03-19 Thread Tim Bain
Time to live must be set by the producer; I'm not aware of a built-in way to set it from the broker. The one thing you might be able to do is use an embedded Camel route to set that attribute on each message as they are received by the broker, but I've never tried that so I can't promise it'll wor

Re: Configuring Virtual Destinations via Jolokia REST Api in ActiveMQ 5.13.2

2016-03-19 Thread Quinn Stevenson
Sorry - I was a little vague. I’d use a Camel route that called a bean to determine the recipient list. That bean would load it’s configuration from a file, DB or whatever you requirements are. The bean would also be able to update it’s configuration when the file changed. You could use anot

Re: Exception in createSesson() inside an EJB user transaction

2016-03-19 Thread THMayr
Add on: When I call createSession() with the following parameters, i get rid of the exception: session = connection.createSession (true, Session.AUTO_ACKNOWLEDGE); Both parameters should be ignored, when the method is called in an EJB container and a JTA transaction is active (see Connection.cr

Re: Configuring Virtual Destinations via Jolokia REST Api in ActiveMQ 5.13.2

2016-03-19 Thread Quinn Stevenson
You may be able to accomplish what you’re after using a Camel route embedded in the ActiveMQ broker. http://activemq.apache.org/broker-camel-component.html > On Mar 16, 2016, at 4:06 PM, Adel Boutros wrote: > > Hello Christopher, > > In

Re: ActiveMQ 5.13.1 Web Console, purge message queue, UnsupportedOperationException (possible CSRF attack)

2016-03-19 Thread Derek Mahar
I encounter the same exception using ActiveMQ 5.13.2 Web Console. On 17 March 2016 at 11:50, Derek Mahar wrote: > Please note that I encountered this exception when using Firefox 45.0 > to access ActiveMQ Web Console. > > On 17 March 2016 at 11:44, Derek Mahar wrote: >> What might be the cause o

Re: [ANNOUNCE] CVE-2016-0782: ActiveMQ Web Console - Cross-Site Scripting

2016-03-19 Thread Christopher Shannon
Thanks for pointing that out, I have fixed the announcement. On Thu, Mar 17, 2016 at 11:25 AM, Derek Mahar wrote: > The security advisory announcement claims that ActiveMQ 5.13.1 and > older versions are affected and that ActiveMQ 5.13.2 fixes the issues. > > On 10 March 2016 at 07:45, Christoph

Re: Configuring Virtual Destinations via Jolokia REST Api in ActiveMQ 5.13.2

2016-03-19 Thread Adel Boutros
Hello Quinn, Camel route is still a static way of doing it as I have to write it in Xml file. It doesn't suite my test case which requires "dynamic" route creation while the broker is running. Do you confirm this? Unless I have missed something. Just to compare with Artemis, for example, via Jolo

Re: Artemis REST Interface Installation in Wildfly

2016-03-19 Thread Justin Bertram
See the Wildfly documentation [1]. You can set a dependency in a WAR by specifying the module you want to depend on in the WAR's manifest.mf, e.g.: Dependencies: org.apache.activemq.artemis Justin [1] https://docs.jboss.org/author/display/WFLY10/Class+Loading+in+WildFly - Original Mess

Re: Artemis REST Interface Installation in Wildfly

2016-03-19 Thread Justin Bertram
All the dependencies exist, but you have to set the dependency in the WAR. Did you do that? Justin - Original Message - From: "amorell" To: users@activemq.apache.org Sent: Wednesday, March 16, 2016 4:56:06 PM Subject: Artemis REST Interface Installation in Wildfly I am attempting to

Re: Multiple virtual topics and messages routing to consumers

2016-03-19 Thread Quinn Stevenson
Looking at your sample, I think your destination name is causing you problems. The “>” character is for pattern matching in the configs and wildcard subscribers - I don’t think wildcard producers are supported. Can you try it with a different destination name? Anything other than “>”. My sam

Re: ActiveMQ Queue TTL

2016-03-19 Thread Tim Bain
I'd never noticed that option on the plugin; thanks for pointing it out! On Mar 18, 2016 6:57 AM, "Timothy Bish" wrote: > Take a look at the TimeStampPlugin which has an option to set a TTL on > messages that arrive without one. > http://activemq.apache.org/timestampplugin.html > > On 03/18/2016

Re: ActiveMQ Queue TTL

2016-03-19 Thread shahbour
If i got you correct , some headers on stomp are translated into JMSheaders , here they are http://activemq.apache.org/stomp.html specifically in *"Stomp extensions for JMS message semantics"* BR Shahbour On Fri, Mar 18, 2016 at 1:21 PM Tim Bain [via ActiveMQ] < ml-node+s2283324n4709675...@n4.na

Re: Configuring Virtual Destinations via Jolokia REST Api in ActiveMQ 5.13.2

2016-03-19 Thread Adel Boutros
Hello guys, There seem to be many possible ways of doing it. However, it seems a bit complex when you compare it to the way it is done in Qpid Java Broker or ActiveMQ Artemis for example: - Qpid Java broker: http://localhost:8080/api/latest/binding/topic/queue (+json request file for filte

Re: Exception in createSesson() inside an EJB user transaction

2016-03-19 Thread Tim Bain
I see java.lang.AbstractMethodError: org.apache.activemq.ra.ManagedConnectionProxy.createSession()Ljavax/jms/Session; in the logs, which implies that the version of that class at runtime is different than what you compiled against. (source: http://stackoverflow.com/questions/17969365/why-i-am-getti

Re: NFS v4 locks "given up" w/o any logging?

2016-03-19 Thread Tim Bain
I'd say it's more likely that either 1) NFS gave away the lock when it shouldn't have, or 2) network conditions were such that your master lost connectivity and NFS rightly allowed the slave to take it. In either case, useful logging could only come from your NFS server. Separately from the quest

Sending multiple files in a single message into messaging queue

2016-03-19 Thread Subbu
Hi, As part of requirement i need to send multiple files in a single message into messaging queue. Please help to suggest me if any way to achieve using blobmessage or any others. Thank you Regards Subbu -- View this message in context: http://activemq.2283324.n4.nabble.com/Sending-multip

Re: Message content returns null occasionally from Virtual Topic to the consumer

2016-03-19 Thread Rohit Sonawat
Thanks for your time I have created the JIRA issue and attached the sample java code and the log. This is the link of the issue -- View this message in context: http://activemq.2283324.n4.nabble.com/Message-content-returns-null-occ

Re: NFS v4 locks "given up" w/o any logging?

2016-03-19 Thread James A. Robinson
Lowering timeo on the client side doesn't appear to do jack to help with this situation. I'm reluctant to switch from "hard" to "soft" because of the warning that it can easily lead to corruption issues, but I do see some discussions where people say flipping to that mode helped them detect lost l

ActiveMQ 5.13.2 null transaction debug messages

2016-03-19 Thread Derek Mahar
What is the significance of the following messages? I've inherited an ActiveMQ client application that continuously repeats these messages. Are these normal? 2016-03-17 15:56:15.635 [DEBUG] [jmsContainer-1] [org.apache.activemq.ActiveMQMessageConsumer:739] remove: ID:derek-lubuntu-33602-14582436

Unable to set Jetty httpClient option

2016-03-19 Thread mluckam
I am attempting to set my own httpClient in the url of the camel producer but it does not appear to be taking effect. Looking at the JettyHttpComponent it appears that the endpoint options being set via the URL are extracted in the createEndpoint(String uri, String remaining, Map parameters) funct

Re: Exception in createSesson() inside an EJB user transaction

2016-03-19 Thread THMayr
.. some more thoughts: The MDB is in fact not compiled or linked against any concrete ActiveMQ classes. The MDB uses only the standard interfaces defined in the package javax.jms. I need the ActiveMQ client library in my developement project only to run a JUnit test, which sends and receives messa

Re: Configuring Virtual Destinations via Jolokia REST Api in ActiveMQ 5.13.2

2016-03-19 Thread Tim Bain
In non-embedded Camel, it's possible to define routes at runtime via the Java API; see for example http://nigap.blogspot.com/2012/02/camel-create-routes-dynamically.html?m=1 I'm not sure if it would work for an embedded Camel context, but it might. Tim On Mar 17, 2016 5:45 PM, "Quinn Stevenson"

Re: ActiveMQ Queue TTL

2016-03-19 Thread Timothy Bish
On 03/18/2016 09:41 AM, Tim Bain wrote: More fundamentally, I'm saying that I have always assumed that when a STOMP message comes to a broker, it's translated into a JMS message and it stays in that format until it is delivered to a STOMP consumer. If that's accurate, it means that all JMS heade

Re: ActiveMQ 5.13.1 Web Console, purge message queue, UnsupportedOperationException (possible CSRF attack)

2016-03-19 Thread Christopher Shannon
Take a look at the comments here and see if that helps you. https://issues.apache.org/jira/browse/AMQ-3425 I think it will also work in other browsers besides firefox. On Thu, Mar 17, 2016 at 12:09 PM, Derek Mahar wrote: > I encounter the same exception using ActiveMQ 5.13.2 Web Console. > > On