I thought ALR's solution with
org.jboss.ejb3.mcint.metadata.plugins.EjbReferenceAnnotationPlugin
org.jboss.ejb3.mcint.metadata.plugins.AbstractEjbReferenceValueMetadata
org.jboss.ejb3.mcint.annotationadaptor.AddAnnotationPluginOnBeanAnnotationAdaptorCallbackService
is already included in JBoss 6.x and deployed by jboss-6.1.0.Final/server/default/deployers/ejb3.deployer/META-INF/ejb3-deployers-jboss-beans.xml:
<!-- Add Annotation Plugins upon installation -->
<bean name="org.jboss.ejb3.AddAnnotationPluginOnBeanAnnotationAdaptorCallbackService"
class="org.jboss.ejb3.mcint.annotationadaptor.AddAnnotationPluginOnBeanAnnotationAdaptorCallbackService">
<constructor>
<parameter><inject bean="jboss.kernel:service=Kernel"/></parameter>
</constructor>
</bean>
<!-- TODO: Move this out of core -->
<!-- EJB Reference Annotation Plugin -->
<bean name="org.jboss.ejb3.EjbReferenceAnnotationPlugin"
class="org.jboss.ejb3.mcint.metadata.plugins.EjbReferenceAnnotationPlugin">
<constructor>
<parameter><inject bean="org.jboss.ejb3.EjbReferenceResolver" /></parameter>
</constructor>
</bean>
by default. Isn't it?