Site icon yCrash

Configuration Mid Server On ServiceNow Infrastructure

In this blog, we’ll delve into the essential steps to run external java applications in the ServiceNow MID Server infrastructure. The integration of custom Java applications into ServiceNow MID Server infrastructure offers a robust means to enhance the platform’s capabilities significantly such as employ encryption libraries, interface with external frameworks, data exchanges with data sources/services and execute intricate calculations.

1. Creating ServiceNow Application

To create a new application in ServiceNow platform, follow these steps:

Fig: App Engine Studio
Fig: App Engine Studio interface
Fig: Creating ServiceNow Application

2. Setup Amazon EC2 Instance

You can run the MID Server on any platform(Windows, Linux, Mac, …). For our example, let’s launch ServiceNow MID server in the Amazon EC2 Windows instance. 

3. Installing MID Server on the EC2 Instance

Next step is to install ServiceNow MID server on the AWS EC2 windows instance. It can be achieved by following steps:

Fig: Download MID Server
 Fig: Installing Mid-Server on the EC2 Windows Server
Fig: ServiceNow developer My instance menu
Fig: Credentials for configuring Mid-Server on the EC2 Windows Server

Fig: Review MID-server configuration
 Fig: ServiceNow MID-server view

4. Add a JAR file to the MID Server

In order to run your java application in ServiceNow MID Server, you need to compress your java application class files into a JAR file. This JAR file can be added to MID Server following the steps given below:

Fig: Adding JAR file into the MID Server
Fig: MID-server showing the newly added JAR file

5. Running Java application from MID Server

To run the custom java application, launch the newly added JAR file from the MID Server using the steps mentioned below:

Step 1: Start Command Line Interface:

On Windows: Open Command Prompt.
On Unix/Linux/macOS: Open Terminal.

Step 2: Locate MID Server Directory: Navigate to the directory containing your MID Server using the change directory command.

cd /path/to/MIDServer/agent

Step 3: Run the JAR file by issuing following command

java -jar your-jar-file-name.jar

Note: Replace ‘your-jar-file-name.jar’ with the actual name of the JAR file you wish to run.

Conclusion

This guide provides a step-by-step walkthrough for configuring the MID Server on the ServiceNow infrastructure. It begins with creating a test application, ‘testApplication,’ within ServiceNow’s Studio, followed by the integration of custom Java applications to enhance the platform’s capabilities. The MID Server, operating as either a Windows service or UNIX daemon, becomes a pivotal component for seamless communication and data exchange between ServiceNow and external entities. The guide emphasizes the importance of launching a Windows Server EC2 instance on AWS with sufficient resources for the MID Server. The incorporation of a JAR file into the MID Server, along with the installation of JDK 21, expands functionalities and ensures compatibility with the latest Java features.

Exit mobile version