0 Replies Latest reply on Aug 16, 2006 2:00 PM by georgesberscheid

    MBean dependency in JCA adapter (within EAR)

    georgesberscheid

      Hi,
      I created an MBean using the @Service annotation which is packaged in a .jar file which goes in a .ear file.
      In the same .ear file there is a resource adapter (.rar) that depends on that service. Unfortunately, JBoss deploys and starts the resource adapter first and can therefore not find the MBean reference, because it's only deployed later in the same EAR deployment.
      How do I define a dependency of the resource adapter to the MBean?
      I tried @Depends on the resource adapter class but I guess that annotation only works for other MBeans. Also the RA's deployment descriptor doesn't seem to offer anything suitable.

      Any ideas?
      Thanks