org.ow2.jonas.cmi
Interface CmiService

All Superinterfaces:
Service
All Known Implementing Classes:
CmiServiceImpl

public interface CmiService
extends Service

CMI Service interface. It provides a way to use CMI with JOnAS.

Author:
Loris Bouzonnet

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

addClusteredObject

void addClusteredObject(String jndiName,
                        Object clusterConfig,
                        Class<?> homeClass,
                        Class<? extends EJBObject> remoteClass,
                        ClassLoader classLoader,
                        boolean stateful,
                        boolean clusterReplicated)
                        throws Exception
Add a bean to the cluster.

Parameters:
jndiName - name of the bean
clusterConfigMapping - The cluster configuration
homeClass - class of the home interface
remoteClass - class of the remote interface
classLoader - the classloader used by the container of this bean
stateful - true if the bean has a state
clusterReplicated - true if the bean is replicated (ha service is required)
env - a given environment.
Throws:
Exception - if the provided policy of load-balancing is not valid

removeClusteredObject

void removeClusteredObject(String jndiName)
                           throws Exception
Remove the given clustered object.

Parameters:
jndiName - Name of the object to remove
Throws:
Exception - any

getBeanEventListener

org.ow2.util.event.api.IEventListener getBeanEventListener()
                                                           throws Exception
Gets Listener for Bean Events.

Returns:
The bean Event Listener.
Throws:
Exception - any.

setBeanEventListener

void setBeanEventListener(org.ow2.util.event.api.IEventListener eventListener)
                          throws Exception
Set the bean event listener.

Parameters:
eventListener - The bean event listener to set.
Throws:
Exception - any.


Copyright © 2010 OW2 Consortium. All Rights Reserved.