Process different types of messages

Michael McGrady mmcgrady at topiatechnology.com
Tue Sep 15 14:36:45 EDT 2009


I am very interested to follow your progress, Bertrand.  I am  
especially interested in the dynamic nature of this.  I have yet to  
experiment with that and consider it to be an extremely powerful  
mechanism.

Mike

On Sep 14, 2009, at 9:44 AM, bgoetzmann wrote:

>
> I just come to try the approach I spoke about, and it works.
> Netty is really powerful!
>
> Cheers,
>
> Bertrand.
>
>
> bgoetzmann wrote:
>>
>> Hello,
>>
>> In my Netty project whose goal is to transfer large file form a  
>> client to
>> a server, I used an ChunkedWriteHandler instance and a custom client
>> handler that uses the ChunkedFile class in order to send a file  
>> piece by
>> piece. All is OK!
>>
>> The next step for me would be to send first some information on the  
>> file
>> that is about to be sent (name, size, etc.). So I need to send a POJO
>> instance.
>> What is the approach I can take? Can you tell me if this is a valid
>> approach, having a POJO that holds the information I want on the  
>> file:
>>
>> * On the client side:
>> - when connected, add a ObjectEncoder dynamically in the pipeline  
>> (or have
>> it already in the pipeline)
>> - populates the POJO and send it to server
>> - remove the ObjectEncoder
>> - add the ChunkedWriteHandler in the pipeline
>> - send the file
>>
>> * On the server side:
>> - when connected, add a ObjectDecoder dynamically in the pipeline  
>> (or have
>> it already in the pipeline)
>> - receive the POJO and process its data
>> - remove the ObjectDecoder
>> - add a custom handler to handle messages containing file pieces
>>
>> Is there another way to process such scenario? Thank you for any  
>> help!
>>
>>
>> Bertrand.
>>
>>
>
> -- 
> View this message in context: http://n2.nabble.com/Process-different-types-of-messages-tp3643445p3643699.html
> Sent from the Netty User Group mailing list archive at Nabble.com.
> _______________________________________________
> netty-users mailing list
> netty-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/netty-users

Mike McGrady
Principal Investigator AF081-028 AFRL SBIR
Senior Engineer
Topia Technology, Inc
1.253.720.3365
mmcgrady at topiatechnology.com









More information about the netty-users mailing list