Newbie question about JMS tunneling through HTTPS

View: New views
3 Messages — Rating Filter:   Alert me  

Newbie question about JMS tunneling through HTTPS

by nkhan00 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello,

I have a newbie question. First some background:

We have an application that sits in an environment where only outgoing HTTP connections are allowed. This application needs to do two things: (1) send data to a remote server over the internet (2) receive commands from the same remote server. The occurence of (1) and (2) is completely independent of each other. In other words, function (1) is invoked at random times, and function (2) is also invoked at random times.

My question: can we use JMS tunneled through HTTPS to implement the above two functions? HTTP is a request-response protocol, and the remote server is not allowed to make HTTP requests to our application. So how does it send a message using JMS-over-HTTPS? In other words I do not understand how function (2) above will be realized.

Your help will be highly appreciated.

Regards
Nadeem

Re: Newbie question about JMS tunneling through HTTPS

by Joe Fernandez :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

JMS is an API not a transport protocol. Each JMS provider has its own transport or wire-level protocol. For example, one of AMQ's transport protocols is called OpenWire (http://activemq.apache.org/openwire-version-2-specification.html) which can be tunneled over or through HTTP/S (http://activemq.apache.org/http-and-https-transports-reference.html).

Joe
http://www.ttmsolutions.com


nkhan00 wrote:
Hello,

I have a newbie question. First some background:

We have an application that sits in an environment where only outgoing HTTP connections are allowed. This application needs to do two things: (1) send data to a remote server over the internet (2) receive commands from the same remote server. The occurence of (1) and (2) is completely independent of each other. In other words, function (1) is invoked at random times, and function (2) is also invoked at random times.

My question: can we use JMS tunneled through HTTPS to implement the above two functions? HTTP is a request-response protocol, and the remote server is not allowed to make HTTP requests to our application. So how does it send a message using JMS-over-HTTPS? In other words I do not understand how function (2) above will be realized.

Your help will be highly appreciated.

Regards
Nadeem

Re: Newbie question about JMS tunneling through HTTPS

by Dejan Bosanac :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

you can use http(s) protocol with ActiveMQ scenario you described

http://activemq.apache.org/http-and-https-transports-reference.html

Basically, it starts a web contained with a servlet on a server side and
uses http-client on the client side. All messages are passed as xml payloads
over http.

Cheers
--
Dejan Bosanac - http://twitter.com/dejanb

Open Source Integration - http://fusesource.com/
ActiveMQ in Action - http://www.manning.com/snyder/
Blog - http://www.nighttale.net


On Tue, Nov 3, 2009 at 3:09 PM, nkhan00 <khannu@...> wrote:

>
> Hello,
>
> I have a newbie question. First some background:
>
> We have an application that sits in an environment where only outgoing HTTP
> connections are allowed. This application needs to do two things: (1) send
> data to a remote server over the internet (2) receive commands from the
> same
> remote server. The occurence of (1) and (2) is completely independent of
> each other. In other words, function (1) is invoked at random times, and
> function (2) is also invoked at random times.
>
> My question: can we use JMS tunneled through HTTPS to implement the above
> two functions? HTTP is a request-response protocol, and the remote server
> is
> not allowed to make HTTP requests to our application. So how does it send a
> message using JMS-over-HTTPS? In other words I do not understand how
> function (2) above will be realized.
>
> Your help will be highly appreciated.
>
> Regards
> Nadeem
> --
> View this message in context:
> http://old.nabble.com/Newbie-question-about-JMS-tunneling-through-HTTPS-tp26160146p26160146.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>
>
Dejan Bosanac

Open Source Integration - http://fusesource.com/
ActiveMQ in Action - http://www.manning.com/snyder/
Blog - http://www.nighttale.net