protected JmsJcaSession createJcaSession(boolean transacted) throws JMSException {
        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
            SibTr.entry(this, tc, "createJcaSession", transacted);
        JmsJcaSession jcaSess = null;

        // If we have a JCA connection, then make a JCA session
        if (jcaConnection != null) {
            try {
                jcaSess = jcaConnection.createSession(transacted);
            } catch (Exception e) { // ResourceE, IllegalStateE, SIE, SIErrorE
                // No FFDC code needed
                // d238447 Generate FFDC for these cases.
                throw (JMSException) JmsErrorUtils.newThrowable(
                                                                JMSException.class,
                                                                "JCA_CREATE_SESS_CWSIA0024",
                                                                null,
                                                                e,
                                                                "JmsConnectionImpl.createSession#1",
                                                                this,
                                                                tc);
            }
        }
        else {
            if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())
                SibTr.debug(this, tc, "jcaConnection is null, returning null jcaSess");
        }

        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
            SibTr.exit(this, tc, "createJcaSession", jcaSess);
        return jcaSess;
    }
protected JmsJcaSession createJcaSession ( boolean transacted ) throws JMSException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "createJcaSession" , transacted ) ; JmsJcaSession jcaSess = null ; if ( jcaConnection != null ) { try { jcaSess = jcaConnection . createSession ( transacted ) ; } catch ( Exception e ) { throw ( JMSException ) JmsErrorUtils . newThrowable ( JMSException . class , "JCA_CREATE_SESS_CWSIA0024" , null , e , "JmsConnectionImpl.createSession#1" , this , tc ) ; } } else { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) SibTr . debug ( this , tc , "jcaConnection is null, returning null jcaSess" ) ; } if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . exit ( this , tc , "createJcaSession" , jcaSess ) ; return jcaSess ; }
Create a JCA Session.
If this Connection contains a JCA Connection, then use it to create a
JCA Session.

@return The new JCA Session
@throws JMSException if the JCA runtime fails to create the JCA Session