1. <rule>
  2. <when>
  3. <xmlfile xpath="/w:ejb-jar/w:enterprise-beans/w:session/w:ejb-class[text() = '{ejbTypeName}']" as="xml">
  4. <namespace prefix="w" uri="http://java.sun.com/xml/ns/j2ee"/>
  5. </xmlfile>
  6. <javaclass in="{ejbTypeName}" as="ejb">
  7. <references type="javax.ejb.Remote" location="IMPLEMENTS">
  8. <references type="com.beanutils.async.AsyncronousMethod" location="METHOD_ANNOTATION"/>
  9. </javaclass>
  10. </when>
  11. <perform>
  12. <classification of="ejb" description="EJB 2.x" effort="1">
  13. <hint in="ejb" message="BeanUtils Asyncronous is not compatible with JBoss EAP Remote EJBs, and should be replaced with the Java EE 6 @Asyncronous annotation." effort="5">
  14. <link href="http://docs.oracle.com/javaee/6/tutorial/doc/gkkqg.html"
  15. description="Using Java EE 6 @Asyncronous." />
  16. </hint>
  17. </perform>
  18. </rule>