Search code examples
weblogicweblogic12c

Any annotation available to cluster Oracle WLS EJB?


As said in the title, I'd like to know if there's a proprietary Oracle WLS annotation which specifies that an EJB is going to be clustered. Basically the equicalent of adding this to your weblogic-ejb-jar.xml:

<stateless-clustering>
   <stateless-bean-is-clusterable>True
   </stateless-bean-is-clusterable>
   <stateless-bean-load-algorithm>random
   </stateless-bean-load-algorithm>
</stateless-clustering>

Thanks! Max


Solution

  • Configuration such as bean pool size and clustering are not exposed through annotations. They can be only specified through deployment descriptor.

    To see a list of WLS 12c EJB proprietary annotations, please see WebLogic EJB Annotation