1 Reply Latest reply on Apr 18, 2014 5:56 AM by Tomaz Cerar

    How to call ejb's(3) from other application with lazy lookup i.e when required(without lookup during deployment)

    Milind Chidrawar Newbie

      Hello,

       

      How to call ejb's(3) from other application with lazy lookup i.e when required(without lookup during deployment)

      Suppose there are two different applications deployed on JBOSS say Application1 and Application2

        Application1 needs Application2 in few scenario's.

       

      As per the current deployment Strategy Application2 must be deployed before Application1

      If Application2 is not deployed then deployment of Appliaton1 will also fail as dependency is maintained in "jboss-deployment-structure.xml"

       

      My goal is to Deploy Application1 even when Application2 is not deployed.

      If Application2 is not available then Application1 should deploy smoothly and it is fine if some part of Application1(which is referring Application2) is not working.

       

        I have tried with Dynamic Proxy but it is not working.

       

      I found one link http://www.theserverside.com/discussions/thread.tss?thread_id=24019 to do resolve this kind of issue however it is for ejb2.

       

      Is there any way in JBOSS to do this kind of stuff.

       

      Please let me know if anyone have any better Ideas ?