# Proper shutdown of EntireX XML/SOAP RPC Server

**URL:** <https://techcommunity.softwareag.com/t/proper-shutdown-of-entirex-xml-soap-rpc-server/80717>\
**Category:** Forum\
**Tags:** Mainframe-Integration, EntireX\
**Created:** [April 15, 2009, 12:48pm UTC](https://techcommunity.softwareag.com/t/proper-shutdown-of-entirex-xml-soap-rpc-server/80717 "2009-04-15T12:48:30Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![M\_M](https://avatars.discourse-cdn.com/v4/letter/m/9fc29f/32.png) [@M\_M](https://techcommunity.softwareag.com/u/M_M)\
**Post date:** [April 15, 2009, 12:48pm UTC](https://techcommunity.softwareag.com/t/proper-shutdown-of-entirex-xml-soap-rpc-server/80717/1 "2009-04-15T12:48:30Z")

</div>

Hi,

We are setting up a solution using an EntireX XML/SOAP RPC Server to allow Natural programs accessing foreign SOAP Web Services.

The XML/SOAP RPC Server will be running on a dedicated platform and connected to a broker running on a remote computer.

We are launching the XML/SOAP RPC Server using a command which looks like:  
java com.softwareag.entirex.xml.rt.XMLRPCServer -p entirex.xml.runtime.properties -c entirex.xml.runtime.configuration.xml

We are now looking for a solution to shutdown properly the XMLRPCServer (including deregistration from the broker), by issuing a command on the host the XMLRPCServer is running on. The solution we are leaning for would be to write some simple Java Code, but we haven

---

<div class="post-metadata">

**Author:** ![Rolf\_Bahlke](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/rolf_bahlke/32/109_2.png) [@Rolf\_Bahlke](https://techcommunity.softwareag.com/u/Rolf_Bahlke)\
**Post date:** [April 20, 2009, 7:37pm UTC](https://techcommunity.softwareag.com/t/proper-shutdown-of-entirex-xml-soap-rpc-server/80717/2 "2009-04-20T19:37:56Z")

</div>

The simple solution is probably a simple kill pid command. Note that the RPC Server registers a JVM shutdown hook so it cleanly stops when the process is terminated by CTRL-C or KILL.

The more complicated solution is to use Command & Info Services (e.g. via the supplied IDL files, see [http://techcommunity.softwareag.com/ecosystem/documentation/webmethods/exx801/devkit/cis\_idl.htm](http://techcommunity.softwareag.com/ecosystem/documentation/webmethods/exx801/devkit/cis_idl.htm)). Then you first have to get all PUIDs of all registered server replicates and then issue a ShutdownServer command for all server replicates.

Alternatively you can also use SMH e.g. using the entirex.server.monitorport property, see [http://techcommunity.softwareag.com/ecosystem/documentation/webmethods/exx801/adminUnix/setupXmlRpcServer.htm](http://techcommunity.softwareag.com/ecosystem/documentation/webmethods/exx801/adminUnix/setupXmlRpcServer.htm) .

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/techcommunity/original/3X/c/d/cd19967bb605d28a72d77eb83a1cae22f3df2eb8.svg) [@system](https://techcommunity.softwareag.com/u/system)\
**Post date:** [April 2, 2021, 2:51pm UTC](https://techcommunity.softwareag.com/t/proper-shutdown-of-entirex-xml-soap-rpc-server/80717/3 "2021-04-02T14:51:48Z")

</div>


