- <rule>
- <when>
- <xmlfile xpath="/w:ejb-jar/w:enterprise-beans/w:session/w:ejb-class[text() = '{ejbTypeName}']" as="xml">
- <namespace prefix="w" uri="http://java.sun.com/xml/ns/j2ee"/>
- </xmlfile>
- <javaclass in="{ejbTypeName}" as="ejb">
- <references type="javax.ejb.Remote" location="IMPLEMENTS">
- <references type="com.beanutils.async.AsyncronousMethod" location="METHOD_ANNOTATION"/>
- </javaclass>
- </when>
- <perform>
- <classification of="ejb" description="EJB 2.x" effort="1">
- <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">
- <link href="http://docs.oracle.com/javaee/6/tutorial/doc/gkkqg.html"
- description="Using Java EE 6 @Asyncronous." />
- </hint>
- </perform>
- </rule>