How to use long polling in ServiceNow

MarvinDS
Tera Contributor

Hi Team,

 

I need to verify if Servicenow supports long polling or not.

 

Use case Scenario: There is a third party platform, I need to subscribe to its events and frequently open and keep the connection open for it to detect server changes and send it to ServiceNow (just as done in long polling).

 

Is there any way to do this in ServiceNow?

 

Thanks

3 REPLIES 3

newhand
Mega Sage

@MarvinDS 

I cant't find anything about  long polling.

But you can use long plling via mid server .

snow ->ecc queue-> mid-server  -> mid-server scripts ->  long polling tools(java python and any other )

 

 

 

Please mark my answer as correct and helpful based on Impact.

MarvinDS
Tera Contributor

Hi @newhand ,

Can you help me find the file you mentioned (maybe a tablename or link to a module), not able to find it under ecc_queue or mid server modules.

Thanks

newhand
Mega Sage

HI @MarvinDS 

Eccqueue and mid-server can offer a ability to run any scripts or applications , with this you can do anything that servervice-now instance can't do.


below link is about midserver(information about eccqueue can also be found from this link)

https://docs.servicenow.com/bundle/tokyo-servicenow-platform/page/product/mid-server/concept/mid-ser...

 

and   the below part  i posted needs to be created by yourself .

mid-server scripts ->  long polling tools(java python or any other )

 

 

 

 

Please mark my answer as correct and helpful based on Impact.