hi claudio,

the injected entity-manager is already a proxy -> you can expose it as it
is.

that part of the documentation is based on demo-applications.
if something doesn't work for you, please provide a link to
a demo-application which illustrates the issue.

regards,
gerhard



2014-09-22 22:24 GMT+02:00 Claudio Miranda <clau...@claudius.com.br>:

> Hi, I was reading the jpa doc [1], and the recommendation to inject
> the @PersistenceUnit to create an EM to produce it, the @Transactional
> doesn't work, as the EM is BMT, the em.persist doesn't flush the
> entity to table.
>
> Also every emf.createEM invocation will create a new EM, looks like
> the right approach to produce an EM for EE server is the no EE-Server
> section.
>
> 1. deltaspike.apache.org/documentation/jpa.html
>
> --
>   Claudio Miranda
>
> clau...@claudius.com.br
> http://www.claudius.com.br
>

Reply via email to