Package org.apache.geronimo.naming.reference

Examples of org.apache.geronimo.naming.reference.ResourceReference


        earContext.addGBean(connectionFactoryGBeanData);
    }

    //ResourceReferenceBuilder implementation
    public Reference createResourceRef(String containerId, Class iface) throws DeploymentException {
        return new ResourceReference(containerId, iface);
    }
View Full Code Here


    public Reference createResourceRef(String containerId, Class iface) throws DeploymentException {
        return new ResourceReference(containerId, iface);
    }

    public Reference createAdminObjectRef(String containerId, Class iface) throws DeploymentException {
        return new ResourceReference(containerId, iface);
    }
View Full Code Here

        try {
            configuration.findGBean(containerId);
        } catch (GBeanNotFoundException e) {
            throw new UnresolvedReferenceException("Resource", false, containerId.toString(), configuration.getId().toString());
        }
        return new ResourceReference(configuration.getId(), containerId, iface);
    }
View Full Code Here

        try {
            configuration.findGBean(containerId);
        } catch (GBeanNotFoundException e) {
            throw new DeploymentException("Can not resolve admin object ref " + containerId + " in configuration " + configuration.getId());
        }
        return new ResourceReference(configuration.getId(), containerId, iface);
    }
View Full Code Here

                        localConfiguration.findGBean(containerId);
                    } catch (GBeanNotFoundException e) {
                        throw new UnresolvedReferenceException("Resource", false, containerId.toString(), localConfiguration.getId().toString());
                    }

                    Reference ref = new ResourceReference(localConfiguration.getId(), containerId, iface);
                    getJndiContextMap(componentContext).put(ENV + name, ref);
                } catch (UnresolvedReferenceException e) {

                    StringBuffer errorMessage = new StringBuffer("Unable to resolve resource reference '");
                    errorMessage.append(name);
View Full Code Here

                AbstractName abstractName = module.getEarContext().findGBean(containerId);
                String osgiJndiName = module.getEarContext().getNaming().toOsgiJndiName(abstractName);
                String filter = "(osgi.jndi.service.name=" + osgiJndiName + ')';

                return new ResourceReference(abstractName, type);
                        //ResourceReferenceFactory<ResourceException>(module.getConfigId(), containerId, iface);
            } catch (GBeanNotFoundException e) {
                StringBuilder errorMessage = new StringBuilder("Unable to resolve resource reference '");
                errorMessage.append(name);
                errorMessage.append("' (");
View Full Code Here

        }
        try {
            if (value.getClass().getAnnotation(OsgiService.class) != null) {
                String osgiJndiName = kernel.getNaming().toOsgiJndiName(abstractName);
                String query = "(osgi.jndi.service.name=" + osgiJndiName + ')';
                ResourceReference reference = new ResourceReference(query, value.getClass().getName());
                reference.setBundle(bundleContext.getBundle());
                reference.setKernel(kernel);
                return reference;
            }
            return ((ResourceSource) value).$getResource();
        } catch (Throwable throwable) {
            log.info("Could not get resource from gbean at " + abstractName,throwable);
View Full Code Here

        try {
            localConfiguration.findGBean(containerId);
        } catch (GBeanNotFoundException e) {
            throw new DeploymentException("Can not resolve admin object ref " + containerId + " in configuration " + localConfiguration.getId());
        }
        return new ResourceReference(localConfiguration.getId(), containerId, iface);
    }
View Full Code Here

                try {
                    AbstractNameQuery containerId = getResourceContainerId(name, j2eeType, null, gerResourceRef);

                    module.getEarContext().findGBean(containerId);

                    Reference ref = new ResourceReference(module.getConfigId(), containerId, iface);
                    getJndiContextMap(componentContext).put(ENV + name, ref);
                } catch (GBeanNotFoundException e) {

                    StringBuffer errorMessage = new StringBuffer("Unable to resolve resource reference '");
                    errorMessage.append(name);
View Full Code Here

        try {
            localConfiguration.findGBean(containerId);
        } catch (GBeanNotFoundException e) {
            throw new DeploymentException("Can not resolve admin object ref " + containerId + " in configuration " + localConfiguration.getId(), e);
        }
        return new ResourceReference(module.getConfigId(), containerId, iface);
    }
View Full Code Here

TOP

Related Classes of org.apache.geronimo.naming.reference.ResourceReference

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.