Applying patch on Connect Server
This section lists the prerequisites and steps for applying this patch.
Prerequisites
- You have Read and Write permissions on all subfolders and files of .../AdeptiaConnect-<Version>.
- Services such as Kernel, WebRunner, and AIMap are stopped.
Applying the patch
For Windows
- Download the latest patch from the provided URL.
- Extract the downloaded zip file in a folder.
- Open the Command Prompt.
- Go to the folder where you have extracted the zip file.
- Run the following command to apply the patch:
Apply-Patch.bat “<Path where Adeptia Connect is installed till AdeptiaServer folder>”
For example:
Apply-Patch.bat "C:/Program Files/AdeptiaConnect/AdeptiaConnect-x.x/ConnectServer/AdeptiaServer"
- Once the patch is applied, a confirmation message is displayed.
Note: While applying the patch you may come across following warning messages that you should ignore.
Warning: Not deploying connect2.0 accelerator because no change list is present.
Warning: Not deploying EDI accelerator because no change list is present. - Start the services, i.e. Kernel, WebRunner, and AIMap.
For Linux
- Open the Terminal.
- Download the latest patch from the provided URL.
- Extract the downloaded zip file in a directory.
- Go to the directory where you have extracted the zip file.
- Run the following command to apply the patch:
./Apply-Patch.sh <Path where Adeptia Connect is installed till AdeptiaServer folder>
For example:
./Apply-Patch.sh /mnt/AdeptiaConnect-x.x/ConnectServer/AdeptiaServer
- Once the patch is applied, a confirmation message will be displayed.
Note: While applying the patch you may come across following warning messages that you should ignore.
Warning: Not deploying connect2.0 accelerator because no change list is present.
Warning: Not deploying EDI accelerator because no change list is present. - Start the services, i.e. Kernel, WebRunner, and AIMap.
After you have applied the patch, PatchApplicationLog_<Date>.log file is created inside the logs folder. The logs folder is available in the same folder from where you have applied the patch. PatchApplicationLog_<Date>.log file contains the logs generated during patch application and can be used to troubleshoot any issue related to the patch application.
Patch application may take some time, in case there are a large number of records in the backend and log database.
The patch will automatically rollback, in case of any error during the deployment.
After applying this patch, refer to post patch deployment section for manual changes.
Post patch deployment steps
Changes in AgentContext.xml file
After deploying the patch, update database configuration in AgentContext.xml file to store heartbeat and other agent operation in the database. To update this file, follow the steps below:
- Go to …<ConnectServerInstallFolder>\AdeptiaServer\ServerKernel\etc location.
- Open AgentContext.xml file.
Set the following properties based on your environment.
If you are going to use a separate backend database for the Agent, you need to create the database and update this file with new database property. Or, you can use the existing backend database of Adeptia Connect and use its properties to update this file.Under "dataSourceAgent" section, update the following properties:
Update the property "jdbcUrl", for example, in case of MySQL being used as a backend database, the format of jdbcUrl will be jdbc:mysql://<hostname>:<port no.>/<DB Name>?useSSL=false.
Here,
Hostname: Name/IP address of the database server.
Port No.: Port number of the database.
Database name: Name of the database.If you are using SQL or Oracle as a backend database, the format of jdbcUrl will be:
SQL
jdbc:sqlserver://<hostname>:<port no.>;DataBaseName=<DB Name>Oracle
jdbc:oracle:thin:@<hostname>:<port no.>:<DB Name>driverClass: Update the driver class name, for example, "com.mysql.cj.jdbc.Driver" if MySQL database is used.
If you are using SQL or Oracle as a backend database, update the value of driverClass as:
SQL
com.microsoft.sqlserver.jdbc.SQLServerDriverOracle
oracle.jdbc.OracleDriver- user: Enter the user name.
- password: Enter the password.
dataSourceName: Enter the backend database name.
You can define rest of the properties based on your requirement.
Under "AgentEntityManagerFactory" section, update the "hibernate.dialect" property.
"hibernate.dialect" property for each database is as follows:
MySQL
org.hibernate.dialect.MySQL5InnoDBDialectSQL
org.hibernate.dialect.SQLServerDialectOracle
org.hibernate.dialect.Oracle10gDialect- Save the file.
Changes in hubConfiguration.properties file
Configure email notification property, recipientsEmail, in hubConfiguration.properties file.
- Go to …<ConnectServerInstallFolder>\AdeptiaServer\ServerKernel\etc location.
- Open hubConfiguration.properties file.
Set the "recipientsEmail" property with the email id of the recipient.
You can also update other properties like mailBodyContenType, mailSubject, mailBodyHeader, and mailBodyFooter based on your requirements.- Save the file.
Next