|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface EJBService
EJB Service interface.
Method Summary | |
---|---|
void |
checkGenIC(String fileName,
URL[] urls)
Check that GenIC have been applied on the given ejb-jar file If it was not done, it run GenIC against the file. |
String |
createContainer(Context ctx)
Create a JOnAS Container for all the beans that are described in a .xml file, or belong to .jar file. |
String |
createContainer(String fileName)
Create a JOnAS Container for all the beans that are described in a .xml file, or belong to .jar file. |
void |
deployJars(Context ctx)
Deploy the given ejb-jars of an ear file with the specified parent classloader (ear classloader). |
String |
getContainerContextID(String containerFileName)
Returns the ContextID associated to this container filename. |
Timer |
getTimer(JTimerHandleInfo info)
Get a new Timer . |
Boolean |
isJarDeployed(String fileName)
Test if the specified file is already deployed (if a container is created for this jar). |
boolean |
isJarDeployedByWorkName(String workFileName)
Test if the specified jar identified with its work name is already deployed (if a container is created for this jar). |
void |
removeCache(ClassLoader earClassLoader)
Make a cleanup of the cache of deployment descriptor. |
void |
removeContainer(String fileName)
Removes a JOnAS Container. |
Timer |
restartTimer(JTimerHandleInfo info)
Restart a Timer given some input infos. |
void |
syncAllEntities(boolean passivate)
Synchronized all entity bean containers. |
void |
unDeployJars(URL[] urls)
Undeploy the given ejb-jars of an ear file with the specified parent classloader (ear classloader). |
Methods inherited from interface org.ow2.jonas.service.Service |
---|
getName, init, isStarted, setName, start, stop |
Method Detail |
---|
String createContainer(Context ctx) throws Exception
ctx
- JNDI context in which is found the container configuration.
Exception
- if Container creation was unable to complete.String createContainer(String fileName) throws Exception
fileName
- EjbJar filename.
Exception
- when the EjbJar cannot be deployed.Boolean isJarDeployed(String fileName)
fileName
- the name of the jar file
boolean isJarDeployedByWorkName(String workFileName)
workFileName
- the internal name of the jar file (working copy)
void removeContainer(String fileName) throws Exception
fileName
- JOnAS container to remove.
Exception
- when the EjbJar cannot be undeployed.void syncAllEntities(boolean passivate)
passivate
- passivate instances after synchronization.void deployJars(Context ctx) throws ServiceException
ctx
- the context containing the configuration
to deploy the ejbjars.ServiceException
- if an error occurs during the deployment.void unDeployJars(URL[] urls)
urls
- the list of the urls of the ejb-jars to deploy.void removeCache(ClassLoader earClassLoader)
earClassLoader
- the ClassLoader of the ear application to
remove from the cache.void checkGenIC(String fileName, URL[] urls)
fileName
- given EJB-JAR file.urls
- Array of URLs used as CLASSPATH during EJB compilationString getContainerContextID(String containerFileName)
EARService
for security purpose.
containerFileName
- container filename
Timer getTimer(JTimerHandleInfo info)
Timer
.
info
- JTimerHandleInfo
instance used for Timer
creation.
Timer
Timer restartTimer(JTimerHandleInfo info)
Timer
given some input infos.
info
- JTimerHandleInfo
instance used for Timer
restart.
Timer
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |