Package javax.resource.spi

Examples of javax.resource.spi.ResourceAdapterInternalException


         {
            setup();
         }
         catch (HornetQException e)
         {
            throw new ResourceAdapterInternalException("Unable to create activation", e);
         }
      }

      HornetQResourceAdapter.log.info("HornetQ resource adaptor started");
   }
View Full Code Here


         {
            setup();
         }
         catch (HornetQException e)
         {
            throw new ResourceAdapterInternalException("Unable to create activation", e);
         }
      }

      HornetQResourceAdapter.log.info("HornetQ resource adaptor started");
   }
View Full Code Here

         {
            setup();
         }
         catch (HornetQException e)
         {
            throw new ResourceAdapterInternalException("Unable to create activation", e);
         }
      }

      HornetQResourceAdapter.log.info("HornetQ resource adaptor started");
   }
View Full Code Here

            brokerLibDir, brokerVarDir, brokerJavaDir, brokerArgs, useJNDIRmiServiceURL, rmiRegistryPort,
            startRmiRegistry, useSSLJMXConnector, brokerStartTimeout, adminUsername,
            adminPassFile,new EffectiveBrokerProps());
        lbr.start();
      } catch (Exception lbse) {
        ResourceAdapterInternalException raie = new ResourceAdapterInternalException(_lgrMID_EXC
            + "start:Aborting:Exception starting LOCAL broker=" + lbse.getMessage());
        raie.initCause(lbse);
        _loggerL.severe(raie.getMessage());
        _loggerL.info(this.toString());
        lbse.printStackTrace();
        _loggerL.throwing(_className, "start()", raie);
        throw raie;
      }
    } else {
      if (isInProcess()) {
        try {
          if (!_startedAtLeastOnce) {
            _rmiRegistryPort = rmiRegistryPort;
          }
          if (ebr == null) {
            ebr = new EmbeddedBrokerRunner(brokerType, brokerInstanceName, brokerBindAddress,
                brokerPort, brokerHomeDir, brokerLibDir, brokerVarDir, brokerJavaDir, brokerArgs,
                useJNDIRmiServiceURL, _rmiRegistryPort, startRmiRegistry, useSSLJMXConnector, doBind, _getEffectiveBrokerProps());
            ebr.init();
          }
          ebr.start();
          jmsservice = ebr.getJMSService();
          _startedAtLeastOnce = true;
        } catch (Exception ebse) {
          ResourceAdapterInternalException raie = new ResourceAdapterInternalException(_lgrMID_EXC
              + "start:Aborting:Exception starting EMBEDDED broker=" + ebse.getMessage());
          raie.initCause(ebse);
          _loggerL.severe(raie.getMessage());
          _loggerL.info(this.toString());
          ebse.printStackTrace();
          _loggerL.throwing(_className, "start()", raie);
          throw raie;
        }
View Full Code Here

        // If we have just started a local broker then stop it
        if (getLifecycleManagedBroker().isStarted() && getLifecycleManagedBroker().isLocal()) {
          getLifecycleManagedBroker().stop();
        }

        ResourceAdapterInternalException raie = new ResourceAdapterInternalException(_lgrMID_EXC
            + "start:Aborting:JMSException on createConnection=" + jmse.getMessage());
        raie.initCause(jmse);
        _loggerL.severe(raie.getMessage());
        jmse.printStackTrace();
        _loggerL.throwing(_className, "start()", raie);
        throw raie;
      }
View Full Code Here

            assertNotNull("bootstrapContext.getWorkManager() is null", bootstrapContext.getWorkManager());
            assertNotNull("bootstrapContext.getXATerminator() is null", bootstrapContext.getXATerminator());
            try {
                assertNotNull("bootstrapContext.createTimer() is null", bootstrapContext.createTimer());
            } catch (UnavailableException e) {
                throw new ResourceAdapterInternalException("bootstrapContext.createTimer() threw an exception", e);
            }
        }
View Full Code Here

          log.config(L.l("creating RMI Registry on port `{0}'", _port));

        LocateRegistry.createRegistry(_port);
      }
    } catch (Exception ex)  {
      throw new ResourceAdapterInternalException(ex);
    } finally {
      thread.setContextClassLoader(oldLoader);
    }
  }
View Full Code Here

    throws ResourceAdapterInternalException
  {
    String fullName = _registry.makeFullName(_serviceName);

    if (_boundName != null)
      throw new ResourceAdapterInternalException(L.l("cannot bind rmi service with name `{0}', already bound with name `{1}'", fullName, _boundName));

    try {
      _boundObject = (Remote) _serviceClassClass.newInstance();

      if (log.isLoggable(Level.FINE))
        log.fine(L.l("binding rmi name `{0}' to object `{1}'",fullName,_boundObject.getClass().getName()));

      Naming.rebind(fullName, _boundObject);
      _boundName = fullName;
    }
    catch (Exception ex) {
      throw new ResourceAdapterInternalException(L.l("error binding rmi service with name `{0}'", fullName),ex);
    }

  }
View Full Code Here

      _timer = ctx.createTimer();

      _timer.schedule(timerTask, _initialDelay, _period);
    } catch (Exception e) {
      throw new ResourceAdapterInternalException(e);
    }
  }
View Full Code Here

    try {
      // Submits the work, but does not wait for the result.
      // In other words, it spawns a new thread
      workManager.startWork(work);
    } catch (WorkException e) {
      throw new ResourceAdapterInternalException(e);
    }
  }
View Full Code Here

TOP

Related Classes of javax.resource.spi.ResourceAdapterInternalException

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.