1 6 7 package org.jfox.ejb.connector; 8 9 import org.jfox.ejb.Bucket; 10 import org.jfox.ejb.EJBObjectId; 11 import org.jfox.ioc.connector.ClusterableContainer; 12 import org.jfox.ioc.connector.Invocation; 13 14 17 18 public class ClusterableEJBContainerImpl extends EJBContainerImpl implements ClusterableContainer{ 19 20 public ClusterableEJBContainerImpl() { 21 22 } 23 24 29 public void syncInvocation(Invocation invocation) { 30 EJBObjectId ejbObjectId = (EJBObjectId) invocation.getObjectId(); 31 if(ejbObjectId.isHome()){ 33 return; 34 } 35 logger.debug("syncInvocation " + ejbObjectId); 36 String ejbName = ejbObjectId.getEjbName(); 37 Bucket bucket = getBucket(ejbName); 38 bucket.syncBean((EJBInvocation)invocation); 39 } 40 41 public static void main(String [] args) { 42 43 } 44 } 45 | Popular Tags |