Package com.sun.messaging.jmq.jmsservice

Examples of com.sun.messaging.jmq.jmsservice.JMSServiceReply


     @throws JMSException if any JMS server error occurred
     */
    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();               
            } catch (NoSuchFieldException nsfe){
                String exerrmsg = _lgrMID_EXC +
                        "JMSServiceException:Missing JMQSessionID";
                JMSException jmse = new JMSException(exerrmsg);
                jmse.initCause(nsfe);
View Full Code Here


     *          destination that is to be created.
     */
    protected void _createDestination(
            com.sun.messaging.jmq.jmsservice.Destination destination)
    throws JMSException {
        JMSServiceReply _reply;
        try {
            this.jmsservice.createDestination(connectionId, destination);
        } catch (JMSServiceException jmsse) {
            JMSServiceReply.Status status =
                    jmsse.getJMSServiceReply().getStatus();
View Full Code Here

     @param  destination The jmsservice Destination
     */
    protected void _deleteDestination(TemporaryDestination t_destination,
            com.sun.messaging.jmq.jmsservice.Destination destination)
    throws JMSException {
        JMSServiceReply _reply;
        JMSException jmse = null;
        String failure_cause = null;
        try {
            this.jmsservice.destroyDestination(connectionId, destination);
        } catch (JMSServiceException jmsse) {
View Full Code Here

    /**
     *  Start a transaction on this DirectConnection
     */
    protected long _startTransaction(String fromMethod)
    throws JMSException {
        JMSServiceReply reply = null;
        long _transactionId = 0L;
        try {
            reply = jmsservice.startTransaction(this.connectionId,
                    0L, null, 0,
                    JMSService.TransactionAutoRollback.UNSPECIFIED, 0L);
            try {
                _transactionId = reply.getJMQTransactionID();
            } catch (NoSuchFieldException nsfe){
                String exerrmsg = _lgrMID_EXC +
                        ":_startTransaction from " + fromMethod +
                        ":JMSServiceException:Missing JMQTransactionID";
                JMSException jmse = new JMSException(exerrmsg);
View Full Code Here

    /**
     *  Commit a transaction on this DirectConnection
     */
    protected void _commitTransaction(String methodName, long transactionId)
    throws JMSException {
        JMSServiceReply reply = null;
        try {
            reply = jmsservice.commitTransaction(
                    this.connectionId, transactionId, null, 0);
        } catch (JMSServiceException jmsse){
            String exerrmsg = _lgrMID_WRN+
View Full Code Here

    /**
     *  Rollback a transaction on this DirectConnection
     */
    protected void _rollbackTransaction(String methodName, long transactionId)
    throws JMSException {
        JMSServiceReply reply = null;
        try {
            reply = jmsservice.rollbackTransaction(
                    this.connectionId, transactionId, null, true, true);
        } catch (JMSServiceException jmsse){
            String exerrmsg = _lgrMID_WRN+
View Full Code Here

        _loggerJS.fine(_lgrMID_INF+
               "sessionId="+sessionId+":"+methodName);
        //XXX:handle commit inside deliver() includes the current message
        this._checkIfClosed(methodName);
        this._checkTransactedState(methodName, true); //allow only if transacted
        JMSServiceReply reply = null;
        try {
            reply = jmsservice.commitTransaction(
                    this.connectionId, this.transactionId, null, 0);
        } catch (JMSServiceException jmsse){
            _loggerJS.warning(_lgrMID_WRN+
View Full Code Here

     *  unacknowledged message
     */
    public void recover()
    throws JMSException {
        String methodName = "recover()";
        JMSServiceReply reply;
        JMSServiceReply.Status status;
        if (_logFINE){
            _loggerJS.fine(_lgrMID_INF + "sessionId=" +
                    sessionId+":"+methodName);
        }
View Full Code Here

                _loggerJS.warning(exErrMsg);
                JMSException jmse = new JMSException(exErrMsg);
                throw jmse;
            }
        }
        JMSServiceReply reply = null;
        try {
            reply = this.jmsservice.deleteConsumer(this.connectionId,
                    this.sessionId, 0L, name, this.dc._getClientID());
        } catch (JMSServiceException jmsse) {
            String exErrMsg = _lgrMID_EXC+
View Full Code Here

    /**
     *  Start a transaction for this transacted session
     */
    protected void _startTransaction(String fromMethod)
    throws JMSException {
        JMSServiceReply reply = null;
        try {
            reply = jmsservice.startTransaction(this.connectionId,
                    this.sessionId, null, 0,
                    JMSService.TransactionAutoRollback.UNSPECIFIED, 0L);
            try {
                this.transactionId = reply.getJMQTransactionID();
            } catch (NoSuchFieldException nsfe){
                String exerrmsg = _lgrMID_EXC +
                        "sessionId=" + this.sessionId +
                        ":_startTransaction from " + fromMethod +
                        ":JMSServiceException:Missing JMQTransactionID";
View Full Code Here

TOP

Related Classes of com.sun.messaging.jmq.jmsservice.JMSServiceReply

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.