- Print
- DarkLight
Configure Movex/M3 program calls
Configure Movex/M3 program calls
Introduction to Server Program Call
Movex/M3 Program calls is the ability to call a non-api-program in Movex (RPG) or M3 on prem (java) via the IBM JT400-toolbox. The program needs to have a defined list of parameters, so called data structure, in order to be able to pass parameters between Comflow and Movex/M3. The parameters are defined as a PCML-file, which needs to be defined and deployed on the Comflow side. The communication with the Movex/M3 component is managed on the Movex/M3 side via an autojob, CASRVCL.
Overview
To be able to call a Movex/M3 java programs from a rule in Comflow the following is needed
- The jar file “camvx-x.y.z.jar” need to be installed in Movex/M3. What version depends on the version of M3 Foundation.
- An autojob for CASRVCL has to be setup in Movex in MNS050
You need to set up the following in the site def to specify which port the ServerProgramCaller server will run on:
<Property name= "connect.mvx.ng.port" value="33001"/> <Property name="connect.mvx.as400.system" value="1.23.45.67.89"/> <Property name="connect.mvx.as400.envlib" value="MVXCENV"/>
The default port on the Movex Java Server is 33 + <companyNumber> . The <comanyNumber> is the company number specified for the Autostartjob for CASRVCL
Retrieval of jar-file
Goto and login with your Corzia id: http://update.comactivity.net/
Goto Connection Kits and down load the appropriate jar-file camvx-x.y.z.jar, since it depends on what version you have of M3 Foundation.
Setup of Movex/M3
In file _SetMovex.cmd in map C:\Movex_v12\env\Comact\ServerScripts
We need to set upp SET cpBefore=C:\ComActivity\CA_Movex_v12
(Different for each installation)
To indicate the map where we put our pcml source
@echo off :: x :: ============================================= :: = = :: = Set values for Movex Server = :: = ------------------ = :: = = :: = Copyright (C) Intentia R&D AB 2003. = :: = All rights reserved. = :: = Licensed material property of Intentia. = :: ============================================= :: Change log :: ---------- :: Number Date User Description :: 031120 kavrog0 Created for 12.4.3 :: 031204 kavrog0 Added SessionTester,cpBefore, cpAfter :: :: ================================================================================ :: = All settings will be done here No changes needed in the _sub-scripts = :: = Settings for HUM, Market and customer is done in the library list function = :: = of Movex = :: ================================================================================ :: =============================== :: = Root_path : Path to Movex = :: =============================== SET Root_path=C:\Movex_v12 :: ================================================ :: = Environment: Path to Environment for Movex = :: ================================================ SET Environment=%Root_path%\env\Comact :: ======================================== :: = JavaPath: Set the path to the JVM. = :: ======================================== SET JavaPath=C:\j2sdk1.4.2_13 :: ====================================================================================== :: = cpBefore : Special classpath; added before standard classpath; normally disabled = :: ======================================================================================
SET cpBefore=C:\Corzia\CA_Movex_v12
(Different for each installation)
:: ==================================================================================== :: = cpAfter : Special classpath; added after standard classpath; normally disabled = :: ==================================================================================== :: SET cpAfter= :: ===================== :: = Set JVM options = :: =====================
Set up of CASRVCL in MNS050 in Movex/M3.
In order to drive the communication between Comflow and M3, an autojob needs to be set up.
The job CASRVCL has to be setup in MNS050
Start the job CSRVASJ with the run command
Check in the server view if you see the job CSRV01 below