Re: failed to start ActiveMQ

2018-03-22 Thread norinos
> You need to set ignoreMissingJournalFiles. See 
> http://activemq.apache.org/kahadb.html for more information. 

Thank you for the information.

I tryed the above settings, but the following error occured and
failed to start ActiveMQ.


2018-03-22 17:21:56,218 | ERROR | Looking for key 531 but not found in
fileMap: 
2018-03-22 17:21:56,222 | ERROR | Failed to start Apache ActiveMQ ([broker0,
null], java.io.IOException: Could not locate data file
/data/kahadb/db-531.log) | org.apache.activemq.broker.BrokerService |
WrapperSimpleAppMain



> That's certainly possible. Are you sure that the durable subscription in 
> question has actually been offline continuously for more than a month? It 
> hasn't been sporadically connecting briefly and then disconnecting? 

My application connect and subscribe the message at the same time.
So the durable subscription has actually been offline continuously for more
than a month.




--
Sent from: http://activemq.2283324.n4.nabble.com/ActiveMQ-User-f2341805.html


ActiveMQ AWS Cluster failing over randomly

2018-03-22 Thread mtod
Hello

I'm trying to figure out an issue we have been seeing in our AWS instances.
We have a 3 node Master/Slave/Slave cluster in AWS that keeps failing over
randomly.

It occurs about once or twice each day and does not seem to be a good
reason.
It looks like if the bridge stops it kills ActiveMQ I would have thought it
should just reconnect.

I'm hoping someone can help me out.

My config is as follows:

>Windows Server 2012 systems
>3 Node Master Slave
>persistenceAdapter kahaDB is shared on DFS
>lease-database-locker using SQL Server
>Networked to a USEast AWS cluster (Note no issues with failover)
>ActiveMQ Version 5.15.3


My Log segment:


