Re: ActiveMQ integration with existing J2EE project

2017-10-18 Thread echuang
Adding some information, i not familiar with ActiveMQ on SpringBoot, but in J2EE, there is a annotation to specified the connection factory JNDI name. e.g @MessageDriven( mappedName = "jms/notifierQueue", activationConfig = { @ActivationConfigProperty( propertyName = "connectionFactoryJndiNam

Re: org.apache.activemq.SERIALIZABLE_PACKAGES property affecting Map Messages

2017-10-18 Thread Tim Bain
The default value of that property (if it's not set) is "java.lang,javax.security,java.util,org.apache.activemq,org.fusesource.hawtbuf,com.thoughtworks.xstream.mapper" (see ClassLoadingAwareObjectInputStream.java), and the org.fusesource.hawtbuf class in question looks like a UTF8Buffer since that'

Re: Clustering ActiveMQ in an Amazon ECS/Docker/Weave environment

2017-10-18 Thread Tim Bain
Leave the transportConnector's uri property alone as the original value of tcp://0.0.0.0:61618; that's the IP for brokers to use when talking to each other, but doesn't play when they're finding out about one another. The way this is supposed to work (follow along at https://github.com/apache/acti

Re: Topics working, queues aren't

2017-10-18 Thread fhenskens
Looking at ActiveMQ.Advisory.Producer.Queue.CommandQueue, EnqueueCount is 4, DispatchCount is 0, DequeueCount is 0. EnqueueCount increments as more messages are sent. Looking at ActiveMQ.Advisory.Consumer.Queue.CommandQueue, EnqueueCount is 1, DispatchCount is 0, DequeueCount is 0. These values ne

Re: Topics working, queues aren't

2017-10-18 Thread fhenskens
Monitoring in JMX, EnqueueCounter is 0, DequeueCounter is 0, ConsumedCount is 0. I can set a breakpoint and watch producers. Debugging, I can see my producer appear, say it's sent one message, and disappear. The consumer never consumes anything - never says it has anything waiting to be processed.

Re: Kahadb index updates taking too much time on ActiveMQ 5.11

2017-10-18 Thread Tim Bain
Sorry for the delay in responding. I've got a number of follow-up questions/suggestions: 1. Can you take screenshots sorted by all four non-percentage columns (Self Time, Self Time (CPU), Total Time, Total Time (CPU))? The ones with CPU measure CPU time, while the ones without measure to

Re: Running several instances of ActiveMQ behind a proxy/load balancer

2017-10-18 Thread Tim Bain
I've used ActiveMQ and AWS ELBs, but not the two together, so this response is based solely on what I know about the two products and on prior posts on this mailing list. I don't believe you'll be able to make this work using AWS ELBs. As you said, ELBs have a pretty simple model of unhealthy inst

Re: Message redelivery when producer broker killed (without persistence)

2017-10-18 Thread Tim Bain
ActiveMQ 5.x allows messages to be delivered to local consumers over remote ones via the decreaseNetworkConsumerPriority property as described at http://activemq.apache.org/networks-of-brokers.html. JMSXGroupID will not achieve this goal for the reasons you described. Also, I dispute your claim th

Re: SQL Server Error - Cannot load JDBC driver class

2017-10-18 Thread Tim Bain
>From the logs, it looks like it's failing to drop the primary key and then failing to create it (because it failed to drop it). For now let's assume that we're ending up in a good place (the table exists, the index exists), though we may have to reexamine that assumption if we find evidence of pro

Re: SQL Server Error - Cannot load JDBC driver class

2017-10-18 Thread Tim Bain
The StackOverflow post I got it from indicated that Microsoft may have changed their package structure at some point, so the correct package may be tied to which version of the JAR you use. But I don't have any more info than that. On Oct 18, 2017 6:32 AM, "ubaid" wrote: > that was hell of an an

Cleanup Pending messages using JMX remove message

2017-10-18 Thread Hitesh
Hi all, I have a very peculiar and weird usecase with ActiveMQ 5.13 I have two durable subscribers listening on a *topic*. When a particular event occurs, I have to invalidate the messages and remove them from the topic. To do this, I'm using JMX connection and browsing on the topic and then fr

Re: Clustering ActiveMQ in an Amazon ECS/Docker/Weave environment

2017-10-18 Thread Jeroen van Ooststroom
Hi all, I tried with the latest ActiveMQ 5.15.1 as well, but I unfortunately get the same result: it still won't do the automatic clustering, while locally using VMs this still works. Thanks, Jeroen... -- Sent from: http://activemq.2283324.n4.nabble.com/ActiveMQ-User-f2341805.html

Re: Artemis - Cannot get scheduled messages to work with AMQP and Topic

2017-10-18 Thread Matthias Hanisch
Ok. I misinterpreted the explanations in "Protocols and Interoperability / AMQP scheduling message delivery". By the way: the section "Scheduled Messages" suggests using property _AMQ_SCHED_DELIVERY which has no effect at all. At least not with AMQP. Thanks for clarification, Matthias 2017-10-18

Topics working, queues aren't

2017-10-18 Thread fhenskens
Hi, I'm using ActiveMQ 5.14.3 in TomEE 7.0.3 I've migrated an old EE app from weblogic to TomEE. The Topic setup is working perfectly, including message selectors and forwarding between topics. Debugging, the queue isn't exceptioning out when sending messages, however the consumer isn't actuall

Re: Artemis - Cannot get scheduled messages to work with AMQP and Topic

2017-10-18 Thread Timothy Bish
On 10/18/2017 11:09 AM, Matthias Hanisch wrote: This seems to be a qpid problem. I debugged through the code and my delivery time above gets overwritten. Currently you can only set it using producer.setDeliveryDelay(6); And then scheduled messages work. So sorry for the noise.

Re: Artemis - Cannot get scheduled messages to work with AMQP and Topic

2017-10-18 Thread Matthias Hanisch
This seems to be a qpid problem. I debugged through the code and my delivery time above gets overwritten. Currently you can only set it using producer.setDeliveryDelay(6); And then scheduled messages work. So sorry for the noise. 2017-10-18 15:49 GMT+02:00 Matthias Hanisch : > Hi

Artemis - Cannot get scheduled messages to work with AMQP and Topic

2017-10-18 Thread Matthias Hanisch
Hi, I would like to send a message deferred on a topic (multicast address), but my problems is that the listener immediately receives the message. The producer is build based on qpid-jms-client 0.25. I have tried to set JMSDeliveryTime and/or _AMQ_SCHED_DELIVERY messsage property in the following

Re: SQL Server Error - Cannot load JDBC driver class

2017-10-18 Thread ubaid
Tim, Can you help me a little bit more: With the same configuration and with the change you told me earlier the connection has been made, the tables are created but I still got an error as follow: Could not create JDBC tables; they could already exist. Failure was: ALTER TABLE ACTIVEMQ_ACKS DROP P

Re: SQL Server Error - Cannot load JDBC driver class

2017-10-18 Thread ubaid
that was hell of an answer Thank you so much. -- Sent from: http://activemq.2283324.n4.nabble.com/ActiveMQ-User-f2341805.html

Re: SQL Server Error - Cannot load JDBC driver class

2017-10-18 Thread Tim Bain
Does that JAR contain a class named com.microsoft.jdbc.sqlserver.SQLServerDriver as you specified in your config file? Or is it actually com.microsoft.sqlserver.jdbc.SQLServerDriver? Tim On Oct 18, 2017 2:37 AM, "ubaid" wrote: > Following are my configurations for SQL server: > >

SQL Server Error - Cannot load JDBC driver class

2017-10-18 Thread ubaid
Following are my configurations for SQL server: com.microsoft.jdbc.sqlserver.SQLServerDriver jdbc:microsoft:sqlserver://localhost:1433;DatabaseName=activedb sa pass@word1 true