From the course: Learning Java Enterprise Edition

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Batch in practice, part 1

Batch in practice, part 1 - Java EE Tutorial

From the course: Learning Java Enterprise Edition

Start my 1-month free trial

Batch in practice, part 1

- [Instructor] Now let's turn our attention to the application and see how the batch processing API is made use of in the cargo application. Okay, let's get started. Cargo events are usually entered by the mobile application. This is okay for a few events, but what if we have hundreds or even thousands of these events? Another way to enter data will be to use some kind of large batch process. So, for example, a port that has its own way of tracking cargo can export cargo events into a CSV file and then port them directly into the cargo tracking application. So how can this be done? One way would be to upload the CSV to the application via a webpage, another to FTP a CSV file onto the server directly. However, as the cargo application does not have an upload feature, we're going to simulate the upload of a CSV file to the upload directory on the server. Okay, so let's have a look at the upload directory. The upload directory is located in root tmp. If you're on a Windows machine…

Contents