Author: dblevins
Date: Thu Sep 6 18:38:24 2007
New Revision: 573425
URL: http://svn.apache.org/viewvc?rev=573425&view=rev
Log:
Added comments to describe where and how the messages are used
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=573425&r1=573424&r2=573425&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
Thu Sep 6 18:38:24 2007
@@ -226,45 +226,53 @@
2.serviceRef.unsupported = Web service refs are not yet supported: service-ref
{0}
3.serviceRef.unsupported = The web service ref '{0}' will be ignored as this
feature is not yet implemented. The entry 'java:comp/env/{0}' will not be
available in JNDI and any associated injects will not be performed.
-
+# AnnotationDeployer.java
+# fail(ejbName, "ann.remote.noAttributes", join(", ", interfaces));
1.ann.remote.noAttributes = Ambiguous @Remote() usage on bean class
2.ann.remote.noAttributes = Ambiguous @Remote() usage on bean class. Must
list interfaces explicitly in annotation.
3.ann.remote.noAttributes = When annotating a bean class as @Remote with no
annotation attributes, the bean must implement exactly one business interface,
no more and no less. List the remote interfaces explicitly in the annotation,
such as @Remote(\{{0}\}). Alternatively, apply the @Remote annotation to the
individual interfaces and remove it from the bean class.
+# fail(ejbName, "ann.remoteLocal.ambiguous", join(", ", interfaces));
1.ann.remoteLocal.ambiguous = Ambiguous @Remote and @Local usage on bean class.
2.ann.remoteLocal.ambiguous = Ambiguous @Remote and @Local usage on bean
class. Must list interfaces explicitly in @Remote annotation.
3.ann.remoteLocal.ambiguous = When annotating a bean class as @Remote with no
annotation attributes you must not also annotate it with @Local. List the
remote interfaces explicitly in the annotation, such as @Remote(\{{0}\}).
Alternatively, apply the @Remote annotation to the individual interfaces and
remove it from the bean class.
+# fail(ejbName, "ann.remoteLocal.conflict", join(", ", interfaces));
1.ann.remoteLocal.conflict = @Remote annotation in bean class conflicts with
@Local in interface.
2.ann.remoteLocal.conflict = @Remote annotation in bean class conflicts with
@Local in interface '{0}'.
3.ann.remoteLocal.conflict = When annotating a bean class as @Remote, the
corresponding business interfaces cannot be annotated with @Local. Revise the
business interface '{0}'.
-
+# fail(ejbName, "ann.local.noAttributes", join(", ", interfaces));
1.ann.local.noAttributes = Ambiguous @Local() usage on bean class
2.ann.local.noAttributes = Ambiguous @Local() usage on bean class. Must list
interfaces explicitly in annotation.
3.ann.local.noAttributes = When annotating a bean class as @Local with no
annotation attributes, the bean must implement exactly one business interface,
no more and no less. List the local interfaces explicitly in the annotation,
such as @Local(\{{0}\}). Alternatively, apply the @Local annotation to the
individual interfaces and remove it from the bean class.
+# fail(ejbName, "ann.localRemote.ambiguous", join(", ", interfaces));
1.ann.localRemote.ambiguous = Ambiguous @Local and @Remote usage on bean class.
2.ann.localRemote.ambiguous = Ambiguous @Local and @Remote usage on bean
class. Must list interfaces explicitly in @Local annotation.
3.ann.localRemote.ambiguous = When annotating a bean class as @Local with no
annotation attributes you must not also annotate it with @Remote. List the
local interfaces explicitly in the annotation, such as @Local(\{{0}\}).
Alternatively, apply the @Local annotation to the individual interfaces and
remove it from the bean class.
+# fail(ejbName, "ann.localRemote.conflict", join(", ", interfaces));
1.ann.localRemote.conflict = @Local annotation in bean class conflicts with
@Remote in interface.
2.ann.localRemote.conflict = @Local annotation in bean class conflicts with
@Remote in interface '{0}'.
3.ann.localRemote.conflict = When annotating a bean class as @Local, the
corresponding business interfaces cannot be annotated with @Remote. Revise the
business interface '{0}'.
-
+# fail(ejbName, "ann.remoteOrLocal.ejbHome", annotationName,
interfce.getName());
1.ann.remoteOrLocal.ejbHome = @{0} used in bean class lists a
javax.ejb.EJBHome interface.
2.ann.remoteOrLocal.ejbHome = @{0} used in bean class lists a
javax.ejb.EJBHome interface. Use @RemoteHome({1})
3.ann.remoteOrLocal.ejbHome = When applied to a bean class, the @{0}
annotation must only list business interfaces and cannot list legacy EJBHome
interfaces. EJBHome interfaces can be annotated on the bean class with
@RemoteHome({1})
+# fail(ejbName, "ann.remoteOrLocal.ejbLocalHome", annotationName,
interfce.getName());
1.ann.remoteOrLocal.ejbLocalHome = @{0} used in bean class lists a
javax.ejb.EJBLocalHome interface.
2.ann.remoteOrLocal.ejbLocalHome = @{0} used in bean class lists a
javax.ejb.EJBLocalHome interface. Use @LocalHome({1})
3.ann.remoteOrLocal.ejbLocalHome = When applied to a bean class, the @{0}
annotation must only list business interfaces and cannot list legacy
EJBLocalHome interfaces. EJBLocalHome interfaces can be annotated on the bean
class with @LocalHome({1})
+# fail(ejbName, "ann.remoteOrLocal.ejbObject", annotationName,
interfce.getName());
1.ann.remoteOrLocal.ejbObject = @{0} used in bean class lists a
javax.ejb.EJBObject interface.
2.ann.remoteOrLocal.ejbObject = @{0} used in bean class lists a
javax.ejb.EJBObject interface. Use @RemoteHome with home interface of '{1}'.
3.ann.remoteOrLocal.ejbObject = When applied to a bean class, the @{0}
annotation must only list business interfaces and cannot list legacy EJBObject
interfaces. The EJBHome of interface for '{1}' can be annotated on the bean
class with @RemoteHome
+# fail(ejbName, "ann.remoteOrLocal.ejbLocalObject", annotationName,
interfce.getName());
1.ann.remoteOrLocal.ejbLocalObject = @{0} used in bean class lists a
javax.ejb.EJBLocalObject interface.
2.ann.remoteOrLocal.ejbLocalObject = @{0} used in bean class lists a
javax.ejb.EJBLocalObject interface. Use @LocalHome with home interface of '{1}'.
3.ann.remoteOrLocal.ejbLocalObject = When applied to a bean class, the @{0}
annotation must only list business interfaces and cannot list legacy
EJBLocalObject interfaces. The EJBLocalHome of interface for '{1}' can be
annotated on the bean class with @LocalHome