Re: ActiveMQ classic - no persistence but need lease-database-locker

2023-11-30 Thread Martin Lichtin
(store useless when non persistent). As persistent is a message property, you can keep the store just for the lease. Can you please create a Jira about that ? I can add something around that. Regards JB On Wed, Nov 29, 2023 at 9:19 AM Martin Lichtin wrote: I'd like to configure ActiveMQ

ActiveMQ classic - no persistence but need lease-database-locker

2023-11-29 Thread Martin Lichtin
I'd like to configure ActiveMQ classic for non-persistent messaging, with a database lease locker. How can this be done? Configuring        then at startup it says:    persistent="false", ignoring configured persistenceAdapter but the "lease-database-locker" must be configured inside:

ActiveMQ classic: failover: uri with ssl options - when to use 'nested'

2023-01-26 Thread Martin Lichtin
When configuring an ActiveMQ client connection, does this look reasonable: failover:(nio+ssl://1.2.8.2:61616,nio+ssl://1.2.8.3:61616)?randomize=false=false=TLSv1.2=TLS_RSA_WITH_AES_256_CBC_SHA256 Or do the socket options also need an additional "nested." prefix? I can unfortunately never

Re: ActiveMQ classic - ActiveMQConnection - Connect Response Timeout

2021-09-23 Thread Martin Lichtin
cp-transport-reference <https://activemq.apache.org/tcp-transport-reference>> > > Sounds like you want ‘client-side'> > > connectionTimeout> > soTimeout> > soWriteTimeout> > > Let us know how it goes!> > > -Matt> > > > On Sep 23,

ActiveMQ classic - ActiveMQConnection - Connect Response Timeout

2021-09-23 Thread Martin Lichtin
I can't seem to find any documentation on the configurable "connect response timeout" of an ActiveMQConnection. Believe it's used only in method ensureConnectionInfoSent() but still would like to understand it and also is the default value 0 reasonable or would it not make sense to configure

Re: Problem with Queue browsing when upgrading from 5.15.14 to 5.16.2

2021-05-02 Thread Martin Lichtin
Looks like I ran into changes https://issues.apache.org/jira/browse/AMQ-2659 and will need to adapt to it. On 01.05.2021 16:15, Martin Lichtin wrote: Hi Has anyone also noticed an issue with queue browsing with 5.16.2? It happens when using an XA connection and starting a session without

Problem with Queue browsing when upgrading from 5.15.14 to 5.16.2

2021-05-01 Thread Martin Lichtin
Hi Has anyone also noticed an issue with queue browsing with 5.16.2? It happens when using an XA connection and starting a session without a transaction context. This always worked fine but no longer does, instead one can see a exception, but only when debug log is turned on

Re: Server-side redelivery no longer working with 5.16.0/5.16.1

2021-02-28 Thread Martin Lichtin
Added a comment toAMQ-7298 on how to reproduce the issue: https://issues.apache.org/jira/browse/AMQ-7298?focusedCommentId=17292431=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-17292431 On 01.02.2021 16:41, Martin Lichtin wrote: It could be related to AMQ-7298 which

Re: Server-side redelivery no longer working with 5.16.0/5.16.1

2021-02-01 Thread Martin Lichtin
, Martin Lichtin a écrit : There's no exception, but the re-delivery no longer works. It's a server-side redelivery case, configuring the broker with the redeliveryPlugin

Re: Server-side redelivery no longer working with 5.16.0/5.16.1

2021-01-31 Thread Martin Lichtin
Let me try it on 5.16.1 (I didn’t see any issue but I might have missed it). Regards JB Le 27 janv. 2021 à 18:41, Martin Lichtin a écrit : Hi, has anything changed regarding server-side redelivery using the ? Going from 5.15.14 to 5.16.1, it seems to no longer work as expected. I see AMQ-7298 which may

Server-side redelivery no longer working with 5.16.0/5.16.1

2021-01-27 Thread Martin Lichtin
Hi, has anything changed regarding server-side redelivery using the ? Going from 5.15.14 to 5.16.1, it seems to no longer work as expected. I see AMQ-7298 which may contribute to a change in this area. - Martin

Connecting to ActiveMQ (classic) server with a browser

2020-12-02 Thread Martin Lichtin
There's something seemingly weird going on when connecting with a browser to the ssl-secured Openwire port of an ActiveMQ (classic) server. Using this Url: https://AMQ-HOST:OPENWIRE-PORT The browser sends off a GET request and after 30 seconds actually receives a response from ActiveMQ. The

Re: Re: ActiveMQ - low-level access control and rejecting connections

2020-09-08 Thread Martin Lichtin
wrote: Would a firewall rule be an option here? It seems like that would be the best tool to control access to the broker based on IP address. Or is your use-case more complex than that? Justin On Sun, Aug 30, 2020 at 2:19 PM Martin Lichtin wrote: Hi Looking at how to best implement IP-address

Re: Re: ActiveMQ - low-level access control and rejecting connections

2020-09-02 Thread Martin Lichtin
ActiveMQ version are you talking ? I remember to have fixed closing of connection in 5.15.13 AFAIR. Can you please create two Jira (one for the connect hook, one for connection leaking) ? I will take a look. Regards JB Le 30 août 2020 à 21:19, Martin Lichtin a écrit : Hi Looking at how to best

ActiveMQ - low-level access control and rejecting connections

2020-08-30 Thread Martin Lichtin
Hi Looking at how to best implement IP-address based access control via a Plugin. I've an implementation based on "addConnection", but this method is called way too late in the connection setup. Ideally there should be a hook available in TcpConnection.connect() method to reject rogue

activemq.xml - configuring SSL context

2020-03-25 Thread Martin Lichtin
Hi All Configuring the broker SSL context with           seems quite rigid and the password a security issue. Is there a better way to do this? I couldn't really find a solution looking at the XSD. For example, using a bean to offer the SSLContext   and then referring to it       

Re: RE: Is it possible to limit the storage in ActiveMQ ?

2020-03-07 Thread Martin Lichtin
Hi I've written a plugin for ActiveMQ that monitors disk space usage and that will close the connectors on low disk space (and re-open once disk space is again sufficient). Let me know know in case you are interested. - Martin On 02.03.2020 12:24, COURTAULT Francois wrote: Hello, I suppose

Re: Re: Unexpected DLQ behaviour with non-persistent messages

2020-02-05 Thread Martin Lichtin
mprovement. Regards JB On 03/02/2020 20:50, Martin Lichtin wrote: Hi JB, I have to disagree with this view. The JMS delivery mode should be honoured by ActiveMQ, it should not 'improve' or change the delivery mode in any way. There's no reason such a message should survive a broker re-start, i

Re: Re: Unexpected DLQ behaviour with non-persistent messages

2020-02-03 Thread Martin Lichtin
2020 17:35, Martin Lichtin wrote: Can somone help me understand why a non-persistent message is "converted" into a persistent message on entering DLQ? It happens in RegionBroker, around line 733:     if (!message.isPersistent()) {     m

Unexpected DLQ behaviour with non-persistent messages

2020-01-30 Thread Martin Lichtin
Can somone help me understand why a non-persistent message is "converted" into a persistent message on entering DLQ? It happens in RegionBroker, around line 733:     if (!message.isPersistent()) {     message.setPersistent(true);

JMSActiveMQBrokerInTime

2019-10-22 Thread Martin Lichtin
Hi, is this property still set by the broker server? I'm not seeing it when consuming a message.. at least not when using Camel JMS consumer. - Martin

Re: Re: DB lease lock - broker should stop-start to retry acquiring the lock

2019-03-10 Thread Martin Lichtin
/java-service-wrapper.html. Is that how you're using ActiveMQ? Or are you running the broker directly from the executable in the bin directory, which wouldn't use the wrapper (and so wouldn't restart the process)? Tim On Thu, Feb 28, 2019, 1:57 PM Martin Lichtin wrote: Hi Can you help me

DB lease lock - broker should stop-start to retry acquiring the lock

2019-02-28 Thread Martin Lichtin
Hi Can you help me understand this situation? I've ActiveMQ configured with a lease lock on a DB. Spontaneously it decided it can no longer keep the lock, and starts shutting down: 2019-02-27T16:47:45,491 | INFO  | Starting Thread | BrokerService  | he.activemq.broker.BrokerService 

Re: Re: Failover - send timeout not working

2017-04-30 Thread Martin Lichtin
blem. Tim On Apr 29, 2017 4:24 AM, "Martin Lichtin" <lich...@yahoo.com.invalid> wrote: I'm running into a situation with the Failover Transport not respecting the timeout that's been set. The symptom is endless messages of this kind: 2017-04-29 09:48:26,128 | TRACE | .engine.cfgengine.

Failover - send timeout not working

2017-04-29 Thread Martin Lichtin
I'm running into a situation with the Failover Transport not respecting the timeout that's been set. The symptom is endless messages of this kind: 2017-04-29 09:48:26,128 | TRACE | .engine.cfgengine.in]-11 | FailoverTransport | sport.failover.FailoverTransport 615 | 81 -

Use of Message Groups

2017-03-11 Thread Martin Lichtin
Wanted to ask some specifics about the "Message Groups" feature. * is the feature incurring an overhead to the broker processing? * would a large queue depth cause any issues? * there is a note about 'grouping in memory', does this mean messsages are somehow re-ordered? * would an ever

Shutdown problem with Master-Slave setup in Karaf/Osgi environment

2017-02-16 Thread Martin Lichtin
When running multiple brokers in master-slave(s) mode (KahaDB file), they behave as described: - The first broker grabs the exclusive lock on the file and becomes the master broker. - If that broker dies and releases the lock then another broker takes over. - The slave brokers sit in a loop

Re: Re: KahaDb issue (Detected missing journal files) when upgrading from 5.12.2 to 5.14.0

2016-10-06 Thread Martin Lichtin
The solution/workaround for us was to move away the 3 db.* files and let Kahadb start with only the journal files. It recreated the 'index' files and since then we're ok. On 05.10.2016 14:48, Tim Bain wrote: Martin Lichtin, did you ever resolve what was causing your problem, or how to work

Cannot start Activemq 5.14.0 in a Karaf OSGi container without internet access

2016-09-14 Thread Martin Lichtin
Hi After upgrading from a 5.12.x version to 5.14.0, it looks like ActiveMQServiceFactory, instantiating the Spring application context, has a problem accessing the Spring schema and resorts to trying to access the Internet. Any ideas what could have changed that's causing this unwanted remote

KahaDb issue (Detected missing journal files) when upgrading from 5.12.2 to 5.14.0

2016-09-01 Thread Martin Lichtin
When trying to upgrade from 5.12.2 to 5.14.0 we encounter this exception at startup: Caused by: java.io.IOException: Detected missing journal files. [3] at org.apache.activemq.store.kahadb.MessageDatabase.recoverIndex(MessageDatabase.java:978)[102:org.apache.activemq.activemq-osgi:5.14.0] at

Large amount of PageOverflowIOExceptions per second

2016-07-19 Thread Martin Lichtin
I see a large amount of PageOverflowIOExceptions being thrown (~ 60/sec) when producing messages. Is this to be expected or does this perhaps indicate an issue in the broker configuration? (note the exception doesn't bubble up, it is caught internally to handle a "split" situation.)

Re: Re: Performance issue in FilePendingMessageCursor.isEmpty()

2016-04-10 Thread Martin Lichtin
request! On Apr 9, 2016 11:51 AM, "Martin Lichtin" <lich...@yahoo.com.invalid> wrote: With a test sending 5000 messages to a queue, I see heavy CPU use on the broker side (v 5.12.2). Using Yourkit it shows that the hot spot methods are FilePendingMessageCursor.isEmpty() iterate

Performance issue in FilePendingMessageCursor.isEmpty()

2016-04-09 Thread Martin Lichtin
With a test sending 5000 messages to a queue, I see heavy CPU use on the broker side (v 5.12.2). Using Yourkit it shows that the hot spot methods are FilePendingMessageCursor.isEmpty() iterates over in-memory messages and therefore (as it is a prioritized queue) uses

Unresolved constraint in bundle activemq-karaf when trying to upgrade to AMQ 5.13.2

2016-04-01 Thread Martin Lichtin
I see org.osgi.framework.BundleException: Unresolved constraint in bundle activemq-karaf [124]: Unable to resolve 124.0: missing requirement [124.0] osgi.wiring.package; (&(osgi.wiring.package=org.apache.felix.gogo.commands)(version>=0.16.0)(!(version>=1.0.0))) when trying to upgrade ActiveMQ

Re: Configuring an IOExceptionHandler

2015-11-27 Thread Martin Lichtin
an the sum of the two limits, and allow nothing else to write to it.) Prevention is usually better than treatment. On Oct 14, 2015 4:36 AM, "Martin Lichtin" <lich...@yahoo.com.invalid> wrote: Wanted to ask if it is advisable to configure an IOExceptionHandler, such as

Re: What happens with JMSRedelivered when server moves message to DLQ

2015-11-16 Thread Martin Lichtin
this. > > Tim > On Nov 12, 2015 11:51 AM, "Martin Lichtin" <lich...@yahoo.com.invalid> > wrote: > >> I believe that branch is for transacted sessions (which I'm also using). >> If the test would use a transacted session, I'd say it no longer sees the

Re: What happens with JMSRedelivered when server moves message to DLQ

2015-11-12 Thread Martin Lichtin
(md, false);     }     } should also set md.setRollbackCause(e) in the else clause? - Martin From: Martin Lichtin <lich...@yahoo.com> To: Gary Tully <gary.tu...@gmail.com>; ActiveMQ Users <users@activemq.apache.org>

Re: Re: What happens with JMSRedelivered when server moves message to DLQ

2015-11-12 Thread Martin Lichtin
// next message. afterMessageIsConsumed(md, false); } } should also set md.setRollbackCause(e) in the else clause? - Martin ------ *From:* Martin Lichtin <lich...@yahoo.com> *To:* Gary Tully <gary.t

Re: What happens with JMSRedelivered when server moves message to DLQ

2015-11-04 Thread Martin Lichtin
ion threw. - Martin > > From: Gary Tully <gary.tu...@gmail.com> > To: Martin Lichtin <lich...@yahoo.com>; ActiveMQ Users > <users@activemq.apache.org> > Sent: Wednesday, November 4, 2015 11:52 AM > Subject: Re: What happ

What happens with JMSRedelivered when server moves message to DLQ

2015-11-03 Thread Martin Lichtin
I see the JMSRedelivered flag goes back to 'false' when # of redeliveries is exceeded and ActiveMQ server moving the message into the DLQ. Is this done on purpose? I'd rather expect the flag stay 'true', as this state should be preserved. - Martin

Enormous amount of db-xxx.log files in "scheduler" directory

2015-10-22 Thread Martin Lichtin
Can you help me understand what is stored in the "scheduler" directory? I see about 14G of db-xxx.log files sitting there. All queues are empty and also the kahadb directory contains just one db-nnn.log file. schedulerSupport is enabled only due to use of the redelivery plugin. I'm pretty

Re: Dealing with the "over-prefetch" problem with large numbers of workers and many queue servers

2015-10-22 Thread Martin Lichtin
Your problem sounds a bit more complex, but just wanted to mentioned that one can set usePrefetchExtension=”false”. From the docs: The default behavior of a broker is to use delivery acknowledgements to determine the state of a consumer's prefetch buffer. For example, if a consumer's prefetch

Re: Re: JMSTimestamp and JMSActiveMQBrokerOutTime not modified on redelivery.

2015-10-22 Thread Martin Lichtin
About JMSActiveMQBrokerOutTime, as redelivery is typically done locally by the client/consumer, it will not change. I imagine it should get updated in case of a server-side redelivery though. On 19.10.2015 06:18, Tim Bain wrote: I'm pretty sure the JMS spec describes how JMSTimestamp is

Re: Re: Enormous amount of db-xxx.log files in "scheduler" directory

2015-10-22 Thread Martin Lichtin
ery plugin very very rarely comes into action, so I still don't understand why there's all this data being stored. On 22.10.2015 15:47, Timothy Bish wrote: On 10/22/2015 04:46 AM, Martin Lichtin wrote: Can you help me understand what is stored in the "scheduler" directory? I see abo

Configuring an IOExceptionHandler

2015-10-14 Thread Martin Lichtin
Wanted to ask if it is advisable to configure an IOExceptionHandler, such as false true I could not find much information about this feature, besides http://activemq.apache.org/configurable-ioexception-handling.html Is this a tried and trusted approach to

Re: Problem shutting down activemq client with failover transport

2015-09-29 Thread Martin Lichtin
I've seen this behaviour as well and did not find a way around it besides limiting the number of _startup_ reconnect attempts. Append something like "?startupMaxReconnectAttempts=5" to the Url. On 29.09.2015 15:31, Anna Maier wrote: Hi, I am using Camel to connect to ActiveMQ and it fails

Priority Support

2015-09-08 Thread Martin Lichtin
Can someone explain (or understand) why KahaDb implements only three levels of priority?I wish it'd implement a few more, ideally the 10 levels JMS specifies.Also, is there an alternative backing store that implements all levels?

OSGi ClassNotFoundException when trying to upgrade from 5.11.1 to 5.12.0

2015-08-16 Thread Martin Lichtin
Has anyone tried upgrading to 5.12.0 under OSGi (e.g. Karaf) already? It fails for me with org.osgi.service.blueprint.container.ComponentDefinitionException: Error setting property: PropertyDescriptor name: maxConnections, getter: class

Tools to deal with prepared XA transactions

2015-06-04 Thread Martin Lichtin
Hi What tool(s) can I use todeal with prepared XA transactions? Given an XID a) show or provide a reference to the associated JMS message b) manually commit/rollback the transaction for maintenance purposes I actually just found https://github.com/chirino/activemq-xa-cli which seems to do

