Hi Everyone,
I am having this issue with entirex .net wrapper. Whenever the rpc server crashes (gets hung for some reasons) and the client is trying to logon, the application gets hung because it’s not getting a response from the server. The code for the logon in my .net application is something like this:
broker = New Broker(strBrokerId, strUserId)
broker.logon(); <== the application gets hung here when rpc server is down.
service = New Service(broker, strServerId)
service.Timeout = Convert.ToUInt32(15)
rpclibObj = New SoftwareAG.EntireX.NETWrapper.Generated.MyLib.Rpclib(service)
…
In my java wrapper application, i have similar codes:
broker = New Broker(strBrokerId, strUserId);
broker.logon();
rpclibObj = New Rpclib(broker, serverid);
rpclibObj .setDefaultWaitTime(15S);
but don’t have the above problem because somehow there is a response returned to the application indicating that the server is down.
My question is how do I tell the application that it should only wait for 15 seconds for get a response from a broker. In other words, if it can’t logon to the broker in 15 seconds, then it should return program control to the application?
Thanks and Regards,
Paul
#webMethods#Mainframe-Integration#EntireX