I have try to use NamedQuery in Session Bean. It does not work. There is a JIRA issue about that:
http://opensource.atlassian.com/projects/hibernate/browse/EJB-74?watch=true
It is still open. Will it be closed or fixed ? I do not find anything in the spec that speaks about where to write this annotation.
Is there other solution to externalize queries source code (better than using property files)?