JBoss datasource configuration settings

The following are sample configurations for different database (it's in the file standalone.xml subsystem=datasources):H2, postgresql, mysql<datasources> <datasource jndi-name="java:jboss/datasources/ExampleDS" pool-name="ExampleDS" enabled="true" use-java-context="true"> <connection-url>jdbc:h2:mem:test;DB_CLOSE_DELAY=-1</connection-url>...

How to validate a JavaEE6 Bean in a job

Normally bean validation is already integrated in frameworks like PrimeFaces, but what if we're working on data in a batch job? In these cases we won't have access to these libraries. So how do we validate our bean? Here's how I did it.For example we have an entity bean Customer:@Entity@Table(name =...