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
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.
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.
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.