This content has been marked as final.
Show 4 replies
-
1. Re: Reuse stateless services built with Seam
benmoore Sep 24, 2008 9:36 PM (in response to gjeudy)I am also interested in a solution to this besides using @PersistenceContext.
-
2. Re: Reuse stateless services built with Seam
asavitsky Sep 25, 2008 6:30 PM (in response to gjeudy)If your EJB executes locally, then I guess the manual lookup Component.getInstance(
em
) should work - just place it in your getEm() as a fallback to when em is null. -
3. Re: Reuse stateless services built with Seam
gjeudy Sep 25, 2008 7:31 PM (in response to gjeudy)Not a bad idea, I should give this a try and see how it goes.
-
4. Re: Reuse stateless services built with Seam
gjeudy Oct 23, 2008 5:44 PM (in response to gjeudy)Reviving this thread. I don't know what I was thinking when I first replied. I'm not reusing the stateless services in a local context but a remote context where no Seam conversation or Seam session is available, therefore bye bye SMPC.
Anyone got a way to solve this problem without injecting both @In entityManager and @PersistenceContext entityManager to my stateless service EJB?