Package javax.resource

Examples of javax.resource.NotSupportedException


    public EndpointConsumer(com.sun.messaging.jms.ra.ResourceAdapter ra,
            MessageEndpointFactory endpointFactory,
            javax.resource.spi.ActivationSpec spec)
    throws NotSupportedException {
        if (ra == null || endpointFactory == null || spec ==null){
            throw new NotSupportedException("MQRA:EC:const:null RA||EPF||AS");
        }
        if (!(spec instanceof com.sun.messaging.jms.ra.ActivationSpec)) {
            throw new NotSupportedException("MQRA:EC:const:" +
                    "Unsupported ActivationSpec Class-" +
                    spec.getClass());
        }
        this.aSpec = (ActivationSpec)spec;
        this.endpointFactory = endpointFactory;
View Full Code Here


            }
            String mName = aSpec.getMdbName();
            if (aSpec._isInClusteredContainerSet() && aSpec.isUseSharedSubscriptionInClusteredContainer()) {
                if (this.clientId == null) {
                    if ((mName == null) || ("".equals(mName))) {
                        throw new NotSupportedException(
                            "MQRA:EC:Error:Clustered Message Consumer requires"+
                                " non-null clientID OR mdbName:" +
                                "clientID="+this.clientId+":mdbName="+mName);
                    } else {
                        //set effective clientId from mName
View Full Code Here

    listener.setEndpointFactory(endpointFactory);

    try {
      listener.start();
    } catch (ResourceException e) {
      throw new NotSupportedException(e);
    }
  }
View Full Code Here

  }

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

  }

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

  }

  public void associateConnection(Object o)
    throws ResourceException
  {
    throw new NotSupportedException();
  }
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 this.connection;
    }
  }

  public Connection getConnection(ConnectionSpec connectionSpec) throws ResourceException {
    throw new NotSupportedException(
        "SingleConnectionFactory does not support custom ConnectionSpec");
  }
View Full Code Here

* @see javax.resource.NotSupportedException
*/
public class NotSupportedRecordFactory implements RecordFactory {

  public MappedRecord createMappedRecord(String name) throws ResourceException {
    throw new NotSupportedException("The RecordFactory facility is not supported by the connector");
  }
View Full Code Here

  public MappedRecord createMappedRecord(String name) throws ResourceException {
    throw new NotSupportedException("The RecordFactory facility is not supported by the connector");
  }

  public IndexedRecord createIndexedRecord(String name) throws ResourceException {
    throw new NotSupportedException("The RecordFactory facility is not supported by the connector");
  }
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.