|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
[SOLVED] ExecutionSession ping |
« View previous topic :: View next topic » |
Author |
Message
|
Liquid |
Posted: Fri Feb 02, 2007 4:41 am Post subject: [SOLVED] ExecutionSession ping |
|
|
Acolyte
Joined: 08 Sep 2004 Posts: 52 Location: Hungary, Europe
|
Hello!
Is there anybody who used the isLoggedOn() method on the ExecutionService object in Java?
I'd like to write a kind of "ping" method for checking if an already established execution service connection is still alive or not.
For this reason, I call the refresh() method first and then the isLoggedOn() method.
My question is:
1) is it a sufficient way to check that the execution service is still connected to the wf server?
2) how resource consuming is this? I mean how many time these calls need?
Thanks in advance,
Horvath Robert Mark
Last edited by Liquid on Wed Feb 07, 2007 2:49 am; edited 1 time in total |
|
Back to top |
|
 |
jmac |
Posted: Fri Feb 02, 2007 6:37 am Post subject: |
|
|
 Jedi Knight
Joined: 27 Jun 2001 Posts: 3081 Location: EmeriCon, LLC
|
If I understand correctly, this is something I have done, and it is not terribly expensive. The refresh() is the expensive piece, as it does a roundtrip to the Server, but then the isLoggedOn() only checks the local ES.
I do not know that it is documented exactly what this costs in BWU, but it certainly should be NO MORE expensive than a logon call, and I suspect it would be less. _________________ John McDonald
RETIRED |
|
Back to top |
|
 |
Liquid |
Posted: Mon Feb 05, 2007 7:31 am Post subject: |
|
|
Acolyte
Joined: 08 Sep 2004 Posts: 52 Location: Hungary, Europe
|
Hello JMac!
My assumption was the same what you confirmed now. So, probably this is right
Thanks,
Liquid |
|
Back to top |
|
 |
tsrisudh |
Posted: Mon Feb 05, 2007 5:21 pm Post subject: |
|
|
 Centurion
Joined: 11 Aug 2005 Posts: 113
|
Same is my experience, when you only have isLoggedOn() without the refresh the results are not correct, so it is required to put a refresh() before this, and though refresh is costly it avoids lot of other problems like max handles getting reached etc, because of multiple logins. _________________ Srisudhir Tadepalli |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|