Package org.glassfish.javaee.services

Examples of org.glassfish.javaee.services.DataSourceDefinitionProxy


                continue;
            }

            setResourceId(env, dsd);

            DataSourceDefinitionProxy proxy = habitat.getComponent(DataSourceDefinitionProxy.class);
            proxy.setDescriptor(dsd);

            String logicalJndiName = descriptorToLogicalJndiName(dsd);
            CompEnvBinding envBinding = new CompEnvBinding(logicalJndiName, proxy);
            jndiBindings.add(envBinding);
            //dsd.setDeployed(true);
View Full Code Here


                continue;
            }

            setResourceId(env, dsd);

            DataSourceDefinitionProxy proxy = habitat.getComponent(DataSourceDefinitionProxy.class);
            proxy.setDescriptor(dsd);

            String logicalJndiName = descriptorToLogicalJndiName(dsd);
            CompEnvBinding envBinding = new CompEnvBinding(logicalJndiName, proxy);
            jndiBindings.add(envBinding);
            //dsd.setDeployed(true);
View Full Code Here

                                            DataSourceDefinitionDescriptor dsd) {
        // It is possible that JPA might call this method multiple times in a single deployment,
        // when there are multiple PUs eg: one PU in each of war, ejb-jar. Make sure that
        // DSD is bound to JNDI only when it is not already deployed.
        if(!dsd.isDeployed()){
            DataSourceDefinitionProxy proxy = habitat.getComponent(DataSourceDefinitionProxy.class);
            ResourceNamingService resourceNamingService = habitat.getComponent(ResourceNamingService.class);
            proxy.setDescriptor(dsd);

            //String appName = application.getAppName();
            String moduleName = null;
            if(dsd.getName().startsWith(ConnectorConstants.JAVA_APP_SCOPE_PREFIX)){
                dsd.setResourceId(appName);
View Full Code Here

TOP

Related Classes of org.glassfish.javaee.services.DataSourceDefinitionProxy

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.