• Post Reply Bookmark Topic Watch Topic
  • New Topic

Calling DAO from session scoped bean

 
Kerry Wilson
Ranch Hand
Posts: 254
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What is the best practice for calling a DAO from a session scoped bean? Typically I would create an injected DAO field on the bean. However, this is not valid with a session scoped bean since the DAO is not serializable.

Example:

 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!