tgqc / QView

Java MQ admin and mapping console, Netbeans Platform.
Other
6 stars 1 forks source link

Blank client connection Id not allowed on our network. #1

Closed tgqc closed 12 years ago

tgqc commented 12 years ago

http://www.mqseries.net/phpBB2/viewtopic.php?p=329391#329391

Looks like when it connects to a QM over a client channel, it is passing through a blank connection id. Can this behaviour be changed? Our security exit will not permit such connections.

tgqc commented 12 years ago

Yeah can be done fairly easily.

The code is organised into an MVC structure. The property will only need to be added to the connection props table in the 'data' (model) PCF classes 'MQConnect.java' and 'WMQQmgr', and the value sourced from the 'control' classes 'Discovery.java' (connection event) and 'EntryPoint.java' (user options).

I will look at that today sometime.

Of course, if you want to play around, load it up into Netbeans. A new build takes less than a minute.

tgqc commented 12 years ago

The new windows zip is up, complete with connection userId.

If the defaults do not suite, set the Connection Id along with the server conn channel name etc in the network node properties pane to the left. Then hit the target icon.

The initial user ID is the default, however it is possible to set a different user ID for any mapped queue manager, including those to which a connection was refused. Simply make the change and hit the target icon again.

tgqc commented 12 years ago

source changes uploaded