1 22 package org.jboss.ejb.plugins; 23 24 import java.util.Map ; 25 26 import org.jboss.invocation.Invocation; 27 28 import org.jboss.metadata.SessionMetaData; 29 30 40 public class TxInterceptorBMT 41 extends AbstractTxInterceptorBMT 42 { 43 44 46 48 50 52 54 public void create() 55 throws Exception 56 { 57 super.create(); 59 60 stateless = ((SessionMetaData)container.getBeanMetaData()).isStateless(); 62 } 63 64 public Object invokeHome(Invocation mi) 65 throws Exception 66 { 67 if (stateless || mi.getEnterpriseContext() == null) 69 return getNext().invokeHome(mi); 70 else 71 return invokeNext(mi); 72 } 73 74 public Object invoke(Invocation mi) 75 throws Exception 76 { 77 return invokeNext(mi); 78 } 79 80 public void sample(Object s) 82 { 83 } 85 public Map retrieveStatistic() 86 { 87 return null; 88 } 89 public void resetStatistic() 90 { 91 } 92 93 95 97 } 98 99 | Popular Tags |