Using JAVA code in servicenow

G Balaji
Kilo Guru

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.

3 REPLIES 3

Manish Vinayak1
Tera Guru

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

 

 

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.

Hello Manish,

How to publish the Java code as a web service in ServiceNow? Can you please share any reference article.