You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by lu dongping <ou...@gmail.com> on 2008/03/01 17:00:55 UTC

[T5] How can I inject an EJB3 EntityManager ?

hi all,
    I'm a newbie here.
    Now I can access db with the injected  hibernate session  .
    But when I try to Inject an EJB3 EntityManager, following error occurs:
      " No service implements the interface javax.persistence.EntityManager "
    I guess  a persistence.xml is needed at least possibly , anybody
met such problem ?

    Thanks!

outersky

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: [T5] How can I inject an EJB3 EntityManager ?

Posted by "Filip S. Adamsen" <fs...@fsadev.com>.
It's just as the error message says: No service implements the 
EntityManager interface. You'll have to implement your own service for 
now if you want to use that instead of a Session.

-Filip

lu dongping skrev:
> hi all,
>     I'm a newbie here.
>     Now I can access db with the injected  hibernate session  .
>     But when I try to Inject an EJB3 EntityManager, following error occurs:
>       " No service implements the interface javax.persistence.EntityManager "
>     I guess  a persistence.xml is needed at least possibly , anybody
> met such problem ?
> 
>     Thanks!
> 
> outersky
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org