Calling an asynchronous EJB method to save a ZIP

The following code block demonstrates the saving of a ZIP file by calling the asynchronous EJB method:

    FileBean fileBean = new FileBean( file, "zip" );    zipHandler.handler( fileBean );

Get Java EE 8 Design Patterns and Best Practices now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.