In this test the persistence unit is defined inside an EJB module (.jar)
The actual JPA code being run is not specifically relevant; any kind of JPA operation that uses the data source is okay here. @author Arjan Tijms
52535455565758596061626364
@Named public class SalesProcessor implements ItemProcessor { @Override public Sales processItem(Object s) { Sales sales = new Sales(); StringTokenizer tokens = new StringTokenizer((String)s, ","); sales.setId(Integer.parseInt(tokens.nextToken())); sales.setAmount(Float.parseFloat(tokens.nextToken())); return sales; }