users@grizzly.java.net

Re: Grizzly configuration on Glassfish v3

From: melshami <mohamed.shami_at_gmail.com>
Date: Mon, 5 Oct 2009 08:29:05 -0700 (PDT)

Thanks Alexey,

I think since I am using glassfish-prelude v3 it still uses v2 configuraiton
scheme, if I am correct it's sun-domain_1_3.dtd which has all network
configuration under the <http-service> element. So I am not sure where to
set the protocol-finder name under this scheme.

Thanks,
Mohamed

Oleksiy Stashok wrote:
>
> Hi,
>
> you can take a look at config module in grizzly workspace [1].
> There you can find unit tests with different configurations like [2],
> which actually has port unification enabled, but you can redefine
> config to use X-protocol directly without port unification.
>
> WBR,
> Alexey.
>
>
> [1] svn checkout
> https://www.dev.java.net/svn/grizzly/trunk/code/modules/config
> [2]
> <network-config>
> <transports>
> <transport name="tcp"/>
> </transports>
> <protocols>
> <protocol name="pu-protocol">
> <port-unification>
> <protocol-finder name="http-finder"
> classname="com.sun.grizzly.http.portunif.HttpProtocolFinder"
> protocol="http"/>
> <protocol-finder name="X-protocol-finder"
> classname="com.sun.grizzly.config.XProtocolFinder" protocol="X-
> protocol"/>
> </port-unification>
> </protocol>
>
> <protocol name="http">
> <http enable-comet-support="true"/>
> </protocol>
>
> <protocol name="X-protocol">
> <protocol-chain-instance-handler>
> <protocol-chain>
> <protocol-filter name="x-filter"
> classname="com.sun.grizzly.config.XProtocolFilter"/>
> </protocol-chain>
> </protocol-chain-instance-handler>
> </protocol>
>
> </protocols>
> <network-listeners>
> <thread-pool name="defaultThreadPool"/>
> <network-listener name="http-listener" port="38082"
> transport="tcp" protocol="pu-protocol" thread-pool="defaultThreadPool"/>
> </network-listeners>
> </network-config>
>
>
> On Oct 5, 2009, at 15:14 , melshami wrote:
>
>>
>> Hi Alexey,
>>
>> Thanks very much for the prompt reply. I am a bit confused to be
>> honest
>> since I am new to Grizzly. But I wish to configure a listener which
>> listens
>> to custom TCP based protocol. As a starting point I am trying to
>> configure a
>> simple echo server which replies to socket connections on GlassFish
>> v3.
>>
>> Regards,
>> Mohamed
>>
>>
>> Oleksiy Stashok wrote:
>>>
>>> Hi Mohamed,
>>>
>>>> I can't seem to find any documentation for how to configure grizlly
>>>> listeners and connectors on GlassFish v3.
>>> Currently doc team is working on that.
>>>
>>>> So far I can find only this page
>>>> http://wiki.glassfish.java.net/Wiki.jsp?page=GrizzlyConfigOnePager,
>>>> which
>>>> refers to a new scheme and it's not complete yet.
>>>>
>>>> Anyone can help with this please?
>>> Do you have any specific item in mind you'd like to configure?
>>>
>>> Thanks.
>>>
>>> WBR,
>>> Alexey.
>>>
>>>>
>>>> BR,
>>>> Mohamed
>>>> --
>>>> View this message in context:
>>>> http://www.nabble.com/Grizzly-configuration-on-Glassfish-v3-tp25750048p25750048.html
>>>> Sent from the Grizzly - Users mailing list archive at Nabble.com.
>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: users-unsubscribe_at_grizzly.dev.java.net
>>>> For additional commands, e-mail: users-help_at_grizzly.dev.java.net
>>>>
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe_at_grizzly.dev.java.net
>>> For additional commands, e-mail: users-help_at_grizzly.dev.java.net
>>>
>>>
>>>
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Grizzly-configuration-on-Glassfish-v3-tp25750048p25750628.html
>> Sent from the Grizzly - Users mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe_at_grizzly.dev.java.net
>> For additional commands, e-mail: users-help_at_grizzly.dev.java.net
>>
>
>
>

-- 
View this message in context: http://www.nabble.com/Grizzly-configuration-on-Glassfish-v3-tp25750048p25752899.html
Sent from the Grizzly - Users mailing list archive at Nabble.com.