Author: kmalhi
Date: Sat Jul 17 04:21:22 2010
New Revision: 965007

URL: http://svn.apache.org/viewvc?rev=965007&view=rev
Log:
Fixed a typo and uncommented a wrongly commented key

Modified:
    
openejb/trunk/openejb3/container/openejb-core/src/main/resources/org/apache/openejb/config/rules/Messages.properties

Modified: 
openejb/trunk/openejb3/container/openejb-core/src/main/resources/org/apache/openejb/config/rules/Messages.properties
URL: 
http://svn.apache.org/viewvc/openejb/trunk/openejb3/container/openejb-core/src/main/resources/org/apache/openejb/config/rules/Messages.properties?rev=965007&r1=965006&r2=965007&view=diff
==============================================================================
--- 
openejb/trunk/openejb3/container/openejb-core/src/main/resources/org/apache/openejb/config/rules/Messages.properties
 (original)
+++ 
openejb/trunk/openejb3/container/openejb-core/src/main/resources/org/apache/openejb/config/rules/Messages.properties
 Sat Jul 17 04:21:22 2010
@@ -417,7 +417,7 @@
 # fail(componentName, "persistenceContextRef.noUnitName", refShortName, 
join(", ", availableUnits), sampleUnitName );
 1.persistenceContextRef.noUnitName = @PersistenceContext unitName required, 
multiple units available.
 2.persistenceContextRef.noUnitName = @PersistenceContext unitName required, 
multiple units available: ref "{0}", available units [{1}]
-3.persistenceContextRef.noUnitName = Use of @PersistenceContext witout a 
unitName is only allowed when there is only a single persistence.xml in the 
entire application defining exactly one persistence-unit.  Available units for 
ref {0} are [{1}].  Add the unitName to your declaration, for example:\
+3.persistenceContextRef.noUnitName = Use of @PersistenceContext without a 
unitName is only allowed when there is only a single persistence.xml in the 
entire application defining exactly one persistence-unit.  Available units for 
ref {0} are [{1}].  Add the unitName to your declaration, for example:\
     @PersistenceContext(name="{0}", unitName = "{2}")
 
 # fail(componentName, "persistenceContextRef.vagueMatches", refShortName, 
unitName, possibleUnits.size(), join(", ", possibleUnits));
@@ -425,21 +425,21 @@
 2.persistenceContextRef.vagueMatches = @PersistenceContext unitName has 
multiple matches: unitName "{1}" has {2} possible matches.
 3.persistenceContextRef.vagueMatches = The reference 
@PersistenceContext(name="{0}", unitName="{1}") cannot be resolved as there are 
{2} units with the same name.  Update your unitName to one of the following:\
 {3}
-#TODO
+
 # fail(componentName, "persistenceContextRef.noMatches", refShortName, 
unitName, join(", ", availableUnits));
-#1.persistenceContextRef.noMatches = Persistence unit not found
-#2.persistenceContextRef.noMatches = Persistence unit not found for 
@PersistenceContext(name="{0}", unitName="{1}").  Available units [{2}]
-#3.persistenceContextRef.noMatches = The persistence unit "{1}" does not 
exist.  Update the "{0}" PersistenceContext ref to one of the available units 
[{2}] or declare the unit in a persistence.xml like the following:\
-#  <persistence xmlns="http://java.sun.com/xml/ns/persistence"; version="1.0">\
-#    <persistence-unit name="{1}">\
-#      <jta-data-source>java:openejb/Resource/myDataSource</jta-data-source>\
-#      
<non-jta-data-source>java:openejb/Resource/myUnmanagedDataSource</non-jta-data-source>\
-#\
-#        <properties>\
-#        <property name="openjpa.jdbc.SynchronizeMappings" 
value="buildSchema(ForeignKeys=true)"/>\
-#      </properties>\
-#    </persistence-unit>\
-#  </persistence>\
+1.persistenceContextRef.noMatches = Persistence unit not found
+2.persistenceContextRef.noMatches = Persistence unit not found for 
@PersistenceContext(name="{0}", unitName="{1}").  Available units [{2}]
+3.persistenceContextRef.noMatches = The persistence unit "{1}" does not exist. 
 Update the "{0}" PersistenceContext ref to one of the available units [{2}] or 
declare the unit in a persistence.xml like the following:\
+  <persistence xmlns="http://java.sun.com/xml/ns/persistence"; version="1.0">\
+    <persistence-unit name="{1}">\
+      <jta-data-source>java:openejb/Resource/myDataSource</jta-data-source>\
+      
<non-jta-data-source>java:openejb/Resource/myUnmanagedDataSource</non-jta-data-source>\
+\
+        <properties>\
+        <property name="openjpa.jdbc.SynchronizeMappings" 
value="buildSchema(ForeignKeys=true)"/>\
+      </properties>\
+    </persistence-unit>\
+  </persistence>\
 
 
 # fail(componentName, "persistenceUnitRef.noPersistenceUnits", refShortName, 
unitName);


Reply via email to