|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavax.management.NotificationBroadcasterSupport
org.ow2.jonas.lib.reconfig.ReconfigEmitter
org.ow2.jonas.lib.service.AbsServiceImpl
org.ow2.jonas.ejb.easybeans.EasyBeansService
public class EasyBeansService
Implementation of the service that runs the EasyBeans EJB3 container.
| Field Summary | |
|---|---|
static String |
EASYBEANS_CLUSTER_CONFIG_FILE
Name of the configuration file of EasyBeans for JOnAS with a support of clustering. |
static String |
EASYBEANS_CONFIG_FILE
Name of the configuration file of EasyBeans for JOnAS. |
protected static String |
JONAS_BASE
The name of the JONAS_BASE directory. |
protected static String |
WORK_DIR
The name of the working directory. |
protected static String |
WORK_EJB3S_DIR
The name of the working ejb3s directory. |
| Fields inherited from class org.ow2.jonas.lib.reconfig.ReconfigEmitter |
|---|
RECONFIG_TYPE, SAVE_RECONFIG_TYPE |
| Constructor Summary | |
|---|---|
EasyBeansService(org.osgi.framework.BundleContext bundleContext)
Constructor in OSGi mode. |
|
| Method Summary | |
|---|---|
void |
addContainer(org.ow2.easybeans.api.EZBContainer ejbContainer)
Adds the given container. |
protected void |
configureExtraDialects()
Configure some dialects that may be used with some databases used by JOnAS. |
protected void |
doStart()
Abstract start-up method to be implemented by sub-classes. |
protected void |
doStop()
Abstract method for service stopping to be implemented by sub-classes. |
org.ow2.jonas.cmi.CmiService |
getCmiService()
Return a reference to the CMI service. |
org.ow2.easybeans.api.EZBServer |
getEasyBeansServer()
|
static org.ow2.jonas.naming.JNamingManager |
getNamingManager()
Returns the NamingManger. |
org.ow2.jonas.resource.ResourceService |
getResourceService()
|
org.ow2.jonas.versioning.VersioningService |
getVersioningService()
|
protected void |
initWorkingDirectory()
Create working directory for EJB3. |
boolean |
isEJB3DeployedByWorkName(String unpackName)
Test if the specified unpack name is already deployed or not. |
void |
registerEmbeddedService()
Register Embedded as an OSGi service. |
void |
removeContainer(org.ow2.easybeans.api.EZBContainer ejbContainer)
Remove the given container. |
void |
setCmiService(org.ow2.jonas.cmi.CmiService cmiService)
Set a reference to the CMI service. |
void |
setDeployerManager(org.ow2.util.ee.deploy.api.deployer.IDeployerManager deployerManager)
|
void |
setJ2EEServer(org.ow2.jonas.management.J2EEServerService j2eeServer)
|
void |
setJmxService(org.ow2.jonas.jmx.JmxService jmxService)
|
void |
setNamingManager(org.ow2.jonas.naming.JNamingManager naming)
Sets the NamingManger. |
void |
setResourceService(org.ow2.jonas.resource.ResourceService resourceService)
|
void |
setVersioningService(org.ow2.jonas.versioning.VersioningService versioningService)
|
protected void |
setWorkCleanerService(org.ow2.jonas.workcleaner.WorkCleanerService workCleanerService)
Method called when the workCleanerService is bound to the component. |
void |
unsetVersioningService()
Sets the versioning service to null. |
| Methods inherited from class org.ow2.jonas.lib.service.AbsServiceImpl |
|---|
convertToList, doInit, getDomainName, getJonasServerName, getName, getServerProperties, init, isStarted, setName, setServerProperties, start, stop, throwRequirementException, toString |
| Methods inherited from class org.ow2.jonas.lib.reconfig.ReconfigEmitter |
|---|
initLogger, sendReconfigNotification, sendSaveNotification |
| Methods inherited from class javax.management.NotificationBroadcasterSupport |
|---|
addNotificationListener, getNotificationInfo, handleNotification, removeNotificationListener, removeNotificationListener, sendNotification |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.ow2.jonas.service.Service |
|---|
getName, init, isStarted, setName, start, stop |
| Field Detail |
|---|
public static final String EASYBEANS_CONFIG_FILE
public static final String EASYBEANS_CLUSTER_CONFIG_FILE
protected static final String JONAS_BASE
protected static final String WORK_DIR
protected static final String WORK_EJB3S_DIR
| Constructor Detail |
|---|
public EasyBeansService(org.osgi.framework.BundleContext bundleContext)
bundleContext - the given bundle context.| Method Detail |
|---|
protected void doStart()
throws org.ow2.jonas.service.ServiceException
doStart in class org.ow2.jonas.lib.service.AbsServiceImplorg.ow2.jonas.service.ServiceException - service start-up failed
protected void doStop()
throws org.ow2.jonas.service.ServiceException
doStop in class org.ow2.jonas.lib.service.AbsServiceImplorg.ow2.jonas.service.ServiceException - service stopping failedprotected void configureExtraDialects()
public org.ow2.easybeans.api.EZBServer getEasyBeansServer()
getEasyBeansServer in interface org.ow2.jonas.ejb3.IEasyBeansServicepublic void setJmxService(org.ow2.jonas.jmx.JmxService jmxService)
jmxService - the jmxService to setpublic void setDeployerManager(org.ow2.util.ee.deploy.api.deployer.IDeployerManager deployerManager)
deployerManager - the deployerManagerService to setpublic static org.ow2.jonas.naming.JNamingManager getNamingManager()
public void setNamingManager(org.ow2.jonas.naming.JNamingManager naming)
naming - the NamingManger to setpublic void setResourceService(org.ow2.jonas.resource.ResourceService resourceService)
resourceService - the resourceService to setpublic org.ow2.jonas.resource.ResourceService getResourceService()
public void setCmiService(org.ow2.jonas.cmi.CmiService cmiService)
cmiService - a reference to the CMI servicepublic org.ow2.jonas.cmi.CmiService getCmiService()
public void addContainer(org.ow2.easybeans.api.EZBContainer ejbContainer)
addContainer in interface org.ow2.jonas.ejb3.IEasyBeansServiceejbContainer - the EJB3 bundle container to addpublic void removeContainer(org.ow2.easybeans.api.EZBContainer ejbContainer)
removeContainer in interface org.ow2.jonas.ejb3.IEasyBeansServiceejbContainer - the given containerprotected void initWorkingDirectory()
protected void setWorkCleanerService(org.ow2.jonas.workcleaner.WorkCleanerService workCleanerService)
workCleanerService - the workCleanerService referencepublic boolean isEJB3DeployedByWorkName(String unpackName)
IEasyBeansService interface.
isEJB3DeployedByWorkName in interface org.ow2.jonas.ejb3.IEasyBeansServiceunpackName - the name of the EJB3 file.
public void registerEmbeddedService()
registerEmbeddedService in interface org.ow2.jonas.ejb3.IEasyBeansServicepublic void setVersioningService(org.ow2.jonas.versioning.VersioningService versioningService)
versioningService - The versioning service to set.public void unsetVersioningService()
public org.ow2.jonas.versioning.VersioningService getVersioningService()
public void setJ2EEServer(org.ow2.jonas.management.J2EEServerService j2eeServer)
j2eeServer - the j2eeServer to set
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||