-
1. Re: Mixing EJB3 and POJO
pmuir May 11, 2007 12:29 PM (in response to smithbstl)Mix them to your hearts content :)
-
2. Re: Mixing EJB3 and POJO
stu2 May 11, 2007 12:31 PM (in response to smithbstl)You might also take a look at the wiki example, which demonstrates this extensively. Its dao layer is pojos and the pattern works extremely well.
-
3. Re: Mixing EJB3 and POJO
smithbstl May 11, 2007 12:31 PM (in response to smithbstl)Thanks Pete,
I did not see any examples of this in the reference apps so I didn't know if this was frowned upon as a bad architecture or was simply not possible.
So you are saying I can use the TransactionalSeamPhaseListener in an EJB container? I know the transactions are dealt with a little differently, but I should not notice a difference from my standpoint? -
4. Re: Mixing EJB3 and POJO
christian.bauer May 11, 2007 12:39 PM (in response to smithbstl)Please don't take the DAOs in the wiki example as a reference :) They have been done very quick and dirty and will be replaced at some point when I know how many/which DAO methods I really need.
-
5. Re: Mixing EJB3 and POJO
christian.bauer May 11, 2007 12:40 PM (in response to smithbstl)The SeamTransactionalPhaseListener works everywhere, transactional EJB methods join the transaction.
-
6. Re: Mixing EJB3 and POJO
pmuir May 11, 2007 12:41 PM (in response to smithbstl)Yes definitely. The TSPL isn't to do with whether you use POJO/EJB
-
7. Re: Mixing EJB3 and POJO
smithbstl May 11, 2007 12:41 PM (in response to smithbstl)
Thanks stu, can you point me to where i can find this example? Is it one of the example within Seam or somewhere else?
Thanks -
8. Re: Mixing EJB3 and POJO
smithbstl May 11, 2007 12:43 PM (in response to smithbstl)Ok, scratch the wiki example I guess, Lol, was typing before I saw Christian's posts.