3 Replies Latest reply on Jun 27, 2013 1:28 AM by jaikiran

    JBoss 6.1, EJB and Web Application dependency

    paata

      Hello team,

       

      I have 2 application on jboss eap 6.1 :

       

      1. EJB application which has multiple ejb components and entity beans.

      2. Web application which use GWT. I want to call ejb components from GWT Servlets.

       

      I want to deploy both of them into jboss eap 6.1 server (standalone mode).

       

      EJB jar deployment has no any problem. it works fine.

      Now I want to deploy War file.

       

      if I put EJB jar file into WAR-PROJECT/WEB-INF/lib. it throws an error. EJB Components trying to deploy on next time, But without this library I got an ClassNotFoundException.

      I want EJB application to be as a library for Web Application.

      How I can do it ?

      Also I don't want to make EAR Project for some reasons.

      I want this 2 application separately into one jboss application sever.

       

       

       

      Thant In Advance,

      Paata.

        • 1. Re: JBoss 6.1, EJB and Web Application dependency
          jaikiran

          You just need to package the bean's remote business interfaces in the web application. You don't need the bean implementation classes in that web application.

          1 of 1 people found this helpful
          • 2. Re: JBoss 6.1, EJB and Web Application dependency
            paata

            hello jaikiran,

             

            Thank you very much for your reply.

             

            My EJB Project contains about 120 remote bussiness interfaces and about 500 Entity beans, all of them are required for web application.

            How I can separate these bussiness interfaces and entity beans with Implementations ? How I can make a jar file which only contains required classes.

             

            Thank you very much again.

            Paata.

            • 3. Re: JBoss 6.1, EJB and Web Application dependency
              jaikiran

              It depends on how your project is structured and built. Ultimately, it's just a matter of using the build tool to create the jar with the right set of inclusion/exclusion of class files.