5 Replies Latest reply on Dec 21, 2004 7:52 PM by lennysim

    How to build EJB for JBoss 4.0

    lennysim

      I understand that different application servers have different ejb compilers. I have compiled EJBs for weblogic and websphere. Is there a way that I could modify these EJBs to run on the JBoss application server? If there is no way to use these EJBs, I would like a list of EJB compilation guidance steps so that I could build the EJBs specific to the JBoss application server.

        • 1. Re: How to build EJB for JBoss 4.0
          darranl

          The steps for JBoss are: -

          Pagage your bean implementation, remote interface and home interface into a jar file. Add a META_INF/ejb-jar.xml to the jar file containing the definition of the beans, if required add JBoss specific deployment descriptors to the jar.

          The jar is now ready to be deployed by JBoss (By placing it in the deploy folder of the chosen config).

          It might be easier for you to run through the getting started guide to see some working examples of how to package and deploy components.

          • 2. Re: How to build EJB for JBoss 4.0
            anu_katta

            Hi,
            I am new to jboss. And in my project we already deploying on jboss 3.2.0
            now we have to upgrade that to jboss 4.0 what do i need to do for that..
            plz anybody explain me what are the steps to be done for this..
            Thank you,
            anu.

            • 3. Re: How to build EJB for JBoss 4.0
              lennysim

              I already have an ejb-jar.xml file for my EJB. My EJB contains an ejb-jar.xml and a weblogic-ejb-jar.xml. But during server runtime, the EJBs are not getting deployed at all.

              • 4. Re: How to build EJB for JBoss 4.0
                darranl

                 

                But during server runtime, the EJBs are not getting deployed at all.


                Can you please explain this sentence fully.

                • 5. Re: How to build EJB for JBoss 4.0
                  lennysim

                  I have got round the problem by manually creating a jboss.xml and removing the weblogic-ejb-jar.xml file for each ejb.