Examples of AdminObjectResource


Examples of org.glassfish.connectors.config.AdminObjectResource

        Property ep = null;
        try {
            //ServerContext sc = ApplicationServer.getServerContext();
            //ConfigContext ctx = sc.getConfigContext();
            //Resources rbeans =                           ServerBeansFactory.getDomainBean(ctx).getResources();
            AdminObjectResource res = null;
            res = (AdminObjectResource)
                    ResourcesUtil.createInstance().getResource(logicalDest, appName, moduleName, AdminObjectResource.class);
            //AdminObjectResource res = (AdminObjectResource)   allResources.getAdminObjectResourceByJndiName(logicalDest);
        if (res == null) {
            String msg = sm.getString("ajra.err_getting_dest", logicalDest);
            throw new ConnectorRuntimeException(msg);
        }

        ep = res.getProperty(PHYSICAL_DESTINATION); //getElementPropertyByName(PHYSICAL_DESTINATION);
        } catch(Exception ce) {
        String msg = sm.getString("ajra.err_getting_dest", logicalDest);
        ConnectorRuntimeException cre = new ConnectorRuntimeException( msg );
        cre.initCause( ce );
            throw cre;
View Full Code Here

Examples of org.glassfish.connectors.config.AdminObjectResource

                            _logger.log(Level.INFO, "endpoint.determine.destinationtype", new
                                    Object[]{aor.getResType() , aor.getJndiName() , descriptor_.getName()});
                        }
                    }
     */
                    AdminObjectResource aor = (AdminObjectResource)
                            ResourcesUtil.createInstance().getResource(jndiName, appName, moduleName, AdminObjectResource.class);
                    if(aor != null && ConnectorConstants.DEFAULT_JMS_ADAPTER.equals(aor.getResAdapter())){
                        descriptor_.putRuntimeActivationConfigProperty(
                                new EnvironmentProperty(DESTINATION_TYPE,
                                        aor.getResType(), null));
                        _logger.log(Level.INFO, "endpoint.determine.destinationtype", new
                                Object[]{aor.getResType() , aor.getJndiName() , descriptor_.getName()});
                    }
   
                } catch (Exception e) {
   
                }
View Full Code Here

Examples of org.glassfish.connectors.config.AdminObjectResource

     Property ep = null;
        try {
            //ServerContext sc = ApplicationServer.getServerContext();
            //ConfigContext ctx = sc.getConfigContext();
            //Resources rbeans =                           ServerBeansFactory.getDomainBean(ctx).getResources();
            AdminObjectResource res = null;
            res = (AdminObjectResource)
                    ResourcesUtil.createInstance().getResource(logicalDest, appName, moduleName, AdminObjectResource.class);
            //AdminObjectResource res = (AdminObjectResource)   allResources.getAdminObjectResourceByJndiName(logicalDest);
        if (res == null) {
            String msg = sm.getString("ajra.err_getting_dest", logicalDest );
        throw new ConnectorRuntimeException(msg);
        }

        ep = res.getProperty(PHYSICAL_DESTINATION); //getElementPropertyByName(PHYSICAL_DESTINATION);
        } catch(Exception ce) {
        String msg = sm.getString("ajra.err_getting_dest", logicalDest);
        ConnectorRuntimeException cre = new ConnectorRuntimeException( msg );
        cre.initCause( ce );
            throw cre;
View Full Code Here

Examples of org.glassfish.connectors.config.AdminObjectResource

                            _logger.log(Level.INFO, "endpoint.determine.destinationtype", new
                                    Object[]{aor.getResType() , aor.getJndiName() , descriptor_.getName()});
                        }
                    }
     */
                    AdminObjectResource aor = (AdminObjectResource)
                            ResourcesUtil.createInstance().getResource(jndiName, appName, moduleName, AdminObjectResource.class);
                    if(aor != null && ConnectorConstants.DEFAULT_JMS_ADAPTER.equals(aor.getResAdapter())){
                        descriptor_.putRuntimeActivationConfigProperty(
                                new EnvironmentProperty(DESTINATION_TYPE,
                                        aor.getResType(), null));
                        _logger.log(Level.INFO, "endpoint.determine.destinationtype", new
                                Object[]{aor.getResType() , aor.getJndiName() , descriptor_.getName()});
                    }
   
                } catch (Exception e) {
   
                }
View Full Code Here

