[jboss-cvs] JBossAS SVN: r66748 - trunk/ejb3/src/main/org/jboss/ejb3/entity.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Mon Nov 5 13:51:23 EST 2007


Author: ALRubinger
Date: 2007-11-05 13:51:22 -0500 (Mon, 05 Nov 2007)
New Revision: 66748

Modified:
   trunk/ejb3/src/main/org/jboss/ejb3/entity/PersistenceUnitDeployment.java
Log:
[EJBTHREE-933] Enhanced error message to reference specification

Modified: trunk/ejb3/src/main/org/jboss/ejb3/entity/PersistenceUnitDeployment.java
===================================================================
--- trunk/ejb3/src/main/org/jboss/ejb3/entity/PersistenceUnitDeployment.java	2007-11-05 17:35:35 UTC (rev 66747)
+++ trunk/ejb3/src/main/org/jboss/ejb3/entity/PersistenceUnitDeployment.java	2007-11-05 18:51:22 UTC (rev 66748)
@@ -226,7 +226,8 @@
       }
       else if (transactionType == PersistenceUnitTransactionType.JTA)
       {
-         throw new RuntimeException("You have not defined a jta-data-source for a JTA enabled persistence context named: " + xml.getName());
+         throw new RuntimeException("Specification violation [EJB3 JPA 6.2.1.2] - "
+               + "You have not defined a jta-data-source for a JTA enabled persistence context named: " + xml.getName());
       }
       if (xml.getNonJtaDatasource() != null)
       {
@@ -234,7 +235,9 @@
       }
       else if (transactionType == PersistenceUnitTransactionType.RESOURCE_LOCAL)
       {
-         throw new RuntimeException("You have not defined a non-jta-data-source for a RESOURCE_LOCAL enabled persistence context named: " + xml.getName());
+         throw new RuntimeException("Specification violation [EJB3 JPA 6.2.1.2] - "
+               + "You have not defined a non-jta-data-source for a RESOURCE_LOCAL enabled persistence context named: "
+               + xml.getName());
       }
       pi.setProperties(props);
 




More information about the jboss-cvs-commits mailing list