Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

ConstraintValidator + EJB Injection  RSS feed

Dominik Müller
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

Hibernate 3.5.1
javax.validation 1.0.0.GA
JSF 2.

Until now i implement all my validations with the default JSF validation standard.
Now i plan to replace this implementation with the Java ValidationFramework and some custom ContraintValidators.
My Problem now is, that (and that make sense i think, becase the validator isn't a managed bean) in the validator i can't inject any EJB (@EJB).

Is there any opportunity to make this available? The only solution i found in the web is to make a manual JNDI lookup, but this isn't so nice i think.

Thanks a lot
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!