Re: TomEE JAX-RS MessageBodyWriter / Reader not working like the standard

2014-10-20 Thread iluvtr
Yeah, you're right Romain, I didn't remember that in plain Tomcat I was doing writer.close(); and close() flushes automatically the stream. -- View this message in context: http://tomee-openejb.979440.n4.nabble.com/TomEE-JAX-RS-MessageBodyWriter-Reader-not-working-like-th

Re: TomEE JAX-RS MessageBodyWriter / Reader not working like the standard

2014-10-19 Thread Romain Manni-Bucau
harsets.UTF_8); > gson.toJson(t, writer); > writer.flush(); //This line is the path to success! > } > > } > > > > > -- > View this message in context: > http://tomee-openejb.979440.n4.nabble.com/TomEE-JAX-RS-MessageBodyWriter-Reader-not-working-like-the-standard-tp4672454p4672455.html > Sent from the TomEE Users mailing list archive at Nabble.com.

Re: TomEE JAX-RS MessageBodyWriter / Reader not working like the standard

2014-10-19 Thread iluvtr
s message in context: http://tomee-openejb.979440.n4.nabble.com/TomEE-JAX-RS-MessageBodyWriter-Reader-not-working-like-the-standard-tp4672454p4672455.html Sent from the TomEE Users mailing list archive at Nabble.com.

TomEE JAX-RS MessageBodyWriter / Reader not working like the standard

2014-10-19 Thread iluvtr
t;,"contactName":"Maria Anders","contactTitle":"Sales Representative","address":"Obere Str. 57","city":"Berlin","postalCode":"12209","country":"Germany","phone":"030-0074321","fax":"030-0076545"} thank you so much! -- View this message in context: http://tomee-openejb.979440.n4.nabble.com/TomEE-JAX-RS-MessageBodyWriter-Reader-not-working-like-the-standard-tp4672454.html Sent from the TomEE Users mailing list archive at Nabble.com.