Migrating from JBoss to Node.js¶
If you wish to change your SEAL APW REST service from using JBoss to using Node.js, you need to
-
update SEAL APW REST service on the server, then
-
update existing SEAL APW Clients.
Updating SEAL APW REST Service¶
Replace SEAL APW REST service 2.x running in JBoss by SEAL APW REST service 6.0.1.
-
Open the easyPRIMA configuration file:
server/edc/conf/edc.cfg
-
Change the settings of
EXPORT_URI
andCONFIG_URI
:[APWREST] EXPORT_URI = "http://localhost:8084/apw-rest/admin/printers/" CONFIG_URI = "http://localhost:8084/apw-rest/settings/sealapw"
-
Set the port number to 8084. This number is used by later versions of SEAL APW REST service.
-
Change to the easyPRIMA server and delete the following files:
server/jboss/deploy/apw-rest*.war
-
Delete any old SEAL APW REST service file from JBoss by reinitializing JBoss:
jbinit
Gradual Migration from JBoss to Node.js¶
If you wish to replace your JBoss installation in order to use the SEAL APW REST service with Node.js, follow the instructions below:
-
On the easyPRIMA server, open the JBoss SEAL APW REST configuration file:
server/jboss/conf/sealapw_settings.json
-
Change the values of
urlPathTranslations
,urlPathAllPrinters
andurlPathMyPrinters
to absolute URLs with the fully qualified domain name and the port number of Node.js SEAL APW REST service:[ {"key" : "urlPathTranslations", "value" : "http://fqdn:8085/apw-rest/translations/sealapw"}, {"key" : "urlPathAllPrinters", "value" : "http://fqdn:8085/apw-rest/printers/all"}, {"key" : "urlPathMyPrinters", "value" : "http://fqdn:8085/apw-rest/printers/my"}, {"key" : "forceUpdateTranslations", "value" : "1"}, {"key" : "forceUserName", "value" : "0"}, ]
-
Insert the new URL with the port number 8085 in the following registry key of all users:
HKLM\SOFTWARE\SEAL Systems\SEALAPW\SealAPWServerURL
Caution - long duration
Deploying the registry key may take days or weeks.
-
Stop JBoss server to undeploy the old version of SEAL APW REST service:
jbstop
-
Restart JBoss server:
jbstart