# Gateway module, addservlet buit how to invoke it?

**URL:** <https://forum.inductiveautomation.com/t/gateway-module-addservlet-buit-how-to-invoke-it/11914>\
**Category:** Module Development\
**Created:** [July 11, 2016, 12:39pm UTC](https://forum.inductiveautomation.com/t/gateway-module-addservlet-buit-how-to-invoke-it/11914 "2016-07-11T12:39:15Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mazeyrat](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mazeyrat/32/10955_2.png) [@mazeyrat](https://forum.inductiveautomation.com/u/mazeyrat)\
**Post date:** [July 11, 2016, 12:39pm UTC](https://forum.inductiveautomation.com/t/gateway-module-addservlet-buit-how-to-invoke-it/11914/1 "2016-07-11T12:39:15Z")

</div>

With …getGatewayContext().addServlet(“test”,com.xyz.TestServlet.class) we can add servlet in the Gateway scope of a module.

I woulld like to know the url to invoke this servlet ![:scratch:](https://us1.discourse-cdn.com/inductiveautomation/original/1X/76d1620bec252bfac07050c889ff5a91dc8a9c25.gif ":scratch:")

localhost:8088/…?

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [July 11, 2016, 3:46pm UTC](https://forum.inductiveautomation.com/t/gateway-module-addservlet-buit-how-to-invoke-it/11914/2 "2016-07-11T15:46:55Z")

</div>

at /main/system/{servletName}