Re: How to use destination wildcards to match a common suffix

2015-04-11 Thread Martin Lichtin
segments, so the entire last segment would need to be out, but I would imagine you could adjust your naming conventions to match that, right? On Thu, Apr 9, 2015 at 4:21 AM, Martin Lichtin lich...@yahoo.com.invalid wrote: I read http://activemq.apache.org/wildcards.html but am still puzzled about how

How to use destination wildcards to match a common suffix

2015-04-09 Thread Martin Lichtin
I read http://activemq.apache.org/wildcards.html but am still puzzled about how to write a pattern that matches queue names with a particular suffix. For example, for queue names such as A.B.Cout and D.E.Fout will redeliveryPolicy queue=*out be enough to match the queues? Or do I need

How to disable MBeans creation

2015-03-10 Thread Martin Lichtin
Wanted to ask if there's a way to disable MBeans creation for sessions/producers/consumers in ActiveMQ? In certain setups (such as when using JTA/XA), not everything can be pooled, and new producers/sessions are frequently created. This causes a constant stream of new MBeans as well. James

Re: How to disable MBeans creation

2015-03-10 Thread Martin Lichtin
Ok, makes sense, thanks. https://issues.apache.org/jira/browse/AMQ-5656 - Original Message - From: Gary Tully gary.tu...@gmail.com To: users@activemq.apache.org users@activemq.apache.org; Martin Lichtin lich...@yahoo.com Cc: Sent: Tuesday, March 10, 2015 2:42 PM Subject: Re

After broker restart, forever seeing 'javax.jms.IllegalStateException: The Session is closed' exceptions

2014-08-14 Thread Martin Lichtin
The situation I have is a Camel route with a timer: endpoint sending a JMS message every few seconds. After stopping/starting the broker, the client does not seem to be able to recover and forever spits out 2014-08-14 15:53:55,429 | WARN  | #39 - timer://brokerInfo | TimerConsumer     

What is no dispatcher for MessageDispatch ... in ... trying to tell me

2014-06-26 Thread Martin Lichtin
Hi all, while debugging an (unexpected) redelivered message, I come across the following log 2014-06-25 13:37:53,608 | DEBUG | ActiveMQ NIO Worker 16   | ActiveMQConnection    | he.activemq.ActiveMQConnection$3 1887 | 93 - org.apache.activemq.activemq-osgi - 5.10.0 |