File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes EJB and other Java EE Technologies and the fly likes JPA 2.0, JSR 303 Bean Validation, and Resource Bundle Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "JPA 2.0, JSR 303 Bean Validation, and Resource Bundle" Watch "JPA 2.0, JSR 303 Bean Validation, and Resource Bundle" New topic
Author

JPA 2.0, JSR 303 Bean Validation, and Resource Bundle

Robert Pepersack
Greenhorn

Joined: Aug 09, 2007
Posts: 8
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.
Mahendr Shinde
Ranch Hand

Joined: Sep 03, 2011
Posts: 38

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.


There is still lot to learn!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JPA 2.0, JSR 303 Bean Validation, and Resource Bundle
 
Similar Threads
setting classpath
Memory Issues with JPA
Why is eclipse deploying me ejb with my web project?
Is it possible to use JPA 2.0 with EJB 3.0? (not EJB 3.1)?
JPA - Joining of two tables