Package javax.resource

Examples of javax.resource.NotSupportedException


    throws NotSupportedException {
        //If durable subscription, validate subscriptionName,clientID
        if (aSpec._isDurableSet()) {
            String sName = this.subscriptionName;
            if ((sName == null) || ((sName != null) && (sName.length() <= 0))) {
                throw new NotSupportedException("MQRA:EC:Need Valid SubscriptionName-"+sName);
            }
            String cID = this.clientId;
            if ((cID == null) || ((cID != null) && (cID.length() <= 0))) {
                throw new NotSupportedException("MQRA:EC:Need Valid ClientID-"+cID);
            }
            //Setting this indicates everything is valid
            this.isDurable = true;
        }
    }
View Full Code Here


                } catch (JMSException jmsecc) {
                    //System.out.println("MQRA:EC:closed xac on conn creation exception-"+jmsecc.getMessage());
                }
                this.dc = null;
            }
            NotSupportedException nse = new NotSupportedException(
                    "MQRA:EC:Error creating Direct Message Consumer:\n"+jmse.getMessage());
            nse.initCause(jmse);
            throw nse;
        }
    }
View Full Code Here

  public void setLogWriter(PrintWriter out) throws ResourceException {
    logwriter = out;
  }

  public LocalTransaction getLocalTransaction() throws ResourceException {
    throw new NotSupportedException("LocalTransaction not supported");
  }
View Full Code Here

  public LocalTransaction getLocalTransaction() throws ResourceException {
    throw new NotSupportedException("LocalTransaction not supported");
  }

  public XAResource getXAResource() throws ResourceException {
    throw new NotSupportedException("GetXAResource not supported not supported");
  }
View Full Code Here

   /**
    * @see javax.resource.spi.ManagedConnection#associateConnection(java.lang.Object)
    */
   public void associateConnection(Object connection) throws ResourceException
   {
      throw new NotSupportedException("The JCR sessions are not shareable");
   }
View Full Code Here

   /**
    * @see javax.resource.spi.ManagedConnection#getLocalTransaction()
    */
   public LocalTransaction getLocalTransaction() throws ResourceException
   {
      throw new NotSupportedException("Local transactions are not supported");
   }
View Full Code Here

   {
      if (LOG.isDebugEnabled())
      {
         LOG.debug("createConnectionFactory()");
      }
      throw new NotSupportedException("Only managed environments are supported");
   }
View Full Code Here

    * @see javax.resource.spi.ManagedConnectionFactory#matchManagedConnections(java.util.Set, javax.security.auth.Subject, javax.resource.spi.ConnectionRequestInfo)
    */
   public ManagedConnection matchManagedConnections(@SuppressWarnings("rawtypes") Set connectionSet, Subject subject,
      ConnectionRequestInfo cxRequestInfo) throws ResourceException
   {
      throw new NotSupportedException("The JCR sessions are not shareable");
   }
View Full Code Here

        if (!equals(activationSpec.getResourceAdapter())) {
            throw new ResourceException("Activation spec not initialized with this ResourceAdapter instance (" + activationSpec.getResourceAdapter() + " != " + this + ")");
        }

        if (!(activationSpec instanceof MessageActivationSpec)) {
            throw new NotSupportedException("That type of ActicationSpec not supported: " + activationSpec.getClass());
        }

        ActiveMQEndpointActivationKey key = new ActiveMQEndpointActivationKey(endpointFactory, (MessageActivationSpec)activationSpec);
        // This is weird.. the same endpoint activated twice.. must be a
        // container error.
View Full Code Here

    _loggerIM.entering(_className, "endpointActivation()", params);
    if (!started) {
      _loggerIM.logp(Level.SEVERE, _className, "endpointActivation()", _lgrMID_EXC
          + "MQJMSRA not started:Aborting:", params);
      NotSupportedException nse = new NotSupportedException(
          "MQJMSRA-endpointActivation:Error:RA not started:aborting");
      _loggerIM.throwing(_className, "endpointActivation()", nse);
      throw nse;
    }
    EndpointConsumer ec;

    if ((System.getProperty("imq.jmsra.endpoint.concurrent", "false")).equals("true")) {
      ec = new ConcurrentEndpointConsumer(this, endpointFactory, spec, this._isRADirect());
    } else {
      ec = new EndpointConsumer(this, endpointFactory, spec);
    }
    try {
      ec.startMessageConsumer();
      // if (this._isDirect()) {
      // ec.startDirectConsumer();
      // } else {
      // ec.createMessageConsumer(endpointFactory, spec);
      // }
      if (_loggerIM.isLoggable(Level.FINER)) {
        _loggerIM.finer(_lgrMID_INF + "endpointActivation:createMessageConsumer:DONE:" + "fID="
            + ec.getFactoryID() + " cID=" + ec.getConsumerID());
      }
    } catch (Exception ex) {
      _loggerIM.logp(Level.SEVERE, _className, "endpointActivation()", _lgrMID_EXC + ":Failed due to:"
          + ex.getMessage(), params);
      NotSupportedException nse = new NotSupportedException(
          "MQJMSRA-endpointActivation:Exception on createMessageConsumer:");
      nse.initCause(ex);
      _loggerIM.throwing(_className, "endpointActivation()", nse);
      throw nse;
    }
    _loggerIM.exiting(_className, "endpointActivation()");
  }
View Full Code Here

TOP

Related Classes of javax.resource.NotSupportedException

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.