public void init ( ) { IUser user = SecurityUtil . getAuthenticatedUser ( ) ; publisherInfo . setUserId ( user == null ? null : user . getLogicalId ( ) ) ; publisherInfo . setUserName ( user == null ? "" : user . getFullName ( ) ) ; publisherInfo . setAppName ( getAppName ( ) ) ; publisherInfo . setConsumerId ( consumer . getNodeId ( ) ) ; publisherInfo . setProducerId ( producer . getNodeId ( ) ) ; publisherInfo . setSessionId ( sessionId ) ; localEventDispatcher . setGlobalEventDispatcher ( this ) ; pingEventHandler = new PingEventHandler ( ( IEventManager ) localEventDispatcher , publisherInfo ) ; pingEventHandler . init ( ) ; }
Initialize after setting all requisite properties .