Package org.jboss.as.quickstarts.cmt.model

Examples of org.jboss.as.quickstarts.cmt.model.LogMessage


    @PersistenceContext
    private EntityManager entityManager;

    @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);
    }
View Full Code Here

TOP

Related Classes of org.jboss.as.quickstarts.cmt.model.LogMessage

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.