• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

JPA 2.0, JSR 303 Bean Validation, and Resource Bundle

 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello,

I'm using Bean Validation with JPA 2.0, EJB 3.1, and GlassFish 3.1 - but not with JSF. I have a CRUD service EJB jar file that gets deployed into GlassFish by itself.

I would like to specify validation messages for my JPA entities in a resource bundle (ValidationMessages.properties?). But I can't find documentation on where exactly to put the resource bundle file in my EJB jar file and how to configure JPA to use it automatically.

Thanks in advance.
 
Ranch Hand
Posts: 38
Eclipse IDE Tomcat Server Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
JPA is just an API, you must be using some implementation like EclipseLink, TopLinks or Hibernate. so whatever Implementation you are using, search in it's documentation.
 
reply
    Bookmark Topic Watch Topic
  • New Topic