Making Batch API work on GlassFish.