package org.jfox.ejb.invoker.local;
import java.rmi.RemoteException;
import javax.ejb.EJBException;
import org.jfox.ejb.Invocation;
import org.jfox.ejb.invoker.ContainerRemote;
import org.jfox.ejb.invoker.ContainerServiceSupport;
public class LOCALContainerService extends ContainerServiceSupport implements ContainerRemote {
private static LOCALContainerService invoker = new LOCALContainerService();
private LOCALContainerService() {
}
public static LOCALContainerService getInstance(){
return invoker;
}
protected void doInit() throws Exception {
super.doInit();
}
protected void doStart() throws Exception {
}
protected void doStop() throws Exception {
}
protected synchronized void doDestroy() throws Exception {
}
public Object invoke(Invocation invocation) throws RemoteException {
logger.debug("invoke " + invocation.toString());
try {
return container.invoke(invocation);
}
catch(Exception e){
logger.error(e.getMessage(),e);
throw new EJBException(e);
}
}
public static void main(String[] args) {
}
}