Step 3: Add the Necessary JARs to the Project Library
Since the getIdentifier operation has been created and the service has been saved, Introduce has generated all of the required code for the operation to work as a grid service operation. However, the operation itself needs to be implemented with actual code to perform the desired task. Before this can be done, the necessary JARs need to be added to the project library for the StockManager service. The JARs are dependencies of the naming authority.
- Open <CAGRID_LOCATION>/projects/identifiers-client/ext/dependencies/impl/jars.
- Copy the following jars to the location: %>StockManager/lib:
- caGrid-identifiers-namingauthortiy-1.4.jar
- caGrid-Identifiers-NAService-client-1.4-dev.jar
- caGrid-Identifiers-NAService-common-1.4-dev.jar
- caGrid-Identifiers-NAService-stubs-1.4-dev.jar
- Open Eclipse.
- Import the StockManager project:
- Select File and then Import...
- Select Existing Projects into Workspace and click Next.
- Browse to the location of the StockManager service and click Finish.
- Add the jars to the project library:
- Right-click on the StockManager project from the Package Explorer window on the left and select Properties.
- Select Java Build Path from the left panel in the properties window.
- Select the Libraries tab and then click Add JARs...
- Browse to StockManager/lib and add all of the listed JARs.
- Click OK to close the properties window.





