Occasionally the email listener fails in the Integration Server (SAP BC 4.6). Typically this occurs due to outages of the mail host or network issues. I want to be able to build a service that I can schedule to check the email port listener�s status and, where necessary, re-activate the port.
Does anyone have any experience or development leads in this area?
Thanks!
If you execute the service “wm.server.net.listeners:listListeners” and loop over the record list “listeners” then you can check the “listeners/listening” boolean - if this if false for that listener, then it has stopped listening. To restart the listener, I have found that you need to run “wm.server.net.listeners:disableListener” followed by “wm.server.net.listeners:enableListener”.
You may also want to check the “listeners/enabled” boolean, so that you only restart those listeners that are enabled.
All of these services are in the WmRoot package, which is hidden by default in Developer.