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 » General IBM MQ Support » QM - MQConnectionFactory - getPort()

Post new topic  This topic is locked: you cannot edit posts or make replies.
 QM - MQConnectionFactory - getPort() « View previous topic :: View next topic » 
Author Message
scravr
PostPosted: Thu Jun 24, 2010 7:42 am    Post subject: QM - MQConnectionFactory - getPort() Reply with quote

Partisan

Joined: 03 Apr 2003
Posts: 391
Location: NY NY USA 10021

HI ALL,

Is it posible the getPort() returns the default 1414 even when there is no 1414 port?
This code alway rerun port 1414 even when port is 1417 ???
Also tried with client JNDI on port 1420; and still getting 1414 !!!


MQConnectionFactory mqcf = null;
InitialContext ic;
Hashtable<String, String> hashTable = new Hashtable<String, String>();
hashTable.put(PROVIDER_URL,"file:/C:/JNDI/");
hashTable.put(INITIAL_CONTEXT_FACTORY,"com.sun.jndi.fscontext.RefFSContextFactory");
hashTable.put(SECURITY_AUTHENTICATION, "none");

ic = new InitialContext(hashTable);
mqcf = (MQConnectionFactory)ic.lookup(ConnFactory);
QmPort = mqcf.getPort();
QmHost = mqcf.getHostName();


Any ideas what is wron in code ?

Thanks,
Mos
Back to top
View user's profile Send private message Send e-mail MSN Messenger
Vitor
PostPosted: Thu Jun 24, 2010 8:45 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

Isn't this a double post of this??
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Thu Jun 24, 2010 2:36 pm    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

Because running cf.getPort() makes only sense if cf.getTransport() returns a client connection type transport??
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  This topic is locked: you cannot edit posts or make replies. Page 1 of 1

MQSeries.net Forum Index » General IBM MQ Support » QM - MQConnectionFactory - getPort()
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.