Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Access Hibernate Session from Filter

 
Maria Diminuta
Greenhorn
Posts: 15
Chrome Java Mac
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have a Filter that has to check the database for certain config value, the problem is that whenever I try to use the EntityManager it throws an exception:


What can I do?
 
Paul Clapham
Sheriff
Posts: 21567
33
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Could you show us your code in which you think the session should be started?
 
Maria Diminuta
Greenhorn
Posts: 15
Chrome Java Mac
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry, I have just solved it outside the filter... thank you anyway.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic