/** PreCreate the Master Channel for this GridTalk. */ private void preCreateMasterChannel() throws Throwable { ConnectionSetupProperties props = DelegateHelper.getProperties(); String refId = _ctx.getGridNodeID().toString(); String namePrefix = "GT." + refId + "."; // NSL20051115 Use return values from the preCreateXXX() methods CommInfo _myCommInfo = preCreateCommInfo(namePrefix, refId, props); SecurityInfo _mySecInfo = preCreateSecurityInfo(namePrefix, refId, props); PackagingInfo _myPkgInfo = preCreatePackagingInfo(namePrefix, refId, props); String channelName = namePrefix + props.getMasterChannelName(); // create channelinfo with refId, commInfo, securityinfo, packagingInfo _myChannel = DelegateHelper.retrieveChannel(refId, channelName); if (_myChannel == null) { _myChannel = DelegateHelper.createChannelInfo(refId, channelName, props.getMasterChannelDesc()); _myChannel.setTptCommInfo(_myCommInfo); _myChannel.setPackagingProfile(_myPkgInfo); _myChannel.setSecurityProfile(_mySecInfo); _myChannel = DelegateHelper.createChannelInfo(_myChannel); // NSL20051115 } else { // update the channel info with new profiles DelegateHelper.updateChannelInfo( _myChannel, props.getMasterChannelDesc(), _mySecInfo, _myPkgInfo, _myCommInfo); DelegateHelper.updateChannelInfo(_myChannel); } }