Examples of NotSupportedException


Examples of javax.resource.NotSupportedException

          dest = AdminModule.createTopic(serverId,
                                         shortName,
                                         "org.objectweb.joram.mom.dest.Topic",
                                         null);
        else
          throw new NotSupportedException("Invalid destination type provided as activation parameter: " + destType);
       
        dest.setFreeReading();
        dest.setFreeWriting();

        if (logger.isLoggable(BasicLevel.INFO))
          logger.log(BasicLevel.INFO,
                     "  - Destination [" + shortName + "] has been created.");

        bind(destName, dest);
      }

      if ("javax.jms.Queue".equals(destType)) {
        if (! (dest instanceof javax.jms.Queue))
          throw new NotSupportedException("Existing destination " + destName  + " does not provide correct type.");
      } else if ("javax.jms.Topic".equals(destType)) {
        if (! (dest instanceof javax.jms.Topic))
          throw new NotSupportedException("Existing destination " + destName  + " does not provide correct type.");
      } else
        throw new NotSupportedException("Invalid destination type provided as activation parameter: " + destType);

      String userName = specImpl.getUserName();
      String password = specImpl.getPassword();
      String identityClass = specImpl.getIdentityClass();
View Full Code Here

Examples of javax.resource.NotSupportedException

        listeners.removeElement(listener);
    }
   
   
    public XAResource getXAResource() throws ResourceException {
        throw new NotSupportedException("XA transaction not supported");
    }
View Full Code Here

Examples of javax.resource.NotSupportedException

    public XAResource getXAResource() throws ResourceException {
        throw new NotSupportedException("XA transaction not supported");
    }

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

Examples of javax.resource.NotSupportedException

      //
      // 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

Examples of javax.resource.NotSupportedException

    throws ResourceException
  {
    if (_xaResource != null)
      return _xaResource;

    throw new NotSupportedException();
  }
View Full Code Here

Examples of javax.resource.NotSupportedException

   */
  @Override
  public ManagedConnectionMetaData getMetaData()
    throws ResourceException
  {
    throw new NotSupportedException();
  }
View Full Code Here

Examples of javax.resource.NotSupportedException

        this.defaultPassword = defaultPassword;
        hashCode = jdbcDriver.hashCode() ^ jdbcUrl.hashCode() ^ defaultUserName.hashCode() ^ defaultPassword.hashCode();
    }

    public Object createConnectionFactory() throws ResourceException {
        throw new NotSupportedException("This connector must be used with an application server connection manager");
    }
View Full Code Here

Examples of javax.transaction.NotSupportedException

   public void begin()
      throws NotSupportedException, SystemException
   {
      if(getStatus() != Status.STATUS_NO_TRANSACTION)
         throw new NotSupportedException("Attempt to start a nested transaction (the transaction started previously hasn't been ended yet).");

      ThreadInfo info = getThreadInfo();
      trace = log.isTraceEnabled(); // Only check for trace enabled once per transaction
     
      if (trace)
View Full Code Here

Examples of javax.ws.rs.NotSupportedException

        return new NotAcceptableException(checkResponse(response, 406), cause);
    }
   
    public static NotSupportedException toNotSupportedException(Throwable cause, Response response) {
       
        return new NotSupportedException(checkResponse(response, 415), cause);
    }
View Full Code Here

Examples of me.g2000.jclip.misc.NotSupportedException

  private SystemTray tray;

  public TrayManager() throws NotSupportedException {
//    check if the current OS supports a system tray
    if (!SystemTray.isSupported()) {
      throw new NotSupportedException("OS does not support system tray.");
    } else {
//      initialize components and add tray icon to system tray
      initComponents();
      addToTray();
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.