|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface CmiService
CMI Service interface. It provides a way to use CMI with JOnAS.
Method Summary | |
---|---|
void |
addClusteredObject(String jndiName,
Object clusterConfig,
Class<?> homeClass,
Class<? extends EJBObject> remoteClass,
ClassLoader classLoader,
boolean stateful,
boolean clusterReplicated)
Add a bean to the cluster. |
org.ow2.util.event.api.IEventListener |
getBeanEventListener()
Gets Listener for Bean Events. |
void |
removeClusteredObject(String jndiName)
Remove the given clustered object. |
void |
setBeanEventListener(org.ow2.util.event.api.IEventListener eventListener)
Set the bean event listener. |
Methods inherited from interface org.ow2.jonas.service.Service |
---|
getName, init, isStarted, setName, start, stop |
Method Detail |
---|
void addClusteredObject(String jndiName, Object clusterConfig, Class<?> homeClass, Class<? extends EJBObject> remoteClass, ClassLoader classLoader, boolean stateful, boolean clusterReplicated) throws Exception
jndiName
- name of the beanclusterConfigMapping
- The cluster configurationhomeClass
- 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)env
- a given environment.
Exception
- if the provided policy of load-balancing is not validvoid removeClusteredObject(String jndiName) throws Exception
jndiName
- Name of the object to remove
Exception
- anyorg.ow2.util.event.api.IEventListener getBeanEventListener() throws Exception
Exception
- any.void setBeanEventListener(org.ow2.util.event.api.IEventListener eventListener) throws Exception
eventListener
- The bean event listener to set.
Exception
- any.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |