Marc, This is getng silly !!! ...
just employ James ??? ... on 14-04-2 00.37, Dain Sundstrom at [EMAIL PROTECTED] wrote: > It will be like we discussed. The mail just took like 2 hours to get > delivered. I'm almost done... it is very simple.... > > -dain > > Bill Burke wrote: > >> Why not like we discussed Dain? >> Have an interceptor before EntityLockInterceptor that creates to >> invocations. An invokeHome invocation for the ejbCreate and a regular >> invocation for the ejbPostCreate? >> >> >>> -----Original Message----- >>> From: Dain Sundstrom [mailto:[EMAIL PROTECTED]] >>> Sent: Saturday, April 13, 2002 4:52 PM >>> To: JBoss-dev; marc fleury; Bill Burke >>> Subject: INSERTING AN ALREADY EXISTING BEAN >>> >>> >>> I have found another way to get the INSERTING AN ALREADY EXISTING BEAN >>> bug to appear. The following code you would add to LineItem (in an >>> Order-LineItem relationship): >>> >>> public String ejbCreate(Long id, Order order) { >>> setId(id); >>> return null; >>> } >>> >>> public void ejbPostCreate(Long id, Order order) { >>> order.getLineItems().add((LineItem)ctx.getEJBLocalObject()); >>> } >>> >>> I think the problem is because ejbCreate and ejbPostCreate being >>> combined into the same invokeHome. When ejbCreate is being invoked the >>> entity is an a special state, but ejbPostCreate should be treated as >>> just a standard method invocation after ejbCreate completes (back to the >>> EntityContainer). >>> >>> Unless someone has a better idea, or a good bug fix for this problem, >>> I'm going to start looking in breaking ejbCreate and ejbPostCreate into >>> two steps. >>> >>> -dain >>> > > > > _______________________________________________ > Jboss-development mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/jboss-development _______________________________________________ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development