This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Beginning Java and the fly likes Persistance context and blazeds problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Persistance context and blazeds problem" Watch "Persistance context and blazeds problem" New topic
Author

Persistance context and blazeds problem

Dawid Skrzypczynski
Ranch Hand

Joined: Jun 08, 2011
Posts: 52
Hi,

I am using PersistanceContext to inject EntityManager and its works when i use Java for back-end and front-end(JSF:Managed bean) but now i want to use Flex as front-end. I am using blazeds to connect between Java and Flex. I created simple test service that generates list and this is works properly. Problem is when i tried to retrieve this list from my databases it turned out that my EntityManager is not injected by PersistanceContext. What i am doing wrong ?

Dawid Skrzypczynski
Ranch Hand

Joined: Jun 08, 2011
Posts: 52
This issue is important point in my project, no one really knows? I just can't inject any beans to my service class.
Stuart A. Burkett
Ranch Hand

Joined: May 30, 2012
Posts: 679
Dawid Skrzypczynski wrote:This issue is important point in my project, no one really knows?

You posted in the Beginning Java forum. I think your question is probably a bit more advanced than that. Hopefully a moderator will see this and move it to a more appropriate forum.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Persistance context and blazeds problem