Using JAVA code in servicenow
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-08-2019 10:23 PM
Hi,
Is there any ways we could use java code in ServiceNow? We're trying to integrate with a third-party application without using REST functionality.
So, our JAVA code is expected to import java packages and call third-party API.
Thanks.
- Labels:
-
Scripting and Coding

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-08-2019 10:35 PM
Hi Balaji,
If you don't want to publish the Java code as a web service then there is another way to use java code in ServiceNow. You can upload custom JAR files to ServiceNow MID Server and then you can trigger the java function call using probe. As a MID Server is a java service which is connected to your ServiceNow instance, it can accept those java call requests execute them, and return the results in ECC Queue.
Here is a blog post mentioning how you can do that:
http://www.john-james-andersen.com/blog/service-now/video-use-custom-jar-files-on-a-mid-server.html
Hope this helps!
Cheers,
Manish
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-08-2019 11:07 PM
Thanks, Manish for the response.
I haven't tried using webservice. I shall try using webservices as well if that would be more reliable and feasible.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-29-2024 07:09 PM
Hello Manish,
How to publish the Java code as a web service in ServiceNow? Can you please share any reference article.