1 6 7 package org.jfox.ejb.handler; 8 9 import java.util.Iterator ; 10 11 import org.jfox.ejb.Bucket; 12 import org.jfox.ejb.SessionBucket; 13 import org.jfox.ejb.connector.EJBInvocation; 14 15 22 23 public class Z5_SessionHandler extends AbstractHandler { 24 25 public Object invokeHome(Bucket bucket, EJBInvocation invocation, Iterator iter) throws Exception { 26 return ((SessionBucket) bucket).createBean(invocation); 29 } 30 31 public Object invokeBean(Bucket bucket, EJBInvocation invocation, Iterator iter) throws Exception { 32 return invocation.getMethod().invoke(invocation.getBean(), invocation.getArgs()); 33 } 34 35 public static void main(String [] args) { 36 37 } 38 } 39 | Popular Tags |