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

2018-03-29 Thread Tim Bain
Thanks for creating the request; what you did sounds fine. Tim On Thu, Mar 29, 2018, 11:31 AM Quinn Stevenson wrote: > Thanks for all your help Tim. > > I created https://issues.apache.org/jira/browse/AMQ-6941 < > https://issues.apache.org/jira/browse/AMQ-6941> for this request, and I > put a l

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

2018-03-29 Thread Quinn Stevenson
Thanks for all your help Tim. I created https://issues.apache.org/jira/browse/AMQ-6941 for this request, and I put a link to the example implementation in the JIRA rather than the source. I did it that way because the jar with the plugin is in M

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

2018-03-27 Thread Tim Bain
Quinn, Great, I'm glad you got it working. Yes, I think there would be benefit to having this capability. However, I'm not sure if what you've implemented is the ideal implementation from a long-term maintenance standpoint (I suspect that we'd want to fold it into the Simple Authentication Plugin

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

2018-03-26 Thread Quinn Stevenson
Thanks Tim - I think I’ve got one working now. I wound up casting the result of getConnector() to TransportConnector and then calling getName() - it looks like it has what I need. I’ve got a version running locally now, and it seems to be doing what I’m after. Thanks for all of your help. BTW

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

2018-03-25 Thread Tim Bain
Quinn, I think you should be able to access the URI to which the connection is bound by calling ((TransportConnector)context.getConnector()).getServer().getConnectURI(), and then you can parse the protocol out of it. But it's not something I've personally done and I don't have time to try it right

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

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

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