org.jfox.ejb.invoker.jrmp
Class JRMPContainerInvoker

java.lang.Object
  extended byorg.huihoo.jfox.system.ComponentSupport
      extended byorg.huihoo.jfox.system.ServiceSupport
          extended byorg.jfox.ejb.ContainerInvokerSupport
              extended byorg.jfox.ejb.invoker.jrmp.JRMPContainerInvoker
All Implemented Interfaces:
Component, ContainerInvoker, Loggable, Persistentable, java.rmi.Remote, java.lang.Runnable, java.io.Serializable, Service

public class JRMPContainerInvoker
extends ContainerInvokerSupport
implements ContainerInvoker

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.jfox.ejb.ContainerInvokerSupport
container, ctx, INVOKER_JNDI_PREFIX
 
Fields inherited from class org.huihoo.jfox.system.ComponentSupport
logger, name, proxyInstance, sequence, state
 
Constructor Summary
JRMPContainerInvoker()
           
 
Method Summary
protected  void doDestroy()
          do actually destory action
protected  void doInit()
          do actually create action
protected  void doStart()
          export this invoker and set container's invoker to this stub
protected  void doStop()
          do actually stop action
 java.lang.Object invoke(Invocation invocation)
          just forward to container 应该把客户的调用组装成一个 invocation 对象
static void main(java.lang.String[] args)
           
 
Methods inherited from class org.jfox.ejb.ContainerInvokerSupport
ping, run
 
Methods inherited from class org.huihoo.jfox.system.ServiceSupport
isRunning, start, stop
 
Methods inherited from class org.huihoo.jfox.system.ComponentSupport
destroy, getLogger, getName, getState, init, parseName, setLogger, setName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jfox.ejb.ContainerInvoker
ping
 
Methods inherited from interface org.huihoo.jfox.system.Component
destroy, getName, getState, init
 
Methods inherited from interface org.huihoo.jfox.system.Loggable
getLogger
 

Constructor Detail

JRMPContainerInvoker

public JRMPContainerInvoker()
Method Detail

doInit

protected void doInit()
               throws java.lang.Exception
Description copied from class: ComponentSupport
do actually create action

Specified by:
doInit in class ComponentSupport
Throws:
java.lang.Exception

doStart

protected void doStart()
                throws java.lang.Exception
export this invoker and set container's invoker to this stub

Specified by:
doStart in class ServiceSupport
Throws:
java.lang.Exception

doStop

protected void doStop()
               throws java.lang.Exception
Description copied from class: ServiceSupport
do actually stop action

Specified by:
doStop in class ServiceSupport
Throws:
java.lang.Exception

doDestroy

protected void doDestroy()
                  throws java.lang.Exception
Description copied from class: ComponentSupport
do actually destory action

Specified by:
doDestroy in class ComponentSupport
Throws:
java.lang.Exception

invoke

public java.lang.Object invoke(Invocation invocation)
                        throws java.rmi.RemoteException
just forward to container 应该把客户的调用组装成一个 invocation 对象

Specified by:
invoke in interface ContainerInvoker
Throws:
java.rmi.RemoteException

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
Throws:
java.lang.Exception