This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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 Android Security Essentials Live Lessons this week in the Android 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
JPA - Joining of two tables
Memory Issues with JPA
Is it possible to use JPA 2.0 with EJB 3.0? (not EJB 3.1)?
setting classpath
Why is eclipse deploying me ejb with my web project?