This content has been marked as final.
Show 2 replies
-
1. Re: Message Driven Bean as Seam component
kapitanpetko May 29, 2009 3:59 AM (in response to jon)All you need is MessageDriven and Name. The messaging function should work as before,
you probably have some other configuration problem.What do you mean by:
I have an MDB that is working as an EJB component (@MessageDriven), called by a conversational Seam component.Your MDB should receive messages and that's it. How are you calling it?
Or by 'calling' you mean 'sending a message'?And what do mean by is the EntityManager valid? You can only inject event and application scoped components
in an MDB, so if you are thinking about injecting the SMPC, that won't work.HTH
-
2. Re: Message Driven Bean as Seam component
jon May 29, 2009 6:15 PM (in response to jon)Thanks for the reply. I have got this working now. I am injecting a stateless bean that has an entitymanager marked with @PersistenceContext(type=PersistenceContextType.TRANSACTION). It was previously PersistenceContextType.EXTENDED which was incompatible with the context of an MDB. I can now do EJB database transactions in the MDB.