Package javax.resource.spi

Examples of javax.resource.spi.ResourceAdapterInternalException


         sched = sf.getScheduler();
         sched.start();
      }
      catch (SchedulerException e)
      {
         throw new ResourceAdapterInternalException(e);
      }
      finally
      {
         holder.set(null);
      }
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

        } catch (ResourceException ignored) {
            // do nothing here
        }

        if (!valid) {
            throw new ResourceAdapterInternalException("invalid");
        }
    }
View Full Code Here

            try {
                URISupport.CompositeData compositeData = URISupport.parseComposite(new URI(brokerXmlConfig));
                compositeData.getParameters().put("persistent", "false");
                setBrokerXmlConfig("openejb:" + compositeData.toURI());
            } catch (URISyntaxException e) {
                throw new ResourceAdapterInternalException("Invalid BrokerXmlConfig", e);
            }
        }

        OpenEjbBrokerFactory.setThreadProperties(properties);
        try {
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

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

    */
   public void start(BootstrapContext context) throws ResourceAdapterInternalException
   {
      if (!J2EEUtil.isContained())
      {
         throw new ResourceAdapterInternalException("Unknown J2EE container");
      }

      String sContainer = J2EEUtil.getPlatformName();

      try
      {
         m_platformConfig = (PlatformConfig)Class.forName(
            SysUtil.PACKAGE + ".core.runtime.platform." + sContainer.toLowerCase(Locale.ENGLISH) + '.' +
            sContainer + "Config").newInstance();
      }
      catch (Throwable e)
      {
         throw new ResourceAdapterInternalException("Unable to locate the platform configuration", e);
      }
     
      super.start(context);
   }
View Full Code Here

         m_pool = new TimerConsumerPool(this);
         super.endpointActivation(null, m_pool.getConfig());
      }
      catch (ResourceException e)
      {
         throw new ResourceAdapterInternalException(e);
      }

      m_logger.info("Started");
   }
View Full Code Here

    */
   public void start(BootstrapContext context) throws ResourceAdapterInternalException
   {
      if (!J2EEUtil.isContained())
      {
         throw new ResourceAdapterInternalException("Unknown J2EE container");
      }

      String sContainer = J2EEUtil.getPlatformName();

      try
      {
         m_transactionManager = ((TransactionManagerLocator)Class.forName(
            SysUtil.PACKAGE + ".core.runtime.platform." + sContainer.toLowerCase(Locale.ENGLISH) + '.' +
            sContainer + "TransactionManagerLocator").newInstance()).getTransactionManager();
      }
      catch (Throwable e)
      {
         throw new ResourceAdapterInternalException("Unable to locate the transaction manager", e);
      }

      super.start(context);
   }
View Full Code Here

                //setResourceAdapter(resourceadapter_);
            } else {
                resourceadapter_.start(bootStrapContextImpl);
            }
        }catch (PrivilegedActionException ex){
            throw new ResourceAdapterInternalException(ex);
        }
    }
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.