8.4.4. Initial Setup of Nablarch batch Project for Container without DB connection

The following is procedures of initial setup of the Nablarch batch project for container without DB connection:

  • Generating Nablarch batch project for container without DB connection
  • Confirm communications of Nablarch batch project without DB connection
  • Create a container image
  • Run Container Image

8.4.4.1. Overview of the generated project

The overview of the project generated by this procedure is as follows.

Item Description
Project type Maven project
Project composition Single project composition
What is included in the generated project?

The following is included in the generated project:

  • Basic configuration for the Nablarch batch application
  • On-demand batch application for communication confirmation
  • Initial configuration of the tool that operates in conjunction with Maven (is imported by referring to nablarch-archetype-parent (parent project)).

For relationship with other projects and directories, see Maven Archetype Configuration.

8.4.4.2. Create blank project

Generate a blank project using the archetypes provided by Nablarch.

8.4.4.2.1. Execute the mvn command

Use Maven Archetype Plugin(external site) to generate a blank project.

Change the current directory to the directory where the blank project (can be any directory) is to be created, and place the following file.

Batch file

After placing the file, specify the necessary parameters in the arguments and execute the bat file.

generateContainerNablarchBatchDblessProject.bat 5u23 <<groupId>> <<artifactId>> <<version>> <<package(optional)>>

The parameters configured in the above command are as follows. If you want to change the version of Nablarch, change 5u23. Change the current directory to the directory where the blank project (can be any directory) is to be created.

Input item Description Configuration example
groupId Group ID (normally, enter the package name) com.example
artifactId Artifact ID myapp-container-batch-dbless
version Version number 0.1.0
package Package (normally the same as group ID) com.example

Important

Item groupId and package are mapped to the Java package name. Use lowercase letters, numbers, and dots for these input values, and do not use hyphens.

If the command ends normally, a blank project is created under the current directory.

8.4.4.3. Communication confirmation

The communication confirmation mechanism and procedures are the same as for a normal Nablarch batch project without DB connection. Thus, see Initial Setup of the Nablarch Batch Project without DB connection.

Note

The artifact ID should be replaced with myapp-container-batch-dbless to specify the directory and command.

8.4.4.4. Create a container image

The procedure for creating a container image is the same as for a normal Nablarch batch project for container. Thus, see Create a container image of the Nablarch Batch Project for Container.

Note

The artifact ID should be replaced with myapp-container-batch-dbless to specify the directory and command.

8.4.4.5. Run a container image

The procedure to run a container image is the same as for a normal Nablarch batch project for container. Thus, see Run a container image of the Nablarch Batch Project for Container.

Note

The artifact ID should be replaced with myapp-container-batch-dbless to specify the directory and command. Also, in the Nablarch batch project for container without DB connection, only on-demand batch can be executed.