private InvoiceManagerEJBHome invoiceManagerHome;
@TransactionAttribute(TransactionAttributeType.REQUIRED)
public void createCustomer(String name) throws RemoteException, JMSException {
Customer c1 = new Customer();
c1.setName(name);
entityManager.persist(c1);
final InvoiceManagerEJB invoiceManager = invoiceManagerHome.create();
invoiceManager.createInvoice(name);
}