Package org.jboss.soa.esb.services.registry

Examples of org.jboss.soa.esb.services.registry.Registry


        }
    }

    public void installRegistry() {
        originalRegistry = RegistryFactory.getRegistrySingleton();
        Registry newRegistry = null;
        try {
            newRegistry = RegistryFactory.createRegistry();
            RegistryFactory.setRegistry(newRegistry);
        } catch (RegistryException e) {
            throw new RuntimeException("Failed to create registry instance.", e);
View Full Code Here


        }
    }

    public void uninstallRegistry() {
        try {
            Registry currentRegistry = RegistryFactory.getRegistrySingleton();
            if(currentRegistry instanceof JAXRRegistryImpl) {
                try {
                    TestEnvironmentUtil.stopJAXRDatabase();
                } catch (Exception e) {
                    throw new RuntimeException("Failed to stop JAXR Database.", e);
View Full Code Here

        }
        else
        {
            final String serviceDescription = config.getAttribute(ListenerTagNames.SERVICE_DESCRIPTION_TAG) ;
            final String eprDescription = config.getAttribute(ListenerTagNames.EPR_DESCRIPTION_TAG) ;
            final Registry registry = RegistryFactory.getRegistry() ;

            if (logger.isDebugEnabled())
            {
                logger.debug("Registering < " + name + ", " + epr + " >") ;
            }

            registryLock.lock();
            try
            {
              if ("true".equalsIgnoreCase(removeOldService))             
                registry.unRegisterService(category, name);
             
                registry.registerEPR(category, name,
                    serviceDescription, epr, eprDescription) ;
            }
            catch (ServiceNotFoundException ex)
            {
              // ignore as it's possible another client just did the removal for us.
View Full Code Here

        else
        {
            registryLock.lock() ;
            try
            {
                final Registry registry = RegistryFactory.getRegistry() ;
                registry.unRegisterEPR(category, name, epr) ;
            }
            catch (final ServiceNotFoundException snfe) {
                logger.warn("Failed to unregister service", snfe);
            }
            catch (final RegistryException re)
View Full Code Here

                    + "><" + name + ">") ;
            }
            return Arrays.asList(new EPR[] {epr}) ;
        }

        final Registry reg = RegistryFactory.getRegistry() ;
        RegistryException eReg = null ;
        for (int count = 0; count < 5; count++)
        {
            try
            {
                return reg.findEPRs(category, name) ;
            }
            catch (final RegistryException re)
            {
                if (null == eReg)
                    eReg = re ;
View Full Code Here

public class RegistryService extends ServiceMBeanSupport implements RegistryServiceMBean
{
   @Override
   protected void createService() throws RegistryException, ServiceNotFoundException
   {
      final Registry registry = RegistryFactory.createRegistry();
      Class[] intfs = {Registry.class};

      // create a proxy around the Registry implementation that pushes/pops the
      // scoped classloader
View Full Code Here

TOP

Related Classes of org.jboss.soa.esb.services.registry.Registry

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.