RD/z Preparing for Java development
From CICS Wiki
Contents |
Articles in the RD/z series:
- RD/z Overview
- RD/z Architecture
- RD/z Desktop Installation
- RD/z Configuration
- RD/z Preparing for Java development
- RD/z Creating a simple Java project
- RD/z Deploying and Testing a simple Java project
- RD/z Adding a project to the Subversion repository
Preparing for developing Java Overview
This article will guide the reader on how to prepare Rational Developer for System Z to create Java applications targeted for the mainframe.
Accessing Subversion
Some dependencies for Java projects are kept in the version control system called Subversion. The projects that are created in RD/z will also be stored in Subversion. It is therefore imperative that the RD/z developer have access to said version control system. In order to facilitate this - please install the Subversion plugin for Eclipse (RD/z) called Subclipse. The detail of the installation is described on the following site: http://subclipse.tigris.org/.
Preparing the HFS location for your project
The output of our sample project that we will create - will be class files that need to reside in an HFS location where the CICS region can locate it. In order for all of this to work together a few resources have to be set up and configured.
- Work with your system programming staff to create an HFS dataset that is mounted at specific location in your HFS file system.
- Once this location is known - ensure that your userid that is used during RD/z operation and the CICS region userid has access to the HFS location.
- Ensure that you can view the HFS location from your Remote Systems -> z/OS UNIX Files explorer.
- Create and delete a test file to ensure that you have the necessary access to create files in this location.
Create the necessary JVM Profiles
The next step is to inform CICS where this HFS location is. This is a multistage process. The first is configure CICS to access the JVM profiles that we will use in our application.
The next step is to actually create the JVM Profile for our application. Refer to IBM documentation for details about content of profile members.
The most important aspect of the profile is to point the CLASSPATH_SUFFIX to the HFS location that we created earlier. Note that we don't just point to the location itself but actually add to the path. In our case we are planning to call our project "UtilityProject" and because of that we add that to the path. If we know that our classes will be stored in a folder called "bin" (or in some cases "classes") then we need to add that to the path as well.
Create the necessary CICS Resources
Once the JVM Profile is in place - the CICS resources can be created that will map to the JVM Profile and the class file we are about to create.
Once these dependencies have been taken care of - the creation of the first project can proceed.








