SibRaListener createListener ( final SIDestinationAddress destination , MessageEndpointFactory messageEndpointFactory ) throws ResourceException { final String methodName = "createListener" ; if ( TraceComponent . isAnyTracingEnabled ( ) && TRACE . isEntryEnabled ( ) ) { SibTr . entry ( this , TRACE , methodName , new Object [ ] { destination , messageEndpointFactory } ) ; } if ( _closed ) { throw new IllegalStateException ( NLS . getString ( "LISTENER_CLOSED_CWSIV0952" ) ) ; } final SibRaListener listener ; listener = new SibRaSingleProcessListener ( this , destination , messageEndpointFactory ) ; _listeners . put ( destination , listener ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && TRACE . isEntryEnabled ( ) ) { SibTr . exit ( this , TRACE , methodName , listener ) ; } return listener ; }
Creates a new listener to the given destination .