//----------------------------------------------------------------------------- void BaseHelper::createNotificationChannel() { //sanity check. If we cannot access the naming service, there is //no point whatsoever in continuing. if(CORBA::is_nil(namingContext_m)){ ACSErrTypeCORBA::CORBAReferenceNilExImpl ex(__FILE__, __LINE__, "BaseHelper::createNotificationChannel"); ex.setVariable("namingContext_m"); throw ex; } //get access to the notification service getNotifyService(); //here is where the channel is actually created notifyChannel_m = notifyFactory_m->create_channel(getQoSProps(), getAdminProps(), channelID_m); //ensure it's a valid reference if(CORBA::is_nil(notifyChannel_m.in())){ ACSErrTypeCORBA::CORBAReferenceNilExImpl ex(__FILE__, __LINE__, "BaseHelper::createNotificationChannel"); ex.setVariable("notifyChannel_m"); throw ex; } // Bind notification channel to Naming service attachChannelToNS(); }
PFileSystemNotify CFileSystemServiceImpl::getNotifyService() { PClient_JSFS bclient = this->bclient.lock(); return getNotifyService(bclient); }