Examples of NimbusMasterContext


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

    // 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

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

    // 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

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

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

    public void initialize() throws Exception {

        final NimbusMasterContext master =
                NimbusLocalMasterContext.discoverApplicationContext();

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

        // something in this layer needs to init the metadata server at
        // container startup (lame)
        master.getModuleLocator().getMetadataServer();

        this.translate = new InstanceTranslate(
                                    master.getModuleLocator().getReprFactory(),
                                    master.getBaseURL());

        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("instanceCache");

        this.timerManager = master.discoverTimerManager();

        // todo: go through persistent subscriptions and re-register statechange
        //       and destruction listeners with manager

        this.manager.recover_initialize();
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.