Hi Ben.

Thanks for your help. Reading my last post again I think I wasn't clear
enough.
My server will handle TWO different types of clients:

1) small network devices (via UDP)
2) desktop applications (possibly using hessian)

The server has to publish the events created on the network enabled devices
to all desktop clients that subscribed to the correct type of event.

I guess you thought that I was trying to use hessian for #1, not #2.
I never used hessian before. I would be really nice to have a
small/efficient protocol handler to send and receive messages back and forth
(server and client #2). I'm not sure if hessian is the way to go. Maybe a
plain tcp socket would be better to push events from the sever to desktop
clients.

Thanks again!

Cheers.

-- 
Leandro Rodrigo Saad Cruz
software developer - certified scrum master
:: scrum.com.br
:: db.apache.org/ojb
:: guara-framework.sf.net
:: xingu.sf.net

On 8/4/07, Ben Hood <[EMAIL PROTECTED]> wrote:
>
> > Start/Stop mina is not a problem. My guess is that your magic (handling
> the
> > hessian protocol) is implemented in your MethodAwareStreamHandler. Is
> this
> > correct?
>
> Correct.
>
> > Yes. I don't need jetty. I'm not writing a servlet application. I'm
> writing
> > a little server to listen to UDP packates and notify who is interested.
> I'm
> > trying to use hessian as the client/server protocol.
>
> Fair enough. In that case I would not be looking at the stuff I was
> doing because it is based on a lower level streaming API for hessian
> that I wrote ( http://wireformat.org/hessian-streaming-example.shtml
> ), which will not work so well using a packet orientated network
> protocol. In that case I would recommend you looking at the source
> code of caucho's implementation to see how you can adapt the
> HessianInput and HessianOuput classes so that they work in a frame
> based fashion. One method that springs to mind is to read/write
> to/from ByteArray buffers which can composed to/decomposed from
> network frames, but I haven't really thought about this too much.
>
> HTH,
>
> Ben
>
>
> _______________________________________________
> hessian-interest mailing list
> [email protected]
> http://maillist.caucho.com/mailman/listinfo/hessian-interest
>
_______________________________________________
hessian-interest mailing list
[email protected]
http://maillist.caucho.com/mailman/listinfo/hessian-interest

Reply via email to