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 <[email protected]>
> To: [email protected]
> 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
> 
> 

Reply via email to