Fwd: stompjms mailing list?

17 views
Skip to first unread message

Hiram Chirino

unread,
Feb 7, 2012, 7:37:42 AM2/7/12
to stom...@googlegroups.com


---------- Forwarded message ----------
From: Lars-Erik Helander <leh...@gmail.com>
Date: Mon, Feb 6, 2012 at 5:29 PM
Subject: stompjms mailing list?
To: hi...@hiramchirino.com


Hi Hiram,

is there some mailing-list where usage of stompjms is discussed?

I have a particular question: How do I connect to a specific virtual
host on the Apollo broker from a JMS client?

Kind Regards

Lars



--

Hiram Chirino

Software Fellow | FuseSource Corp.

chi...@fusesource.com | fusesource.com

skype: hiramchirino | twitter: @hiramchirino

blog: Hiram Chirino's Bit Mojo




chi...@gmail.com

unread,
Feb 7, 2012, 7:49:12 AM2/7/12
to stompjms
> Hi Hiram,
>
> is there some mailing-list where usage of stompjms is discussed?
>

Right here. I just create it!

> I have a particular question: How do I connect to a specific virtual
> host on the Apollo broker from a JMS client?

We do this the same way as HTTP browsers and servers interact.
Whatever DNS hostname the client connects to is virtual host that will
passed along in the STOMP 'host' header.

So you will need to either:

*) Setup a DNS CNAME for each virtual host you want to support and
point them at your server.
*) Setup a host alias for the server in your client machine's /etc/
hosts file.

> Kind Regards
>
> Lars

Regards,
Hiram

helander

unread,
Feb 7, 2012, 1:27:04 PM2/7/12
to stompjms
Ok. This means that usage of virtual hosts requires "management" at
host and/or network level, which was a bit of surprise for me ;).
I had envisioned that you, for example could specify the virtual host
in the connection URI, e.g. "tcp://brokerhost:61613?virtual_host=foo".
This way you would be able to access virtual hosts without requiring
any changes to the setup of the client hosts or the network (DNS). I
can see deployment scenarios where it could be "hard" to make such
changes possible, not from a technical perspective but from an
organizational/responsibility perspective.

Kind Regards

Lars


On 7 Feb, 13:37, Hiram Chirino <hi...@hiramchirino.com> wrote:
> ---------- Forwarded message ----------
> From: Lars-Erik Helander <leh...@gmail.com>
> Date: Mon, Feb 6, 2012 at 5:29 PM
> Subject: stompjms mailing list?
> To: hi...@hiramchirino.com
>
> Hi Hiram,
>
> is there some mailing-list where usage of stompjms is discussed?
>
> I have a particular question: How do I connect to a specific virtual
> host on the Apollo broker from a JMS client?
>
> Kind Regards
>
> Lars
>
> --
>
> **
>
> *Hiram Chirino*
>
> *Software Fellow | FuseSource Corp.*
>
> *chir...@fusesource.com | fusesource.com*
>
> *skype: hiramchirino | twitter: @hiramchirino<http://twitter.com/hiramchirino>
> *
>
> *blog: Hiram Chirino's Bit Mojo <http://hiramchirino.com/blog/>*
>
> *
> *
>
> *
> *

Hiram Chirino

unread,
Feb 7, 2012, 2:30:49 PM2/7/12
to stom...@googlegroups.com
This is no different to how HTTP based virtual hosts are implemented so it's a well understood pattern. 

Typically, virtual hosting is used to consolidate different apps on a single server.  Using different DNS names for each app is generally a good idea anyways so that you can more easily move that app from one host to another if needed.
--

Hiram Chirino

Software Fellow | FuseSource Corp.

chi...@fusesource.com | fusesource.com

skype: hiramchirino | twitter: @hiramchirino

Reply all
Reply to author
Forward
0 new messages