Home

Add a comment

 

Re: JSR-299 & @Produces

Hi Simon,

Thanks for the feedback.

With regards to your second point, I tried it, and you are right, I can't just inject a persistence context into a CDI bean. But I wonder if that is because the spec writers were thinking that a CDI bean is designed for the web layer, and a persistence context is designed for the EJB layer (where transactions are handled)? I don't like the idea of injecting a persistence context into a CDI bean anyway (using @Produces or any other way). Although it is better than writing SQL in a JSP, IMHO it is still mixing up concerns.

Cheers,
Ant

Re: JSR-299 & @Produces


Title
Body
HTML : b, strong, i, em, blockquote, br, p, pre, a href="", ul, ol, li, sub, sup
Name
E-mail address
Website
Remember me Yes  No 

E-mail addresses are not publicly displayed, so please only leave your e-mail address if you would like to be notified when new comments are added to this blog entry (you can opt-out later).