Re: STOMP/Websockets and CORS

2013-10-10 Thread prgtrdr
Just to confirm, I am able to do cross-domain requests to ActiveMQ against the Jetty server. If you pay close attention to the documentation you won't go too far wrong but unfortunately, there are some incorrect instructions for how to set it up on various web sites. In general, the given

Re: Possible Bug in AJAX/MessageListenerServlet.java?

2013-10-10 Thread prgtrdr
I wonder if there's a way around this by somehow cloning the amq.js library within a single browser tab? That way, I could call amq_init with different clientIds and reference it that way. Something like: amqInstance1 = new amq(); amqInstance1.amq_init( clientID: 'client1' );

Re: NMS .NET 4.0 Sandbox Security Question

2013-07-16 Thread prgtrdr
I've since learned that the sandbox restricts the use of all communication protocols except http: and https:. Is there a way to get NMS to communicate with ActiveMQ via those protocols? -- View this message in context:

NMS .NET 4.0 Sandbox Security Question

2013-07-14 Thread prgtrdr
I'm trying to use NMS Version 1.6.0 with my code ('IntPub') that must run in a sandbox in a .NET 4.0 environment for security reasons. The code that creates the sandbox makes my code 'partially trusted' and therefore 'security-transparent' which seems to mean that it can't create a

Re: Stomp Configuration

2013-07-08 Thread prgtrdr
Hi Christian, This helped a lot. I got confused between Stomp over Websockets vs Stomp over tcp. There are lots of different docs that don't make this very clear--if you happen to read the Stomp over WS docs first you might get the idea that it is the only (or preferred) method of connecting to

Stomp Configuration

2013-07-05 Thread prgtrdr
I'm a bit confused by the config for Stomp and have found seemingly conflicting info in the documentation. Please help! I'm planning to have a stand-alone ActiveMQ server exposed to the public internet running on a Windows Server 2008 r2 (URL: my.webserver.com). There will be several local

Re: How can I retrieve a Stomp username when a new Connection is made?

2012-11-30 Thread prgtrdr
Christian, Thanks for pointing me in the right direction. Here's my code that seems to work so others can use it. That said, I'm really nervous about using reflection to get at the brokerConnectionStates collection. There must be a better way to do this... @SuppressWarnings(unchecked)

Re: ActiveMQ.Advisory.Connection messages includes username and password

2012-11-29 Thread prgtrdr
Rob, I'm stuck on something that is probably obvious but I just can't figure out how to do it. What I want to do is retrieve the userName from an incoming Stomp connection. I am creating the broker in my code and have also set up monitoring Advisory messages. The onMessage function receives

How can I retrieve a Stomp username when a new Connection is made?

2012-11-29 Thread prgtrdr
I'm stuck on something that is probably obvious but I just can't figure out how to do it. What I want to do is retrieve the userName from an incoming Stomp connection. I am creating the broker in my code and have also set up monitoring Advisory messages. The Advisory onMessage() function

Re: How can I retrieve a Stomp username when a new Connection is made?

2012-11-29 Thread prgtrdr
Thanks, Christian. To put it more succinctly, what I want to do is retrieve the userName for a given ConnectionId returned by the Advisory onMessage function. Do you think JMX is the easiest way to do this? Can't I use the BrokerService or some other object I have created in the embedded