1 22 package org.jboss.ejb3.asynchronous; 23 24 import org.jboss.ejb3.JBossProxy; 25 import org.jboss.aspects.asynch.Future; 26 import org.jboss.aspects.asynch.AsynchProvider; 27 28 34 public class Asynch 35 { 36 public static Object getAsynchronousProxy(Object ejbRef) 37 { 38 JBossProxy proxy = (JBossProxy)ejbRef; 39 return proxy.getAsynchronousProxy(); 40 } 41 42 public static Future getFutureResult(Object asynchProxy) 43 { 44 AsynchProvider provider = (AsynchProvider)asynchProxy; 45 return provider.getFuture(); 46 } 47 } 48 | Popular Tags |