Package com.sun.messaging.jmq.jmsservice.JMSService

Examples of com.sun.messaging.jmq.jmsservice.JMSService.SessionAckMode


                "isTransacted=" + isTransacted + ":" +
                "acknowledgeMode=" + acknowledgeMode);
        _checkIfClosed("createSession():");
        this.setUsed();
       
        SessionAckMode ackMode;
        long sessionId;
        if (ResourceAdapter._isFixCR6760301()){
          boolean actualTransactedArg = overrideTransacted(isTransacted);
            int actualAcknowledgeModeArg = overrideAcknowledgeMode(acknowledgeMode);
            sessionId = _createSessionId(connectionId, actualTransactedArg, actualAcknowledgeModeArg);
View Full Code Here


       
        boolean actualTransactedArg = false;
        int actualAcknowledgeModeArg = Session.CLIENT_ACKNOWLEDGE;
       
        long sessionId = _createSessionId(connectionId, actualTransactedArg, actualAcknowledgeModeArg);
        SessionAckMode ackMode = _getSessionAckModeFromSessionParams(actualTransactedArg, actualAcknowledgeModeArg);
        DirectSession ds = new DirectSession(this, this.jmsservice, sessionId, ackMode);
        this.addSession(ds);
        return (Session)ds;
    }
View Full Code Here

                "isTransacted=" + isTransacted + ":" +
                "acknowledgeMode=" + acknowledgeMode);
        _checkIfClosed("createQueueSession():");
        this.setUsed();  
       
        SessionAckMode ackMode;
        long sessionId;
        if (ResourceAdapter._isFixCR6760301()){
          // override args
          boolean actualTransactedArg = overrideTransacted(isTransacted);
            int actualAcknowledgeModeArg = overrideAcknowledgeMode(acknowledgeMode);
View Full Code Here

                "isTransacted=" + isTransacted + ":" +
                "acknowledgeMode=" + acknowledgeMode);
        _checkIfClosed("createTopicSession():");
        this.setUsed();

        SessionAckMode ackMode;
        long sessionId;
        if (ResourceAdapter._isFixCR6760301()){
          // override args
          boolean actualTransactedArg = overrideTransacted(isTransacted);
            int actualAcknowledgeModeArg = overrideAcknowledgeMode(acknowledgeMode);
View Full Code Here

    private long _createSessionId(long connectionId, boolean isTransacted,
            int acknowledgeMode)
    throws JMSException {
        JMSServiceReply reply;
        long sessionId = 0L;
        SessionAckMode ackMode = this._getSessionAckModeFromSessionParams(
                isTransacted, acknowledgeMode);
        try {
            reply = jmsservice.createSession(connectionId, ackMode);
            try {
                sessionId = reply.getJMQSessionID();               
View Full Code Here

     @see    javax.jms.Session#DUPS_OK_ACKNOWLEDGE javax.jms.Session.DUPS_OK_ACKNOWLEDGE
     *  @see    com.sun.messaging.jms.Session#NO_ACKNOWLEDGE com.sun.messaging.jms.Session.NO_ACKNOWLEDGE
     */
    protected static SessionAckMode _getSessionAckModeFromSessionParams(
            boolean isTransacted, int acknowledgeMode){
        SessionAckMode ackMode = SessionAckMode.UNSPECIFIED;
        if (isTransacted){
            ackMode = SessionAckMode.TRANSACTED;
        } else {
            if (acknowledgeMode == Session.AUTO_ACKNOWLEDGE){
                ackMode = SessionAckMode.AUTO_ACKNOWLEDGE;
View Full Code Here

TOP

Related Classes of com.sun.messaging.jmq.jmsservice.JMSService.SessionAckMode

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.