Package org.nimbustools.messaging.gt4_0.common

Examples of org.nimbustools.messaging.gt4_0.common.CommonUtil


        if (containerURL == null) {
            throw new IllegalArgumentException("containerURL may not be null");
        }

        this.instanceEPRs =
                new EPRGenerator(containerURL,
                                 Constants_GT4_0.SERVICE_PATH,
                                 Constants_GT4_0.RESOURCE_KEY_QNAME);

        this.groupEPRs =
                new EPRGenerator(containerURL,
                                 Constants_GT4_0.GROUP_SERVICE_PATH,
                                 Constants_GT4_0.GROUP_RESOURCE_KEY_QNAME);

        this.ensembleEPRs =
                new EPRGenerator(containerURL,
                                 Constants_GT4_0.ENSEMBLE_SERVICE_PATH,
                                 Constants_GT4_0.ENSEMBLE_RESOURCE_KEY_QNAME);
    }
View Full Code Here


    // implements Initializable
    // -------------------------------------------------------------------------

    public void initialize() throws Exception {

        final NimbusMasterContext master =
                NimbusLocalMasterContext.discoverApplicationContext();

        this.manager = master.getModuleLocator().getManager();

        final ReprFactory repr = master.getModuleLocator().getReprFactory();

        final InstanceTranslate trInstance =
                new InstanceTranslate(repr, master.getBaseURL());

        this.translate = new EnsembleTranslate(repr, trInstance);

        this.secDescPath = master.getBaseLocation() + File.separator +
                                Constants_GT4_0.SERVICE_SECURITY_CONFIG;

        final URL url = this.getClass().getResource("ehcache.xml");
        final CacheManager cacheManager = new CacheManager(url);
        this.cache = cacheManager.getCache("ensembleCache");
View Full Code Here

    // implements Initializable
    // -------------------------------------------------------------------------

    public void initialize() throws Exception {

        final NimbusMasterContext master =
                NimbusLocalMasterContext.discoverApplicationContext();

        this.manager = master.getModuleLocator().getManager();

        this.translate =
                new GroupTranslate(master.getModuleLocator().getReprFactory());

        this.secDescPath = master.getBaseLocation() + File.separator +
                                Constants_GT4_0.SERVICE_SECURITY_CONFIG;

        final URL url = this.getClass().getResource("ehcache.xml");
        final CacheManager cacheManager = new CacheManager(url);
        this.cache = cacheManager.getCache("groupCache");
View Full Code Here

       
        InitialContext ctx = null;
        try {
            ctx = new InitialContext();

            final ContextBrokerHome brokerHome =
                    (ContextBrokerHome) ctx.lookup(CONTEXTUALIZATION_HOME);

            if (brokerHome == null) {
                // should be NameNotFoundException if missing
                throw new Exception("null from JNDI for ContextBrokerHome (?)");
View Full Code Here

        final QueryResourcePropertiesResponse resp =
                ((WorkspaceFactoryPortType)this.portType).
                                            queryResourceProperties(query);

        final FactoryRPSet rpSet = (FactoryRPSet) resp.get_any()[0].
                        getValueAsType(Constants_GT4_0.FACTORY_RP_SET,
                                       FactoryRPSet.class);

        if (rpSet == null) {
            throw new ExecutionProblem("No factory RP set returned");
View Full Code Here

        final QueryResourcePropertiesResponse resp =
                ((WorkspacePortType)this.portType).
                                            queryResourceProperties(query);

        final ServiceRPSet rpSet = (ServiceRPSet) resp.get_any()[0].
                        getValueAsType(Constants_GT4_0.RP_SET,
                                       ServiceRPSet.class);

        if (rpSet == null) {
            throw new ExecutionProblem("No factory RP set returned");
View Full Code Here

            return; // *** EARLY RETURN ***
        }

        try {
            final WorkspaceFactoryPortType port =
                    WSUtils.initFactoryPortType(this.epr);
            this.stubConf.setOptions((Stub)port);
            this.portType = port;
        } catch (Throwable t) {
            final String err = "Problem setting up: " +
View Full Code Here

        if (this.servicePort != null) {
            return; // *** EARLY RETURN ***
        }

        try {
            final WorkspacePortType port =
                    WSUtils.initServicePortType(this.endpoint);
            this.stubConf.setOptions((Stub)port);
            this.servicePort = port;
        } catch (Throwable t) {
            final String err = "Problem setting up: " + t.getMessage();
View Full Code Here

            return; // *** EARLY RETURN ***
        }

        try {
            final WorkspacePortType port =
                    WSUtils.initServicePortType(this.epr);
            this.stubConf.setOptions((Stub)port);
            this.portType = port;
        } catch (Throwable t) {
            final String err = "Problem setting up: " +
View Full Code Here

        } catch (Throwable t) {
            throw EnsembleUtil.makeEnsembleFault(
                    FaultUtil.unknown(t, "ensemble.done"), null);
        }

        return new VoidType();
    }
View Full Code Here

TOP

Related Classes of org.nimbustools.messaging.gt4_0.common.CommonUtil

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.