private void dynamicallyCreateDestination() {
        if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled())
            SibTr.entry(this, TRACE, "dynamicallyCreateDestination");

        if (_destination != null)
            return;

        // Can we create a new destination object?

        if (_destinationType != null && _destinationName != null) {
            try {
                if (_destinationType.equals(QUEUE)) {
                    _destination = com.ibm.websphere.sib.api.jms.JmsFactoryFactory.getInstance().createQueue(_destinationName);
                    if (TraceComponent.isAnyTracingEnabled() && TRACE.isDebugEnabled())
                        SibTr.debug(this, TRACE, "Dynamically created queue:" + _destination);
                } else if (_destinationType.equals(TOPIC)) {
                    _destination = com.ibm.websphere.sib.api.jms.JmsFactoryFactory.getInstance().createTopic(_destinationName);
                    if (TraceComponent.isAnyTracingEnabled() && TRACE.isDebugEnabled())
                        SibTr.debug(this, TRACE, "Dynamically created topic:" + _destination);
                }
            } catch (javax.jms.JMSException e) {
                FFDCFilter.processException(e, CLASS_NAME, FFDC_PROBE_4);
                if (TraceComponent.isAnyTracingEnabled() && TRACE.isDebugEnabled())
                    SibTr.exception(this, TRACE, e);
            }
        }

        // If we have a destination object do we need to set additional properties on it?

        if (_destination != null) {
            try {
                if (_destinationType.equals(TOPIC)) {
                    if (_topicSpace != null) {
                        ((JmsTopic) _destination).setTopicSpace(_topicSpace);
                        if (TraceComponent.isAnyTracingEnabled() && TRACE.isDebugEnabled())
                            SibTr.debug(this, TRACE, "Set topicSpace on destination");
                    }
                }
            } catch (javax.jms.JMSException e) {
                FFDCFilter.processException(e, CLASS_NAME, FFDC_PROBE_5);
                if (TraceComponent.isAnyTracingEnabled() && TRACE.isDebugEnabled())
                    SibTr.exception(this, TRACE, e);
            }
        }

        if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled())
            SibTr.exit(this, TRACE, "dynamicallyCreateDestination");
    }
private void dynamicallyCreateDestination ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && TRACE . isEntryEnabled ( ) ) SibTr . entry ( this , TRACE , "dynamicallyCreateDestination" ) ; if ( _destination != null ) return ; if ( _destinationType != null && _destinationName != null ) { try { if ( _destinationType . equals ( QUEUE ) ) { _destination = com . ibm . websphere . sib . api . jms . JmsFactoryFactory . getInstance ( ) . createQueue ( _destinationName ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && TRACE . isDebugEnabled ( ) ) SibTr . debug ( this , TRACE , "Dynamically created queue:" + _destination ) ; } else if ( _destinationType . equals ( TOPIC ) ) { _destination = com . ibm . websphere . sib . api . jms . JmsFactoryFactory . getInstance ( ) . createTopic ( _destinationName ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && TRACE . isDebugEnabled ( ) ) SibTr . debug ( this , TRACE , "Dynamically created topic:" + _destination ) ; } } catch ( javax . jms . JMSException e ) { FFDCFilter . processException ( e , CLASS_NAME , FFDC_PROBE_4 ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && TRACE . isDebugEnabled ( ) ) SibTr . exception ( this , TRACE , e ) ; } } if ( _destination != null ) { try { if ( _destinationType . equals ( TOPIC ) ) { if ( _topicSpace != null ) { ( ( JmsTopic ) _destination ) . setTopicSpace ( _topicSpace ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && TRACE . isDebugEnabled ( ) ) SibTr . debug ( this , TRACE , "Set topicSpace on destination" ) ; } } } catch ( javax . jms . JMSException e ) { FFDCFilter . processException ( e , CLASS_NAME , FFDC_PROBE_5 ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && TRACE . isDebugEnabled ( ) ) SibTr . exception ( this , TRACE , e ) ; } } if ( TraceComponent . isAnyTracingEnabled ( ) && TRACE . isEntryEnabled ( ) ) SibTr . exit ( this , TRACE , "dynamicallyCreateDestination" ) ; }
changes