Adding Java EE 7 Batch Addon to JBoss Forge ? – Part 2 (Tech Tip #24)

This is the second part (part 1) of a multi-part video series where Lincoln Baxter (@lincolnthree) and I are interactively building a Forge addon to adding Java EE 7 Batch functionality.

Part 1 showed how to get started with creating an addon, add relevant POM dependencies, build and install the addon using Forge shell, and add parameters to the addon. This part shows how to add some meaningful semantics to those parameters.

Java EE 7 Batch define item-oriented processing where an item is read, optionally processed, and then written. Items could be read from an input source, CSV file, JMS destination, REST endpoint, database, or any other source. Similarly items can be written to an output stream, database, or some where else. This logic of reading, processing, and writing is captured in beans that are packaged in your WAR file. These beans need to either extend from a specific interface or extend an abstract class. For example item reader needs to either implement ItemReader interface or extends AbstractItemReader abstract class. Similarly item writer needs to either implement ItemWriter interface or extend <code<AbstractItemWriter abstract class. Item processor need to implement ItemProcessor interface.

Part 1 showed how to add --reader, --processor, --writer parameters to the newly added batch-new-jobxml command. This part will show how to identify classes for each CLI parameter that already honor the contract required by the Batch specification.

Enjoy!

As earlier, the evolving source code is available at github.com/javaee-samples/forge-addons.

The timing for the next recording is unknown at this time because of my travel schedule, but sometime next week.

Be Sociable, Share!
This entry was posted in jboss, techtip and tagged , . Bookmark the permalink.

2 Responses to Adding Java EE 7 Batch Addon to JBoss Forge ? – Part 2 (Tech Tip #24)

  1. Pingback: Adding Java EE 7 Batch Addon to JBoss Forge ? – Part 4 (Tech Tip #30) | Miles to go 2.0 …

  2. Pingback: Adding Java EE 7 Batch Addon to JBoss Forge ? – Part 5 (Tech Tip #38) | Miles to go 2.0 …

Leave a Reply

Your email address will not be published. Required fields are marked *


8 − one =

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>