/** * Returns a new instance of the bean class or a subclass of the bean class. * This factory style method is speciffically used by a container to supply * an implementation of the abstract accessors in EJB2.0, but could be * usefull in other situations. This method should ALWAYS be used instead * of getBeanClass().newInstance(); * * @return the new instance * * @see java.lang.Class#newInstance */ public Object createBeanClassInstance() throws Exception { return getBeanClass().newInstance(); }
public void discard(EnterpriseContext ctx) { if( log.isTraceEnabled() ) { String msg = "Discard instance:"+this+"#"+ctx +"#"+ctx.getTransaction() +"#"+reclaim +"#"+getContainer().getBeanClass(); log.trace(msg); } // If we block when maxSize instances are in use, invoke release on strictMaxSize if( strictMaxSize != null ) strictMaxSize.release(); // Throw away, unsetContext() try { ctx.discard(); } catch (RemoteException e) { if( log.isTraceEnabled() ) log.trace("Ctx.discard error", e); } }
+"#"+ctx.getTransaction() +"#"+reclaim +"#"+getContainer().getBeanClass(); log.trace(msg);
log.trace("Get instance "+this+"#"+pool.size()+"#"+getContainer().getBeanClass());
log.error("Error getting callerPrincipal for " + con.getBeanClass(),e);
ejbCS = container.getBeanClass().getProtectionDomain().getCodeSource(); securityManagement = (ISecurityManagement) container.getSecurityManagement();