- 
        1. Re: Seam Mail (sending) and Message-Driven Beans?pmuir Apr 5, 2007 4:35 AM (in response to aschneid75)With JBoss AS 4.0.5, you won't get any bijection or lifecycle stuff automatically in an MDB (except for JMS ones) - you have to it manually with Lifecycle.beginCall() and then Component.getInstance. This is a bug in EJB3. 
 It should be fixed in 4.2.0.CR1 though I haven't confirmed this, so I suggest trying 4.2
- 
        2. Re: Seam Mail (sending) and Message-Driven Beans?aschneid75 Apr 5, 2007 11:16 AM (in response to aschneid75)Thanks...so I guess my question would be, as long as I define my variables in the MDB with an @Out annotation, then in the onMessage method do the Lifecycle calls, the renderer should be able to use the objects I create in my MDB to render the facelet and send the email? 
 I don't really need any components from Seam in my MDB, just want to make sure the objects created in the MDB are available for the email.
 Thanks.
- 
        3. Re: Seam Mail (sending) and Message-Driven Beans?pmuir Apr 5, 2007 11:31 AM (in response to aschneid75)No, bijection won't work on MDBs in 4.0.5 - really the best answer is to use 4.2.0.CR1 I think. Or use Contexts.getEventContext().set(...,...); 
- 
        4. Re: Seam Mail (sending) and Message-Driven Beans?gavin.king Apr 12, 2007 6:45 PM (in response to aschneid75)The workaround for 4.0.5 is to have the MDB call a Seam stateless session bean, and do the work in the SLSB. 
- 
        5. Re: Seam Mail (sending) and Message-Driven Beans?aschneid75 Apr 12, 2007 7:40 PM (in response to aschneid75)"gavin.king@jboss.com" wrote: 
 The workaround for 4.0.5 is to have the MDB call a Seam stateless session bean, and do the work in the SLSB.
 Thanks Gavin,
 That would probably be a little cleaner than the above solution. I actually was able to get it to work using the Lifecycle.beginCall/endCall and using the contexts.
 We are still determining if 4.2 is a viable option at this point, so I will probably leave the code as is until that decision is made. Otherwise, I will probably implement as a SLSB.
 
     
    