INFO   | jvm 1| 2018/03/21 16:36:43 |  INFO | Successfully connected to
ssl://01.corp.local:61617
INFO   | jvm 1| 2018/03/21 16:36:43 |  INFO | Successfully connected to
ssl://01.corp.local:61617
INFO   | jvm 1| 2018/03/21 16:36:44 |  INFO | Network connection between
vm://fmigrp01#8 and ssl://01.corp.local:61617 (fmiuseastp01) has
been established.
INFO   | jvm 1| 2018/03/21 16:36:44 |  INFO | Network connection between
vm://fmigrp01#12 and ssl://01.corp.local:61617 (fmiuseastp01) has
been established.
INFO   | jvm 1| 2018/03/21 16:36:48 |  INFO | Successfully refreshed JMS
Connection
INFO   | jvm 1| 2018/03/21 22:50:00 |  INFO | VirtualTopic.heartbeat
Inactive for longer than 30 ms - removing ...
INFO   | jvm 1| 2018/03/21 23:30:00 |  INFO | VirtualTopic.heartbeat
Inactive for longer than 30 ms - removing ...
INFO   | jvm 1| 2018/03/21 23:55:00 |  INFO | VirtualTopic.heartbeat
Inactive for longer than 30 ms - removing ...
INFO   | jvm 1| 2018/03/22 00:25:00 |  INFO | VirtualTopic.heartbeat
Inactive for longer than 30 ms - removing ...
INFO   | jvm 1| 2018/03/22 01:00:00 |  INFO | VirtualTopic.heartbeat
Inactive for longer than 30 ms - removing ...
INFO   | jvm 1| 2018/03/22 01:55:00 |  INFO | VirtualTopic.heartbeat
Inactive for longer than 30 ms - removing ...
INFO   | jvm 1| 2018/03/22 02:10:00 |  INFO | VirtualTopic.heartbeat
Inactive for longer than 30 ms - removing ...
INFO   | jvm 1| 2018/03/22 02:20:00 |  INFO | VirtualTopic.heartbeat
Inactive for longer than 30 ms - removing ...
INFO   | jvm 1| 2018/03/22 18:19:32 |  INFO | Apache ActiveMQ 5.15.3
(fmigrp01, ID:01-52527-1521555769961-1:2) is shutting down
INFO   | jvm 1| 2018/03/22 18:19:32 |  WARN | Transport
(ssl://01.corp.local:61617) failed , not attempting to automatically
reconnect: {}
INFO   | jvm 1| 2018/03/22 18:19:32 | java.io.IOException: Bridge
stopped
INFO   | jvm 1| 2018/03/22 18:19:32 |   at
org.apache.activemq.network.DemandForwardingBridgeSupport.stopFailoverTransport(DemandForwardingBridgeSupport.java:351)[activemq-broker-5.15.3.jar:5.15.3]
INFO   | jvm 1| 2018/03/22 18:19:32 |   at
org.apache.activemq.network.DemandForwardingBridgeSupport.stop(DemandForwardingBridgeSupport.java:327)[activemq-broker-5.15.3.jar:5.15.3]
INFO   | jvm 1| 2018/03/22 18:19:32 |   at
org.apache.activemq.network.DiscoveryNetworkConnector.handleStop(DiscoveryNetworkConnector.java:223)[activemq-broker-5.15.3.jar:5.15.3]
INFO   | jvm 1| 2018/03/22 18:19:32 |   at
org.apache.activemq.network.NetworkConnector$1.doStop(NetworkConnector.java:65)[activemq-broker-5.15.3.jar:5.15.3]
INFO   | jvm 1| 2018/03/22 18:19:32 |   at
org.apache.activemq.util.ServiceSupport.stop(ServiceSupport.java:71)[activemq-client-5.15.3.jar:5.15.3]
INFO   | jvm 1| 2018/03/22 18:19:32 |   at
org.apache.activemq.network.NetworkConnector.stop(NetworkConnector.java:170)[activemq-broker-5.15.3.jar:5.15.3]
INFO   | jvm 1| 2018/03/22 18:19:32 |   at
org.apache.activemq.util.ServiceStopper.stop(ServiceStopper.java:41)[activemq-client-5.15.3.jar:5.15.3]
INFO   | jvm 1| 2018/03/22 18:19:32 |   at
org.apache.activemq.broker.BrokerService.stopAllConnectors(BrokerService.java:2236)[activemq-broker-5.15.3.jar:5.15.3]
INFO   | jvm 1| 2018/03/22 18:19:32 |   at
org.apache.activemq.broker.BrokerService.stop(BrokerService.java:848)[activemq-broker-5.15.3.jar:5.15.3]
INFO   | jvm 1| 2018/03/22 18:19:32 |   at
org.apache.activemq.xbean.XBeanBrokerService.stop(XBeanBrokerService.java:122)[activemq-spring-5.15.3.jar:5.15.3]
INFO   | jvm 1| 2018/03/22 18:19:32 |   at
org.apache.activemq.console.command.StartCommand$1.run(StartCommand.java:104)[activemq-console-5.15.3.jar:5.15.3]
INFO   | jvm 1| 2018/03/22 18:19:32 |  WARN | Transport Connection to:
vm://fmigrp01#8 failed:
org.apache.activemq.transport.TransportDisposedIOException: peer
(vm://fmigrp01#8) stopped.
INFO   | jvm 1| 2018/03/22 18:19:32 |  WARN | Transport Connection to:
vm://fmigrp01#10 failed:
org.apache.activemq.transport.TransportDisposedIOException: peer
(vm://fmigrp01#10) stopped.
INFO   | jvm 1| 2018/03/22 18:19:32 |  INFO | fmigrp01 bridge to
fmiuseastp01 

Re: Artemis 2.5.0 last value queue property is removed from the queue on broker restart

2018-03-22 Thread rbollarapu
Thanks Michael!



--
Sent from: http://activemq.2283324.n4.nabble.com/ActiveMQ-User-f2341805.html


Re: Artemis 2.5.0 last value queue property is removed from the queue on broker restart

2018-03-22 Thread Michael André Pearce
Don’t worry I managed to recreate the issue.

created issue:
ARTEMIS-1766 

I copied your email into the issue.

Also have raised to PR to fix this (including integration test)





Sent from my iPhone

> On 22 Mar 2018, at 17:01, Michael André Pearce  
> wrote:
> 
> Just been looking at this it seem we are not persisting it in the queue 
> bindings.
> 
> Can you raise a Jira Ticket for this? Hopefully we can get a fix in time for 
> 2.5.1
> 
> Sent from my iPhone
> 
>> On 22 Mar 2018, at 16:22, Michael André Pearce  
>> wrote:
>> 
>> Are you able to provide an integration/test case to recreate this?
>> 
>> 
>> 
>> Sent from my iPhone
>> 
>>> On 22 Mar 2018, at 16:03, rbollarapu  wrote:
>>> 
>>> Hi
>>> 
>>> I'm creating last-value queues using 
>>> 
>>> 
>>> true
>>> 
>>> 
>>> I'm writing messages to these queues and the last-value property seems to be
>>> working fine. But on stopping the broker and starting up again, the queue
>>> doesn't behave like last-value queue. I can also see in the web-console that
>>> the last-value checkbox is not checked. Is that a problem with my address
>>> setting?
>>> 
>>> Thanks!
>>> 
>>> 
>>> 
>>> --
>>> Sent from: http://activemq.2283324.n4.nabble.com/ActiveMQ-User-f2341805.html


Re: Artemis 2.5.0 last value queue property is removed from the queue on broker restart

2018-03-22 Thread Michael André Pearce
Just been looking at this it seem we are not persisting it in the queue 
bindings.

Can you raise a Jira Ticket for this? Hopefully we can get a fix in time for 
2.5.1

Sent from my iPhone

> On 22 Mar 2018, at 16:22, Michael André Pearce  
> wrote:
> 
> Are you able to provide an integration/test case to recreate this?
> 
> 
> 
> Sent from my iPhone
> 
>> On 22 Mar 2018, at 16:03, rbollarapu  wrote:
>> 
>> Hi
>> 
>> I'm creating last-value queues using 
>> 
>> 
>> true
>> 
>> 
>> I'm writing messages to these queues and the last-value property seems to be
>> working fine. But on stopping the broker and starting up again, the queue
>> doesn't behave like last-value queue. I can also see in the web-console that
>> the last-value checkbox is not checked. Is that a problem with my address
>> setting?
>> 
>> Thanks!
>> 
>> 
>> 
>> --
>> Sent from: http://activemq.2283324.n4.nabble.com/ActiveMQ-User-f2341805.html


[artemis] Naming-Pattern for temporary "reply"-queues and exclusive permissions

2018-03-22 Thread Big Puritz
Hello,

as far as i can see, while using the "requst-reply" pattern the broker
creates a temporary "reply"-queue with the name according to the UUID
naming pattern, e.g. ca8f4510-5e58-48e7-a4f0-55abf8a43d8e.

To be able to create this queues the user is required to have an
appropriate  CREATE_NON_DURABLE_QUEUE permission.

That can be achieved with the following configuration (please correct me if
i'm wrong):


...
true
  true
...



   ...
   
   
   ...



However this configuration makes creation of every non durable queue
possible, not only the temporary one.

How can I limit the permissions to create temporary queues only? Is there
any possibility to specify the naming-pattern for the temporary queues.
E.g. "temp." or something like this.

Thanks in advance.


Re: Can I connect to a vm URL without a password?

2018-03-22 Thread Quinn Stevenson
Thank you Tim -

I was afraid you were going to say that :-)

I was looking at the SimpleAuthenticationPlugin / SimpleAuthenticationBroker, 
and I have an idea how to do this.  The one thing I’m not sure about is how I 
can tell when the connection is coming via a VM URL - do you have any hints on 
that?


> On Mar 21, 2018, at 7:21 PM, Tim Bain  wrote:
> 
> I'm not sure there's a built-in way to do this without writing any code,
> but you should be able to write a simple security plugin that allows you to
> allow or deny connections based on their transport and whether they are
> anonymous. The bottom of http://activemq.apache.org/security.html has
> details about how to get started.
> 
> Tim
> 
> On Wed, Mar 21, 2018, 6:08 PM Quinn Stevenson 
> wrote:
> 
>> I have several components running inside the same JVM as ActiveMQ, and
>> they connect to the broker using a vm URL.  Guest access to the broker has
>> been disabled for security reasons, but I’d like the embedded components to
>> be able to connect to the broker without a username or password.
>> 
>> Is there a way to configure ActiveMQ to allow anonymous/guest access for
>> VM connections only?
>> 
>> 
>> 
>> 



Re: Artemis 2.5.0 last value queue property is removed from the queue on broker restart

2018-03-22 Thread Michael André Pearce
Are you able to provide an integration/test case to recreate this?



Sent from my iPhone

> On 22 Mar 2018, at 16:03, rbollarapu  wrote:
> 
> Hi
> 
> I'm creating last-value queues using 
> 
> 
> true
> 
> 
> I'm writing messages to these queues and the last-value property seems to be
> working fine. But on stopping the broker and starting up again, the queue
> doesn't behave like last-value queue. I can also see in the web-console that
> the last-value checkbox is not checked. Is that a problem with my address
> setting?
> 
> Thanks!
> 
> 
> 
> --
> Sent from: http://activemq.2283324.n4.nabble.com/ActiveMQ-User-f2341805.html


Artemis 2.5.0 last value queue property is removed from the queue on broker restart

2018-03-22 Thread rbollarapu
Hi

I'm creating last-value queues using 


 true


I'm writing messages to these queues and the last-value property seems to be
working fine. But on stopping the broker and starting up again, the queue
doesn't behave like last-value queue. I can also see in the web-console that
the last-value checkbox is not checked. Is that a problem with my address
setting?

Thanks!



--
Sent from: http://activemq.2283324.n4.nabble.com/ActiveMQ-User-f2341805.html


Older Message Not Consumed(Stay Untouched in queue) Newer Messages consumed

2018-03-22 Thread ajayvaghelanw
Hello,

I am using ActiveMQ 5.15.0 and there are multiple queues in system which
helps to communicate my system for each queue there is an individual system.

But, sometimes in a queue multiple messages of any random time period got
stuck but after that time period newer messages is consumed but older
remained in queue.

I have added delay configuration in ActiveMQ. (Is it the reason??)

I have tried to identify the cause but not come to any conclusion.

I have seen that ActiveMQ has similar kind of problem in version older than
5.9.


Please help me out.

 



--
Sent from: http://activemq.2283324.n4.nabble.com/ActiveMQ-User-f2341805.html


Any tool / application to benchmark activeMQ + AMQP

2018-03-22 Thread prkudixit
Hello,

I am relatively new to the world of MQs. I am using activeMQ 5.15.2 on my
windows 10 machine  with Java version 9.0.4
I am also using SPECJMS2007 (yeah, outdated tool) for benchmarking., and am
able to proceed with TCP for both local host and remote host with various
ports.

However, when I try to run SPECJMS with AMQP, i am successful in localhost
setting., but changing the port, gives me a problem. I tried various JNDI
settings and vendor specific settings, but in vain.

I wanted to know if Apache has its own benchmarking tool or application for
working with both tcp and amqp. // I heard there is one, but not sure on how
elaborate is the tool //
Any help or pointer in this regard will be helpful and is highly
appreciated.

Thanks in advance, 
prkudixit.



--
Sent from: http://activemq.2283324.n4.nabble.com/ActiveMQ-User-f2341805.html