org.ow2.jonas.cmi.internal
Class CmiServiceImpl
java.lang.Object
javax.management.NotificationBroadcasterSupport
org.ow2.jonas.lib.reconfig.ReconfigEmitter
org.ow2.jonas.lib.service.AbsServiceImpl
org.ow2.jonas.cmi.internal.CmiServiceImpl
- All Implemented Interfaces:
- NotificationBroadcaster, NotificationEmitter, org.ow2.jonas.cmi.CmiService, org.ow2.jonas.service.Service
public class CmiServiceImpl
- extends org.ow2.jonas.lib.service.AbsServiceImpl
- implements org.ow2.jonas.cmi.CmiService
CMI Service interface.
It provides a way to use CMI with JOnAS.
- Author:
- Loris Bouzonnet
|
Field Summary |
protected static org.objectweb.util.monolog.api.Logger |
cmilogger
Logger for traces |
| Fields inherited from class org.ow2.jonas.lib.reconfig.ReconfigEmitter |
RECONFIG_TYPE, SAVE_RECONFIG_TYPE |
| Methods inherited from class org.ow2.jonas.lib.service.AbsServiceImpl |
checkRequirements, convertToList, doInit, getDomainName, getJonasServerName, getName, getServerProperties, init, isOSGi, isStarted, setName, setServerProperties, start, stop, throwRequirementException, toString |
| Methods inherited from class org.ow2.jonas.lib.reconfig.ReconfigEmitter |
initLogger, sendReconfigNotification, sendSaveNotification |
| Methods inherited from interface org.ow2.jonas.service.Service |
checkRequirements, getName, init, isStarted, setName, start, stop |
cmilogger
protected static org.objectweb.util.monolog.api.Logger cmilogger
- Logger for traces
CmiServiceImpl
public CmiServiceImpl()
doStart
protected void doStart()
throws org.ow2.jonas.service.ServiceException
- Start the service.
- Specified by:
doStart in class org.ow2.jonas.lib.service.AbsServiceImpl
- Throws:
org.ow2.jonas.service.ServiceException
doStop
protected void doStop()
throws org.ow2.jonas.service.ServiceException
- Stop the service.
- Specified by:
doStop in class org.ow2.jonas.lib.service.AbsServiceImpl
- Throws:
org.ow2.jonas.service.ServiceException
addClusteredObject
public void addClusteredObject(String jndiName,
String clusterPolicyName,
Class<?> homeClass,
Class<? extends EJBObject> remoteClass,
ClassLoader classLoader,
boolean stateful,
boolean clusterReplicated)
throws Exception
- Add a bean to the cluster.
- Specified by:
addClusteredObject in interface org.ow2.jonas.cmi.CmiService
- Parameters:
jndiName - name of the beanclusterPolicyName - filenamehomeClass - class of the home interfaceremoteClass - class of the remote interfaceclassLoader - the classloader used by the container of this beanstateful - true if the bean has a stateclusterReplicated - true if the bean is replicated (ha service is required)
- Throws:
Exception - if the provided policy of load-balancing is not valid
Copyright © 2008 OW2 Consortium. All Rights Reserved.