/* */ public Object invoke(Invocation mi)
/* */ throws Exception
/* */ {
/* 81 */ MessageDrivenContainer mdc = (MessageDrivenContainer)this.container;
/* 82 */ InstancePool pool = mdc.getInstancePool();
/* 83 */ EnterpriseContext ctx = null;
/* */ try
/* */ {
/* 86 */ ctx = pool.get();
/* */ }
/* */ catch (EJBException e)
/* */ {
/* 90 */ throw e;
/* */ }
/* */ catch (Exception e)
/* */ {
/* 94 */ throw new EJBException("Unable to get an instance from the pool", e);
/* */ }
/* */
/* 98 */ ctx.setPrincipal(mi.getPrincipal());
/* */
/* 101 */ mi.setEnterpriseContext(ctx);
/* */
/* 103 */ EnterpriseBeanPolicyContextHandler.setEnterpriseBean(ctx.getInstance());
/* */
/* 105 */ if (ejbTimeout.equals(mi.getMethod()))
/* 106 */ AllowedOperationsAssociation.pushInMethodFlag(IN_EJB_TIMEOUT);
/* */ else {
/* 108 */ AllowedOperationsAssociation.pushInMethodFlag(IN_BUSINESS_METHOD);