XMPP / XML Frame Decoder

mheath mheath at apache.org
Wed Mar 24 11:48:44 EDT 2010


Comments in-line below.

Trustin Lee [via Netty Forums and Mailing Lists] wrote:
> Build an XML parser that works with a non-blocking input has always been
> one of my interests.  All generic XML parsers out there I know of
> require a blocking input (e.g. InputStream) to parse a document.  It
> will be outstanding if someone embarks on this effort.
I don't have a lot of time at the moment to dedicate to this but I would 
like to help where I can because I too have been interested in this for 
a long time.
>
> Apache Vysper team has written a preliminary implementation that at
> least works for XMPP:
>
>
> http://svn.apache.org/repos/asf/mina/sandbox/vysper/trunk/nbxml/src/main/java/org/apache/vysper/
I've looked at the Vysper code a little bit.  It appears to be a good 
place to start.

>
> It uses MINA IoBuffer so you will need to convert it to use
> ChannelBuffer to make it work with Netty.  The conversion should be
> trivial of course.  I'd rather want to see something that simply relies
> on byte[] though.
My preference would be something that relies on String instead of byte[] 
so that the code only has to parse the XML and not worry about decoding 
the byte[].

Just my opinion.

-Mike
>
> Cheers,
> Trustin
>
> mheath wrote:
>
> > I don't have much experience with JAXB so I can't speak to it.
> >
> > I'm thinking that something that could feed an instance of
> > org.xml.sax.ContentHandler would be ideal.  You could then take 
> existing
> > XML code and plug it into Netty.  You could also use the built in Java
> > SAX parser for testing purposes.  For Netty specific apps, you would
> > just have to figure out a nice way of sending things up the pipeline.
> >
> > -Mike
> >
> > Nicholas Hagen [via Netty Forums and Mailing Lists] wrote:
> >> I would think building something like an XML Decoder that utilizes  
> >> JAXB or other similar unmarshalling/marshalling libraries into POJOs  
> >> would be cool. I worry a bit about the performance over time with 
> the  
> >> scalability requirements of XMPP in all those conversions. However  
> >> only having to create a POJO to manage the XMPP extensions would  
> >> definitely simplify development. Just a matter of creating decoders  
> >> per extension. Very cool idea.
> >>
> >> Nicholas Hagen
> >> Z|NET Development, LLC
> >> www.znetdevelopment.com/blogs
> >> * sent from my iPhone *
> >>
> >> On Mar 12, 2010, at 11:35 AM, mheath <[hidden email]
> >> <http://n2.nabble.com/user/SendEmail.jtp?type=node&node=4723520&i=0 
> <http://n2.nabble.com/user/SendEmail.jtp?type=node&node=4723520&i=0>>>
> >> wrote:
> >>
> >>> I too would be very interested in an XMPP codec.  I started on a  
> >>> simple XMPP
> >>> server just to play around with it a bit but didn't get too far. 
>  If  
> >>> we had
> >>> a decent XML decoder on Netty, building an XMPP protocol handler on  
> >>> top of
> >>> that would be simple.
> >>>
> >>> -Mike
> >>> --
> >>> View this message in context:
> >> http://n2.nabble.com/XMPP-XML-Frame-Decoder-tp4717020p4723036.html
> >>> Sent from the Netty User Group mailing list archive at Nabble.com.
> >>> _______________________________________________
> >>> netty-users mailing list
> >>> [hidden email]
> >> <http://n2.nabble.com/user/SendEmail.jtp?type=node&node=4723520&i=1 
> <http://n2.nabble.com/user/SendEmail.jtp?type=node&node=4723520&i=1>>
> >>> https://lists.jboss.org/mailman/listinfo/netty-users
> >> _______________________________________________
> >> netty-users mailing list
> >> [hidden email]
> >> <http://n2.nabble.com/user/SendEmail.jtp?type=node&node=4723520&i=2 
> <http://n2.nabble.com/user/SendEmail.jtp?type=node&node=4723520&i=2>>
> >> https://lists.jboss.org/mailman/listinfo/netty-users
> >>
> >>
> >> View message @
> >> http://n2.nabble.com/XMPP-XML-Frame-Decoder-tp4717020p4723520.html
> >> To unsubscribe from Netty Forums and Mailing Lists, click here
> >> < (link removed) =>.
> >>
> >>
> >
> >
> -- 
> what we call human nature in actuality is human habit
> http://gleamynode.net/
>
>
>
>
> _______________________________________________
> netty-users mailing list
> [hidden email] 
> <http://n2.nabble.com/user/SendEmail.jtp?type=node&node=4789150&i=0>
> https://lists.jboss.org/mailman/listinfo/netty-users
>
> *signature.asc* (268 bytes) Download Attachment 
> <http://n2.nabble.com/attachment/4789150/0/signature.asc>
> — Trustin Lee, http://gleamynode.net/
>
>
> View message @ 
> http://n2.nabble.com/XMPP-XML-Frame-Decoder-tp4717020p4789150.html
> To unsubscribe from Netty Forums and Mailing Lists, click here 
> < (link removed) =>. 
>
>


-- 
View this message in context: http://n2.nabble.com/XMPP-XML-Frame-Decoder-tp4717020p4791857.html
Sent from the Netty User Group mailing list archive at Nabble.com.



More information about the netty-users mailing list