Exception in createSesson() inside an EJB user transaction

2016-03-18 Thread THMayr
Hi, I get an exception creating a session in a MDB when the session is created inside a user transaction. The code sequence in the MDB looks like this: connectionFactory = (ConnectionFactory) environmentContext.lookup("jms/ConnectionFactory"); ejbContext = (MessageDrivenContext) initial

Re: ActiveMQ Object Message to json transformation not working

2016-03-18 Thread Timothy Bish
On 03/16/2016 01:38 AM, xabhi wrote: Hi, I am having trouble sending a custom Object Message to a STOMP consumer with ActiveMQ v5.11.1 In Jconsole, I can see messages being dequeued by STOMP consumer but the subscription callback is never called. However note that if I send a simple string as

external ActiveMQ 5.13.2 + WildFly 9.0.2

2016-03-18 Thread zappee
Hi, I am preparing my first ActiveMQ environment with WildFly App Server. I would like to use ActiveMQ as a stand-alone server / external message broker. So I downloaded the latest version of ActiveMQ and ActiveMQ RAR, which is 5.13.2. According to the docs and guides what I have read I did tha

Cannot receive message via REST

2016-03-18 Thread Alexander Sviridov
Hello! I'm beginner user of ActiveMQ, and I use it via REST interface. I have no problem with posting messages in queues, but I'm probably missing something when receiving. I have 1 message in queue Site.Incoming, and I cannot receive it — getting 204 no content: 15:02 $ curl --raw -v -XGET "htt

Re: Message not redirected to DLQ when exception thrown by MDB

2016-03-18 Thread THMayr
Well, it's not my job to figure out who is responsibe for this error, as long as it is not my fault. I have to evaluate products for my customer. Consider also there is another difference between the WildFly/ActiveMQ and WebLogic/ActiveMQ configuration. In the Wildfly configuration, the ActiveMQ r

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

2016-03-18 Thread Derek Mahar
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, Christopher Shannon wrote: > There following security vulnerability was reported against Apache > ActiveMQ 5.13.0 and older versions

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

2016-03-18 Thread Derek Mahar
What might be the cause of the following UnsupportedOperationException that ActiveMQ 5.13.1 Web Console reports when I attempt to unsuccessfully purge the contents of a queue, but after browsing that same queue? URL sequence: http://0.0.0.0:8161/admin/browse.jsp?JMSDestination=client.order.queue

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

2016-03-18 Thread Christopher Shannon
Currently this doesn't exist because Virtual destinations can only be set on start up or modified by a runtime plugin. (either the xml runtime plugin or the new java based one added in 5.13.0) There would need to be a new feature implemented to enable modification through JMX. On Wed, Mar 16, 201

Re: ActiveMQ Queue TTL

2016-03-18 Thread Tim Bain
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 headers are available to be set, and they will

Artemis Connection retry during initial connection

2016-03-18 Thread abhijith
Hi, I am trying to test initial connection factory retry attempts if connection is unsuccessful. To try this I purposefully did not enable SSL where as my server is setup for TLS communication. Please find below my code ActiveMQConnectionFactory cf = ActiveMQJMSClient.createConnectionFactoryW

Artemis REST Interface Installation in Wildfly

2016-03-18 Thread amorell
I am attempting to install the Artemis REST interface into a Wildfly domain and I am running into an issue. I am building the REST WAR file using the example POM supplied in the Artemis documentation "Installing Within Pre-configured Environment". However, when I attempt to install and assign t

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

2016-03-18 Thread Christopher Shannon
You can create a Jira for a feature request and if someone has time they can look at it. Contributions are also always welcome so if you have time you could take a look at creating a pull request to add the feature. If you were going to take a look at implementing it I would probably start with u

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

2016-03-18 Thread Derek Mahar
Yes, this helps. Though this console is "working as designed", I don't agree that the issue is "Not a Problem" or that the design is optimal. The browse page could use a back link or some directions instructing the user to press the "Queues" link to return to the queue list. On 17 March 2016 at

Re: Sending multiple files in a single message into messaging queue

2016-03-18 Thread Tim Bain
How about using an archive (tar, zip, 7z, etc.) to turn many files into one? On Mar 18, 2016 8:04 AM, "Subbu" wrote: > 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 o

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

2016-03-18 Thread khandelwalanuj
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: http://activemq.2283324.n4.nabble.com/AllowLin

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

2016-03-18 Thread Adel Boutros
Hello Christopher, In the way we will be using the broker, we would provide an API for clients to create these "redirections" between queues and topics on the fly. So this feature would be really useful as I know no other way of linking a queue to a topic. Regards, Adel Boutros Murex SAS www.mure

Re: Message not redirected to DLQ when exception thrown by MDB

2016-03-18 Thread THMayr
Hi Tim, in this case it is expected, because I wanted to provoke an exception, which is thrown by the container and not by the MDB code. I just wanted to see if the message is redirected in this case to the DLQ. But the effect is the same as when the exception is thown by /onMessage()/. The messag

Re: ActiveMQ Queue TTL

2016-03-18 Thread Timothy Bish
STOMP Message expiration in action: https://github.com/apache/activemq/blob/master/activemq-stomp/src/test/java/org/apache/activemq/transport/stomp/StompTest.java#L1810 On 03/18/2016 08:57 AM, shahbour wrote: If i got you correct , some headers on stomp are translated into JMSheaders , here the