Package javax.resource

Examples of javax.resource.NotSupportedException


    public XAResource getXAResource()
            throws ResourceException
    {
        Util.log("In OTMJCAManagedConnection.getXAResource");
        throw new NotSupportedException("public XAResource getXAResource() not supported in this release.");
    }
View Full Code Here


        return xid;
    }

    public void setTransactionTimeout(long timeout) throws NotSupportedException {
        if (timeout<=0) {
            throw new NotSupportedException("Illegal timeout value");
        }
        this.timeout = timeout;
    }
View Full Code Here

    *
    * @return     LocalTransaction instance
    * @throws ResourceException     generic exception if operation fails
    */
   public LocalTransaction getLocalTransaction() throws ResourceException {
      throw new NotSupportedException("LocalTransaction not supported");
   }
View Full Code Here

    *
    * @return     XAResource instance
    * @throws ResourceException     generic exception if operation fails
    */
   public XAResource getXAResource() throws ResourceException {
      throw new NotSupportedException("GetXAResource not supported");
   }
View Full Code Here

      //
      // Spec says a mc must allways return the same XA resource,
      // so we cache it.
      //
      if (!xaTransacted)
         throw new NotSupportedException("Non XA transaction not supported");

      if (xaResource == null)
      {
         if (info.getType() == JmsConnectionFactory.TOPIC)
            xaResource = xaTopicSession.getXAResource();
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 ActivationSpec 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

            }
            else if (ASF_ENDPOINT_WORKER_TYPE.equals(getEndpointWorkerType())) {
                worker = new ActiveMQAsfEndpointWorker(this, key);
            }
            else {
                throw new NotSupportedException("That type of EndpointWorkerType is not supported: " + getEndpointWorkerType());
            }

            endpointWorkers.put(key, worker);
            worker.start();

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

    }
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

        return xid;
    }

    public void setTransactionTimeout(long timeout) throws NotSupportedException {
        if (timeout<=0) {
            throw new NotSupportedException("Illegal timeout value");
        }
        this.timeout = timeout;
    }
View Full Code Here

            Thread.currentThread().setContextClassLoader(orig);
        }
    }

    public ManagedConnectionMetaData getMetaData() throws ResourceException {
        throw new NotSupportedException("Not Supported");
    }
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.