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 » IBM MQ API Support » Making XMS .Net code use Reconnecting client feature

Post new topic  Reply to topic
 Making XMS .Net code use Reconnecting client feature « View previous topic :: View next topic » 
Author Message
sijtom0703
PostPosted: Mon Feb 11, 2013 9:12 am    Post subject: Making XMS .Net code use Reconnecting client feature Reply with quote

Voyager

Joined: 28 May 2011
Posts: 84
Location: USA

Hi,

I have an existing XMS .Net client application and I am trying to add the Reconnecting Client feature to it. The client version is
Quote:
Name: WebSphere MQ
Version: 7.0.1.1


Code:
private static IConnectionFactory cf = XMSFactoryFactory.GetInstance(XMSC.CT_WMQ).CreateConnectionFactory();

        public string WMQ_HOST_NAME { set { cf.SetStringProperty(XMSC.WMQ_HOST_NAME, value); } }
        public int WMQ_PORT { set { cf.SetIntProperty(XMSC.WMQ_PORT, value); } }
        public string WMQ_QUEUE_MANAGER { set { cf.SetStringProperty(XMSC.WMQ_QUEUE_MANAGER, value); } }
        public string WMQ_CHANNEL { set { cf.SetStringProperty(XMSC.WMQ_CHANNEL, value); } }
public int WMQ_CONNECTION_MODE
        {
            set
            {
                if (value < 0)
                    value = XMSC.WMQ_CM_CLIENT_UNMANAGED;
                cf.SetIntProperty(XMSC.WMQ_CONNECTION_MODE, value);
                //set to non RFH header
                //cf.SetIntProperty(XMSC.WMQ_TARGET_CLIENT, XMSC.WMQ_TARGET_DEST_MQ);
            }
        }



Theoretically will it work with Reconnecting feature if I add the below two lines to this??

Code:
//Adding Client Reconnecting Parameters
        public int WMQ_CLIENT_RECONNECT { set { cf.SetIntProperty(XMSC.WMQ_CLIENT_RECONNECT_OPTIONS, XMSC.WMQ_CLIENT_RECONNECT);} }
        public int WMQ_CLIENT_RECONNECT_TIMEOUT { set { cf.SetIntProperty(XMSC.WMQ_CLIENT_RECONNECT_TIMEOUT, 150);} }
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ API Support » Making XMS .Net code use Reconnecting client feature
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.