• Post Reply Bookmark Topic Watch Topic
  • New Topic

Access Hibernate Session from Filter  RSS feed

 
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: 22697
43
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
Boost this thread!