Package org.rioproject.impl.servicebean

Examples of org.rioproject.impl.servicebean.DefaultServiceBeanManager


                                                        null,     // defaultGroups
                                                        null);    // loadPath
        ServiceElement serviceElement = opStrings.get(0).getServices()[0];

        ServiceBeanContext context = new ServiceContextFactory().create(serviceElement,
                                                                    new DefaultServiceBeanManager(serviceElement,
                                                                                   InetAddress.getLocalHost().getHostName(),
                                                                                   InetAddress.getLocalHost().getHostAddress(),
                                                                                   UuidFactory.generate()),
                                                                    new ComputeResource(),
                                                                    EmptyConfiguration.INSTANCE);
View Full Code Here


                            ServiceLogUtil.logName(sElem), context.getClass().getName());
                return(false);
            }

            if(context.getServiceBeanManager() instanceof DefaultServiceBeanManager) {
                DefaultServiceBeanManager jsbMgr = (DefaultServiceBeanManager)context.getServiceBeanManager();
                OperationalStringManager mgr = jsbMgr.getOperationalStringManager();
                if(mgr!=null &&
                   !(mgr instanceof OpStringManagerProxy.OpStringManager)) {
                    jsbMgr.setOperationalStringManager(opMgr);
                }               
            } else {
                logger.warn("Cannot update [{}], Unknown ServiceBeanManager type [{}]",
                            sElem.getName(), context.getServiceBeanManager().getClass().getName());
                return(false);
View Full Code Here

                    } else {
                        /* Create the DiscardManager */
                        JSBDiscardManager discardManager = new JSBDiscardManager();

                        /* Create the ServiceBeanManager */
                        DefaultServiceBeanManager serviceBeanManager = new DefaultServiceBeanManager(sElem,
                                                               opStringMgr,
                                                               computeResource.getHostName(),
                                                               computeResource.getAddress().getHostAddress(),
                                                               container.getUuid());
                        serviceBeanManager.setDiscardManager(discardManager);
                        serviceBeanManager.setServiceID(serviceID);
                        /*
                        * Load and start the ServiceBean
                        */
                        loadResult = ServiceBeanLoader.load(sElem, serviceID, serviceBeanManager, container);

View Full Code Here

TOP

Related Classes of org.rioproject.impl.servicebean.DefaultServiceBeanManager

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.