1 7 package org.jboss.ha.httpsession.beanimpl.ejb; 8 9 import java.io.Serializable ; 10 11 import org.jboss.invocation.Invocation; 12 import org.jboss.invocation.PayloadKey; 13 import org.jboss.proxy.Interceptor; 14 15 23 public class ClientTCLInterceptor 24 extends Interceptor 25 implements Serializable 26 { 27 30 private static final long serialVersionUID = 1092404482795617680L; 31 32 public ClientTCLInterceptor() 33 { 34 } 35 36 38 41 public Object invoke(Invocation invocation) 42 throws Throwable 43 { 44 ClassLoader tcl = Thread.currentThread().getContextClassLoader(); 45 invocation.setValue("org.jboss.invocation.TCL", tcl, PayloadKey.TRANSIENT); 46 return getNext().invoke(invocation); 47 } 48 } 49 | Popular Tags |