ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » Workflow Engines - IBM MQ Workflow & Business Process Choreographer » [SOLVED] ExecutionSession ping

Post new topic  Reply to topic
 [SOLVED] ExecutionSession ping « View previous topic :: View next topic » 
Author Message
Liquid
PostPosted: Fri Feb 02, 2007 4:41 am    Post subject: [SOLVED] ExecutionSession ping Reply with quote

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
View user's profile Send private message
jmac
PostPosted: Fri Feb 02, 2007 6:37 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Liquid
PostPosted: Mon Feb 05, 2007 7:31 am    Post subject: Reply with quote

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
View user's profile Send private message
tsrisudh
PostPosted: Mon Feb 05, 2007 5:21 pm    Post subject: Reply with quote

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
View user's profile Send private message Yahoo Messenger
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » Workflow Engines - IBM MQ Workflow & Business Process Choreographer » [SOLVED] ExecutionSession ping
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.