session beans.
| Method from org.jboss.ejb.StatelessSessionContainer Detail: |
Interceptor createContainerInterceptor() {
return new ContainerInterceptor();
}
|
public EJBObject createHome() throws CreateException, RemoteException {
EJBProxyFactory ci = getProxyFactory();
if (ci == null)
{
String msg = "No ProxyFactory, check for ProxyFactoryFinderInterceptor";
throw new IllegalStateException(msg);
}
createCount++;
Object obj = ci.getStatelessSessionEJBObject();
return (EJBObject) obj;
}
|
public EJBLocalObject createLocalHome() throws CreateException {
if (localProxyFactory == null)
{
String msg = "No ProxyFactory, check for ProxyFactoryFinderInterceptor";
throw new IllegalStateException(msg);
}
createCount++;
return localProxyFactory.getStatelessSessionEJBLocalObject();
}
|
public void remove(Invocation mi) throws RemoveException, RemoteException {
log.debug("Useless invocation of remove() for stateless session bean");
}
|
public void removeHome(Handle handle) throws RemoveException, RemoteException {
throw new UnreachableStatementException();
}
|
public void removeHome(Object primaryKey) throws RemoveException, RemoteException {
throw new UnreachableStatementException();
}
|
public void removeLocalHome(Object primaryKey) {
log.debug("Useless invocation of remove(Object) for stateless session bean");
}
|
protected void setupHomeMapping() throws NoSuchMethodException {
Map map = new HashMap();
if (homeInterface != null)
{
Method[] m = homeInterface.getMethods();
for (int i = 0; i < m.length; i++)
{
// Implemented by container
log.debug("Mapping " + m[i].getName());
map.put(m[i], getClass().getMethod(m[i].getName() + "Home", m[i].getParameterTypes()));
}
}
if (localHomeInterface != null)
{
Method[] m = localHomeInterface.getMethods();
for (int i = 0; i < m.length; i++)
{
// Implemented by container
log.debug("Mapping " + m[i].getName());
map.put(m[i], getClass().getMethod(m[i].getName() + "LocalHome", m[i].getParameterTypes()));
}
}
homeMapping = map;
}
|