Examples of org.glassfish.connectors.config.AdminObjectResource

        Property ep = null;
        try {
            //ServerContext sc = ApplicationServer.getServerContext();
            //ConfigContext ctx = sc.getConfigContext();
            //Resources rbeans =                           ServerBeansFactory.getDomainBean(ctx).getResources();
            AdminObjectResource res = null;
            res = (AdminObjectResource)
                    ResourcesUtil.createInstance().getResource(logicalDest, appName, moduleName, AdminObjectResource.class);
            //AdminObjectResource res = (AdminObjectResource)   allResources.getAdminObjectResourceByJndiName(logicalDest);
        if (res == null) {
            String physicalDest = null;
            if (logicalDest.startsWith(ResourceConstants.JAVA_COMP_SCOPE_PREFIX)
                   || !logicalDest.startsWith(ResourceConstants.JAVA_SCOPE_PREFIX)) {
                if (isEjbInWar(ejbMessageBeanDescriptor)) {
                    physicalDest = getPhysicalDestination(logicalDest, ejbMessageBeanDescriptor.getEjbBundleDescriptor().getModuleDescriptor());
                } else {
                    physicalDest = getPhysicalDestination(logicalDest, ejbMessageBeanDescriptor);
                }
            } else if (logicalDest.startsWith(ResourceConstants.JAVA_MODULE_SCOPE_PREFIX)) {
                if (isEjbInWar(ejbMessageBeanDescriptor)) {
                    physicalDest = getPhysicalDestination(logicalDest, ejbMessageBeanDescriptor.getEjbBundleDescriptor().getModuleDescriptor());
                } else {
                    physicalDest = getPhysicalDestination(logicalDest, ejbMessageBeanDescriptor.getEjbBundleDescriptor());
                }
            } else if (logicalDest.startsWith(ResourceConstants.JAVA_APP_SCOPE_PREFIX)) {
                physicalDest = getPhysicalDestination(logicalDest, ejbMessageBeanDescriptor.getApplication());
            } else if (logicalDest.startsWith(ResourceConstants.JAVA_GLOBAL_SCOPE_PREFIX)) {
                physicalDest = getPhysicalDestination(logicalDest, ejbMessageBeanDescriptor.getApplication());
                if (!isValidName(physicalDest)) {
                    physicalDest = getPhysicalDestination(logicalDest);
                }
            }
            if (isValidName(physicalDest)) {
                return physicalDest;
            }
            String msg = sm.getString("ajra.err_getting_dest", logicalDest);
            throw new ConnectorRuntimeException(msg);
        }

        ep = res.getProperty(PHYSICAL_DESTINATION); //getElementPropertyByName(PHYSICAL_DESTINATION);
        } catch(Exception ce) {
        String msg = sm.getString("ajra.err_getting_dest", logicalDest);
        ConnectorRuntimeException cre = new ConnectorRuntimeException( msg );
        cre.initCause( ce );
            throw cre;
View Full Code Here

Examples of org.glassfish.connectors.config.AdminObjectResource

    /**
     * {@inheritDoc}
     */
    public synchronized void deployResource(Object resource, String applicationName, String moduleName) throws Exception {
        final AdminObjectResource aor = (AdminObjectResource) resource;
        String jndiName = aor.getJndiName();
        ResourceInfo resourceInfo = new ResourceInfo(jndiName, applicationName, moduleName);
        createAdminObjectResource(aor, resourceInfo);
    }
View Full Code Here

Examples of org.glassfish.connectors.config.AdminObjectResource

    /**
     * {@inheritDoc}
     */
    public synchronized void deployResource(Object resource) throws Exception {

        final AdminObjectResource aor = (AdminObjectResource) resource;
        ResourceInfo resourceInfo = ConnectorsUtil.getResourceInfo(aor);
        createAdminObjectResource(aor, resourceInfo);
    }
View Full Code Here

Examples of org.glassfish.connectors.config.AdminObjectResource

    /**
     * {@inheritDoc}
     */
    public void undeployResource(Object resource, String applicationName, String moduleName) throws Exception {
        final AdminObjectResource aor = (AdminObjectResource) resource;
        ResourceInfo resourceInfo = new ResourceInfo(aor.getJndiName(), applicationName, moduleName);
        deleteAdminObjectResource(aor, resourceInfo);
    }
View Full Code Here

Examples of org.glassfish.connectors.config.AdminObjectResource

    /**
     * {@inheritDoc}
     */
    public synchronized void undeployResource(Object resource)
            throws Exception {
        final AdminObjectResource aor = (AdminObjectResource) resource;
        ResourceInfo resourceInfo = ConnectorsUtil.getResourceInfo(aor);
        deleteAdminObjectResource(aor, resourceInfo);
    }
View Full Code Here

Examples of org.glassfish.connectors.config.AdminObjectResource

                        _logger.log(Level.INFO, "endpoint.determine.destinationtype", new
                                Object[]{aor.getResType() , aor.getJndiName() , descriptor_.getName()});
                    }
                }
*/
                AdminObjectResource aor = (AdminObjectResource)
                        ResourcesUtil.createInstance().getResource(jndiName, appName, moduleName, AdminObjectResource.class);
                if(aor != null && ConnectorConstants.DEFAULT_JMS_ADAPTER.equals(aor.getResAdapter())){
                    descriptor_.putRuntimeActivationConfigProperty(
                            new EnvironmentProperty(DESTINATION_TYPE,
                                    aor.getResType(), null));
                    _logger.log(Level.INFO, "endpoint.determine.destinationtype", new
                            Object[]{aor.getResType() , aor.getJndiName() , descriptor_.getName()});
                }

            } catch (Exception e) {

            }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.