Yes i use ejb and cdi for controllers. I know that is possible create a em
with scope request Li ke you suggest.
But i use the crud generator  for primefaces  that create the e jbs for the
jpa part.

Il 20/Nov/2016 10:19, "chongma [via TomEE & OpenEJB]" <
[email protected]> ha scritto:

> are you using EJB and ManagedBean?  if you switch to CDI everything lazy
> loads inside JSF.  This is because EJB finishes loading before JSF
> RENDER_RESPONSE.  I recently did this and it is not too hard.
>
> ------------------------------
> If you reply to this email, your message will be added to the discussion
> below:
> http://tomee-openejb.979440.n4.nabble.com/tomee-example-
> for-resolve-the-problem-of-lazy-load-tp4680561p4680601.html
> To unsubscribe from tomee example for resolve the problem of lazy load., click
> here
> <http://tomee-openejb.979440.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4680561&code=bWF1cm8yamF2YTIwMTFAZ21haWwuY29tfDQ2ODA1NjF8LTExMTcxODc2MjU=>
> .
> NAML
> <http://tomee-openejb.979440.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>




--
View this message in context: 
http://tomee-openejb.979440.n4.nabble.com/tomee-example-for-resolve-the-problem-of-lazy-load-tp4680561p4680602.html
Sent from the TomEE Users mailing list archive at Nabble.com.

Reply via email to