This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

@persistenceContext in the managedbean of jsf  RSS feed

 
V.N.T.Deepak Solasa
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
I am using ejb3.0 along with jsf.I am trying to use
@PersistenceContext
Private EntityManager entityManager
in the managed bean of jsf and i am getting the entityManager value as null.

Thanks for any kind of suggestions.

Regards
Deepak
 
maxsn max
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
[EMAIL]Hi
I'me having the same trouble.
I'm using Struts and when I try to inject an EntityManager with @PersistenceContext, I've a NullPointerException.
if you have solve you problem, please help me

Friendly maxinf
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"maxsn maxsn",
Please check your private messages regarding an important administrative matter.
-Ben
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!