Blogs by

Maksim Maltsev

Here is a short and simple example of how to use JPA outside of EJB container and provide JSON rest output. As a JPA Provider I selected EclipseLink as it is a reference implementation, but

In case you need to zip some data, for sending to the client on the fly without intermediary file creation that’s simple as piece of cake: ByteArrayOutputStream bos = new ByteArrayOutputStream();                                                        ZipOutputStream zipfile