dev@grizzly.java.net

Re: RSS BC port unification

From: Jeanfrancois Arcand <Jeanfrancois.Arcand_at_Sun.COM>
Date: Wed, 06 Jun 2007 10:11:47 -0400

Hi,

Andreas Egloff wrote:
> James can correct me here if I'm off base, but I think we would want to
> distinguish primarily according to the URL context, e.g. we might deploy
> WSDLs with addresses such as /feed/xxx to the RSS BC, we would want to
> direct such requests to the RSS BC in that case.
>
> Worst case I guess we could go distinguish by protocol, but we were
> hoping to leave the portocol details up to the Rome stack.


Then port unification can be used with the ContextRootAlgorithm (which
parse the first couple of bytes to discover the URI. Based on the URI,
you can forward the request to the problem component. It might look
complicated, but this is quite simple with port unification. I can give
you an implementation to test if you are interested.

Thanks

-- Jeanfrancois



>
> Andi
>
> Oleksiy Stashok wrote:
>> Hi James,
>>
>> how you can distinct between regular HTTP protocol and RSS BC? Just by
>> resource file which is requested?
>>
>> WBR,
>> Alexey.
>>
>> James Lorenzen wrote:
>>>
>>> My team has recently created/open sourced an RSS Binding Component to
>>> be used within OpenESB: https://rss-bc.dev.java.net/.
>>>
>>> One of the features supported is the ability for components to
>>> publish entries locally to be viewed by RSS Readers. RSS Readers use
>>> HTTP GET to retrieve a syndication feed. We originally hoped that we
>>> could reuse the HTTP BC to receive the GET and forward to the RSS BC;
>>> however this presented a lot of problems so we decided to embed a
>>> small server in the RSS BC to handle the HTTP GETs.
>>>
>>> Unfortunately what this means is that we now consume yet another
>>> port. For example the HTTP BC typically uses by default port 18181
>>> and now the RSS BC will be using say port 18282. Ultimately we would
>>> like to use the same port.
>>>
>>> I have read Jean-Francois article on port unification
>>> <http://weblogs.java.net/blog/jfarcand/archive/2006/11/one_port_to_rul.html>
>>> but it’s unclear to me how the RSS and HTTP BC could use the same
>>> port. Programmatically what do I need to do to make this happen?
>>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_grizzly.dev.java.net
> For additional commands, e-mail: dev-help_at_grizzly.dev.java.net
>