Step 6. Deploy the JSON Solution for EmployeeDeptSect

INT010A - JSON Service - Define Server-side logic

You need a server in order to complete this step. If a server is not available, you can complete this step, except for Publishing the files.

In the preceding step, you built the files for the JSON type in your development environment.

INT010A - JSON Service - Define Server

In these next steps, you will move the properties file to Integrator and then to the JSM server.

1.  Display the Project tab for your project in the LANSA Integrator Studio.

     So that you can see your project's files, expand the Solutions folder, then expand the EmployeeDeptSect folder.

2.  Copy the properties files to the Integrator project folder. To do this:

a.  Highlight and right click the HTTPInboundJSONBindService.properties file to open the context menu.

      Select Send To and then Integrator Folder from the context menu.

      Highlight and right click the HTTPOutboundJSONBindService.properties file to open the context menu.

      Select Send To and then Integrator Folder from the context menu.

3.  Copy the jar file to the Integrator project folder. To do this:

a.  Highlight the iiiEmployeeDeptSect.json.jar file to open the context menu.

b.  Select Send To and then Integrator Folder from the context menu.

4.  Collapse the Solutions folder and expand the Integrator folder.

     Note the location of your Solution files in the Integrator project folder

5.  From your Project tab in Studio, open your server instance so that you can move the properties and jar files to it.

a.  Your server will already be defined from earlier exercises in this course. Your course may be using an IBM i JSM Server, in which case the definition will look similar to the following:

Wor9EB  

b.  If you are using a local web server and JSM Server, your server definition will look like the following:

Wor9EC

c.  Select the appropriate server and right click to Open Server.

Wor341

d.  Your Project tab will now show both your local files and the JSM server's files.

Wor347

6.  Move the jar file to the JSM server:

a.  Highlight the jar file in the Integrator / bindings folder of the Project panel

b.  Right click to open the context menu.

c.  Select Publish File from the context menu, and select Yes in the confirm dialog

     You will now see the jar files in the bindings folder of the JSM server.

7.  Create a section in the service properties file on the JSM server.

a.  Highlight the properties file HTTPInboundJSONBindService.properties in the properties folder of the Project pane.

b.  Right click to open the context menu.

c.  Select Publish Section from the context menu, and select Yes in the Confirm dialog.

    Highlight the properties file HTTPOutboundJSONBindService.properties in the properties folder of the Project pane.

e.  Right click to open the context menu.

f.  Select Publish Section from the context menu, and select Yes in the Confirm dialog.

     Your properties files are used to add a section to the JSONServerService properties file on the server.