Re: access.log analog ?

2018-03-21 Thread Илья Шипицин
thank you!

that was the quote

2018-03-21 8:59 GMT+05:00 Tim Bain :

> It looks like you have a spurious quote at the end of the
>  element; could that be causing the broker to fail to
> load?
>
> When I add that mangled element into my own activemq.xml file, I get a
> SAXParseException on the console, but you haven't mentioned seeing that so
> maybe that's not it... Or maybe that's because I'm running it under Windows
> instead of your Linux environment.
>
> Tim
>
> On Mon, Mar 19, 2018 at 2:36 AM, Илья Шипицин 
> wrote:
>
> > well, I added log interceptor, activemq refuses to start (no logs at
> all).
> > how to debug it ? can someone have a look at my config ?
> >
> > [root@xxx activemq]# cat /opt/activemq/conf/activemq.xml
> >  >   xmlns="http://www.springframework.org/schema/beans";
> >   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
> >   xsi:schemaLocation="http://www.springframework.org/schema/beans
> > http://www.springframework.org/schema/beans/spring-beans.xsd
> >   http://activemq.apache.org/schema/core
> > http://activemq.apache.org/schema/core/activemq-core.xsd";>
> >
> >  > class="org.springframework.beans.factory.config.
> > PropertyPlaceholderConfigurer">
> > 
> > file:${activemq.conf}/credentials.properties
> > 
> > 
> >
> > 
> >   >lazy-init="false" scope="singleton"
> >init-method="start" destroy-method="stop">
> >  
> >
> > http://activemq.apache.org/schema/core";
> > brokerName="localhost" dataDirectory="${activemq.data}">
> > 
> > 
> >   
> > 
> >   
> > 
> >   
> > 
> >   
> > 
> > 
> >
> > 
> > 
> > 
> >
> > 
> >  > createTablesOnStartup="true"   >
> >   
> >   > lockCreateStatement= "SELECT * FROM ACTIVEMQ_LOCK WITH (UPDLOCK, ROWLOCK)
> > WHERE ID=1"/>
> >   
> > 
> > 
> >
> > 
> >   
> >   
> >   
> >   
> >   
> >   
> >   
> >   
> >   
> >   
> >   
> > 
> >
> > 
> >   
> > 
> >
> > 
> > http://www.springframework.org/schema/beans";
> > class="org.apache.activemq.hooks.SpringContextHook" />
> > 
> >
> > 
> >   
> >> ttlCeiling="6" futureOnly="true"/>
> >   
> > 
> >
> > 
> >  > destroy-method="close">
> >  > value="com.microsoft.sqlserver.jdbc.SQLServerDriver"/>
> >  > value="jdbc:sqlserver://xxx:1433;DatabaseName=ActiveMQDatastore"/>
> > 
> > 
> > 
> > 
> > 
> > 
> > [root@xxx activemq]#
> >
> >
> > [root@xxx activemq]# bin/activemq start
> > INFO: Loading '/opt/activemq//bin/env'
> > INFO: Using java '/usr/bin/java'
> > INFO: Starting - inspect logfiles specified in logging.properties and
> > log4j.properties to get details
> > INFO: pidfile created : '/opt/activemq/data/activemq.pid' (pid '2274')
> > [root@xxx activemq]# bin/activemq status
> > INFO: Loading '/opt/activemq//bin/env'
> > INFO: Using java '/usr/bin/java'
> > ActiveMQ not running
> > [root@xxx activemq]#
> >
> >
> >
> > [root@xxx activemq]# ls data/
> > activemq.pid  activemq.pid.stop  audit.log
> > [root@xxx activemq]#
> >
> >
> >
> > 2018-03-18 19:57 GMT+05:00 Tim Bain :
> >
> > > Can you elaborate on what knowledge of ActiveMQ mechanics would be
> > needed?
> > > If you have specific questions that aren't covered by the wiki page I
> > > provided, we can try to answer them for you.
> > >
> > > Tim
> > >
> > > On Sun, Mar 18, 2018, 12:57 AM Илья Шипицин 
> > wrote:
> > >
> > > > I mean, my task most probably can be resolved by log4j, it needs some
> > > > knowledge of activemq mechanics in order to set up log4j
> > > >
> > > > On Sun, Mar 18, 2018, 11:25 AM Tim Bain 
> wrote:
> > > >
> > > > > Does http://activemq.apache.org/logging-interceptor.html do what
> > > you're
> > > > > looking for? (I can't tell, since your requirement is pretty vague,
> > > given
> > > > > that the broker isn't a web server and uses long-lived connections
> > that
> > > > > span multiple operations rather than short-lived connections that
> are
> > > > used
> > > > > for only a single operation, but it seems like it might be what you
> > > > want.)
> > > > >
> > > > > Tim
> > > > >
> > > > > On Wed, Mar 14, 2018 at 6:42 AM, Илья Шипицин <
> chipits...@gmail.com>
> > > > > wrote:
> > > > >
> > > > > > 5.x
> > > > > >
> > > > > > (we do not use artemis yet, but having that guide for artemis
> would
> > > be
> > > > > > nice)
> > > > > >
> > > > > > 2018-03-14 17:40 GMT+05:00 Tim Bain :
> > > > > >
> > > > > > > Is this for 5.x, or for Artemis?
> > > > > > >
> > > > > > > On Wed, Mar 14, 2018, 2:04 AM Илья 

