2 Replies Latest reply on Nov 8, 2016 4:36 PM by davidmichaelkarr1

    Generate EJB stubs at build time, instead of manually?

    davidmichaelkarr1

      I have yet to use JBoss, but our org is slowly moving to it from WebLogic, which I've used for many years, along with occasional use of Tomcat/TomEE.

       

      I was just listening to a webinar about JBoss EAP, and I heard something interesting about how EJB stubs are generated.  I'm used to generating stubs at build time, as it's a mistake to have to manually generate these and check them into your SCM.  From what I understand, there is no way to do this at build time with JBoss EAP, and they have to be manually generated in the IDE and then checked into your SCM.  Is this really true?

        • 1. Re: Generate EJB stubs at build time, instead of manually?
          ctomc

          what EJB stubs do you have in mind as you don't need any stubs to call ejbs.

           

          Do you maybe have web service stubs in mind?

          • 2. Re: Generate EJB stubs at build time, instead of manually?
            davidmichaelkarr1

            No.  I'm referring to EJB client stubs.

             

            I'd like some additional clarification about what you're claiming here.  I've seen some indirect mentions that JBoss EAP generates a dynamic proxy at runtime instead of using client stubs.  That wasn't a very concrete or reliable source.  I just sat through a webinar on JBoss EAP from some relatively authoritative people who said that we had to generate EJB client stubs manually.

             

            If you had been using EJBs for many years, as I have (although very rarely recently in recent years), you'd know that what you're claiming here is at least too strong.  It may be the case that very recent versions and implementations can avoid requiring client stubs, but certainly not "you don't need any stubs to call ejbs".

             

            If you can cite clear documentation that describes this, I'd appreciate it.