You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@mina.apache.org by Andrei Tchijov <an...@tchijov.com> on 2010/05/05 17:06:20 UTC
Is it possible to "marry" Mina and Jetty?
I have a server which serves 2 different type of clients via 2 different mechanisms:
- it serves HTML pages to end users via HTTPs,
- it maintain connections from software agents via proprietary protocol over SSL.
I employ Jetty on "end user" side and Mina on "software agent" side. It works very well. My only problem is that I have to listen on two different ports. Ideally I would love to be able to listen on single port (HTTPS) and dispatch incoming connections to Jetty or Mina depending on some criteria (I was thinking to use remote port number as such criteria, I can force all software agents to use the same port number to connect to my server). On Jetty side, I can get my hands on newly accepted SocketChannel and I think I will be able to "convince" Jetty to leave it alone - the problem is how to make Mina to use this SocketChannel?
Bottom line: Is there way to create functional IoSession based on existing SocketChannel?
You comments will be highly appreciated.
Andrei
Re: Websync HTTP web inetrface client
Posted by Emmanuel Lecharny <el...@gmail.com>.
On 5/14/10 10:17 AM, Pradeep chahal wrote:
> Can anyone help me in this regards?
>
Well, if you didn't get any answer, that mean you have your answer :
nobody has implemented what you are looking for...
(The reason you got no response is that if *everyone* who didn't
implement your stuff says "no, I don't", then the ML will be swamped...)
--
Regards,
Cordialement,
Emmanuel Lécharny
www.nextury.com
RE: Websync HTTP web inetrface client
Posted by Pradeep chahal <de...@live.com>.
Can anyone help me in this regards?
> From: deep.chahal@live.com
> To: users@mina.apache.org
> Subject: Websync HTTP web inetrface client
> Date: Thu, 13 May 2010 14:57:35 +0530
>
>
>
> Hi,
>
>
>
> Has anyone implemented some webinetrface http client for websysnc server in java script or silverlight? In svn repositry I con see only client is made in J2SE.
>
>
>
>
>
>
>
> Regards,
>
> Pradeep Kr Chahal
>
> _________________________________________________________________
> South Cinema This Decade
> http://entertainment.in.msn.com/southcinemathisdecade/
_________________________________________________________________
The amazing world in sharp snaps
http://news.in.msn.com/gallery/archive.aspx
Websync HTTP web inetrface client
Posted by Pradeep chahal <de...@live.com>.
Hi,
Has anyone implemented some webinetrface http client for websysnc server in java script or silverlight? In svn repositry I con see only client is made in J2SE.
Regards,
Pradeep Kr Chahal
_________________________________________________________________
South Cinema This Decade
http://entertainment.in.msn.com/southcinemathisdecade/
Re: Is it possible to "marry" Mina and Jetty?
Posted by Christopher Popp <ch...@yahoo.com>.
Ah, how about a proxy that will listen on the designated port and tunnel the traffic to another port (either jetty or mina) depending on the source port of the connection? I believe HAProxy would support this fine, though it is a bit overkill.
Chris
________________________________
From: Andrei Tchijov <an...@tchijov.com>
To: users@mina.apache.org
Sent: Wed, May 5, 2010 10:30:51 PM
Subject: Re: Is it possible to "marry" Mina and Jetty?
Yes, I have considered this solution. I have $$$ incentive to try to avoid need for second IP address. I am planing to run my server in hosted environment and it is not always possible to get second IP and if it is possible, it will cost extra.
Andrei
Re: Is it possible to "marry" Mina and Jetty?
Posted by Andrei Tchijov <an...@tchijov.com>.
Yes, I have considered this solution. I have $$$ incentive to try to avoid need for second IP address. I am planing to run my server in hosted environment and it is not always possible to get second IP and if it is possible, it will cost extra.
Andrei
On May 5, 2010, at 10:41 PM, Christopher Popp wrote:
> One idea might be to configure a second IP address on your host and have Jetty and MINA each bind to a different IP address. They could then both serve SSL on the same port, and you just configure a different IP address for your software agents.
>
> Chris
>
>
>
> ________________________________
> From: Andrei Tchijov <an...@tchijov.com>
> To: users@mina.apache.org
> Sent: Wed, May 5, 2010 10:06:20 AM
> Subject: Is it possible to "marry" Mina and Jetty?
>
> I have a server which serves 2 different type of clients via 2 different mechanisms:
> - it serves HTML pages to end users via HTTPs,
> - it maintain connections from software agents via proprietary protocol over SSL.
> I employ Jetty on "end user" side and Mina on "software agent" side. It works very well. My only problem is that I have to listen on two different ports. Ideally I would love to be able to listen on single port (HTTPS) and dispatch incoming connections to Jetty or Mina depending on some criteria (I was thinking to use remote port number as such criteria, I can force all software agents to use the same port number to connect to my server). On Jetty side, I can get my hands on newly accepted SocketChannel and I think I will be able to "convince" Jetty to leave it alone - the problem is how to make Mina to use this SocketChannel?
>
> Bottom line: Is there way to create functional IoSession based on existing SocketChannel?
>
> You comments will be highly appreciated.
>
> Andrei
>
>
Re: Is it possible to "marry" Mina and Jetty?
Posted by Christopher Popp <ch...@yahoo.com>.
One idea might be to configure a second IP address on your host and have Jetty and MINA each bind to a different IP address. They could then both serve SSL on the same port, and you just configure a different IP address for your software agents.
Chris
________________________________
From: Andrei Tchijov <an...@tchijov.com>
To: users@mina.apache.org
Sent: Wed, May 5, 2010 10:06:20 AM
Subject: Is it possible to "marry" Mina and Jetty?
I have a server which serves 2 different type of clients via 2 different mechanisms:
- it serves HTML pages to end users via HTTPs,
- it maintain connections from software agents via proprietary protocol over SSL.
I employ Jetty on "end user" side and Mina on "software agent" side. It works very well. My only problem is that I have to listen on two different ports. Ideally I would love to be able to listen on single port (HTTPS) and dispatch incoming connections to Jetty or Mina depending on some criteria (I was thinking to use remote port number as such criteria, I can force all software agents to use the same port number to connect to my server). On Jetty side, I can get my hands on newly accepted SocketChannel and I think I will be able to "convince" Jetty to leave it alone - the problem is how to make Mina to use this SocketChannel?
Bottom line: Is there way to create functional IoSession based on existing SocketChannel?
You comments will be highly appreciated.
Andrei