Search in sources :

Example 1 with LogMessage

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);
}
Also used : LogMessage(org.jboss.as.quickstarts.cmt.model.LogMessage) TransactionAttribute(javax.ejb.TransactionAttribute)

Aggregations

TransactionAttribute (javax.ejb.TransactionAttribute)1 LogMessage (org.jboss.as.quickstarts.cmt.model.LogMessage)1