use of org.jboss.as.quickstarts.cmt.model.LogMessage in project quickstart by wildfly.
the class LogMessageManagerEJB method logCreateCustomer.
@TransactionAttribute(TransactionAttributeType.REQUIRES_NEW)
public void logCreateCustomer(String name) throws RemoteException, JMSException {
LogMessage lm = new LogMessage();
lm.setMessage("Attempt to create record for customer: '" + name + "'");
entityManager.persist(lm);
}
Aggregations