Broker URL

2018-03-21 Thread dwhitney67
Hello,

I use ActiveMQ CPP (CMS) to manage connections to my ActiveMQ broker.
Previously when I was operating with ActiveMQ 5.13.2, I could connect to the
broker and query the broker's URL (by calling getBrokerURL()) from an
activemq::commands::BrokerInfo object, which is available when onCommand()
is called within my custom DefaultTransportListener class.

This call would return a string value similar to something like
tcp://hostname:61616, where hostname is the name of the server where the
broker was running.

When I upgraded to ActiveMQ 5.15.3, the broker URL now appears as
tcp://0.0.0.0:61616.

Is this a bug, or was the change to the format of the URL intentional? Does
anyone have any thoughts on how I can confirm which broker I am connected
to, especially in cases where my brokers may be clustered, and the
connection may be randomized depending on the load of any one broker?

Thank you.



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


[ANNOUNCE] ActiveMQ Artemis 2.5.0 Released

2018-03-21 Thread Clebert Suconic
I'm pleased to announce the release of ActiveMQ Artemis .


Downloads are now available at:
http://activemq.apache.org/artemis/download.html


For a complete list of updates:
http://activemq.apache.org/artemis/release-notes-2.5.0.html


Many thanks for all the contributors to this release.


KahaDB, Protobuf and CVEs

2018-03-21 Thread Sean LeBlanc
I'm seeing that activemq-protobuf 1.1 has a few CVEs ranked as "HIGH". If we
still want to use KahaDB for a durable queue, what sort of mitigation
strategies would make sense? 



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


Re: Disable access to Dead Letter Queue

2018-03-21 Thread cnadukula
any update for me on this guys?



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


Can I connect to a vm URL without a password?

2018-03-21 Thread Quinn Stevenson
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: Can I connect to a vm URL without a password?

2018-03-21 Thread Tim Bain
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: Messages from a queue are moved to Dead Letter Queue

2018-03-21 Thread Tim Bain
Roger,

I apologize for the delayed response. Your message didn't get delivered via
email to me (maybe to others as well).

If you're still having this problem, the behavior you're seeing sounds
consistent with the behavior if you had consumers that used selectors and
some of the messages didn't match any of the selectors from any of the
consumers. Could that be the situation you're seeing?

Another possibility is that the message-processing code is throwing an
exception on some but not all of the messages.

Could either of those possibilities explain the behavior you were seeing?

Tim



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