1 28 29 package com.caucho.ejb.session; 30 31 import com.caucho.ejb.AbstractContext; 32 import com.caucho.ejb.AbstractServer; 33 34 import javax.ejb.EJBObject ; 35 import javax.ejb.Handle ; 36 import javax.ejb.SessionContext ; 37 38 import javax.xml.rpc.handler.MessageContext ; 39 40 43 abstract public class AbstractStatelessContext extends AbstractContext 44 implements SessionContext 45 { 46 protected final StatelessServer _server; 47 48 private EJBObject _remote; 49 50 protected AbstractStatelessContext(StatelessServer server) 51 { 52 _server = server; 53 } 54 55 58 public AbstractServer getServer() 59 { 60 return _server; 61 } 62 63 66 public StatelessServer getStatelessServer() 67 { 68 return _server; 69 } 70 71 74 public Handle getHandle() 75 { 76 return getStatelessServer().createHandle(this); 77 } 78 79 83 93 94 public Object getPrimaryKey() 95 { 96 return "::ejb:stateless"; 97 } 98 99 public <T> T getBusinessObject(Class <T> businessInterface) 100 { 101 throw new UnsupportedOperationException (); 102 } 103 104 public Class getInvokedBusinessInterface() 105 { 106 throw new UnsupportedOperationException (); 107 } 108 109 public MessageContext getMessageContext() 110 { 111 throw new UnsupportedOperationException (); 112 } 113 } 114 | Popular Tags |