Configuring Resources:

For example,

@Resource DataSource moviesDatabase 

is injected with the following resource:

<Resource id="moviesDatabase" type="DataSource">    
JdbcDriver org.hsqldb.jdbcDriver    
JdbcUrl jdbc:mysql:localhost:3306/moviesdb    
UserName sa    
Password secret    
JtaManaged true    
</Resource>

For more on how to configure, read through configuring-datasources, containers-and-resources docs.