5 Replies Latest reply on Nov 5, 2001 8:49 AM by Peet Denny

    What is the difference between J2EE Server  and Jboss

    jlea Newbie

      Hi,

      I have downloaded J2EE Server and it did what I supose to do with it.

      So I would like to ask what is the difference between J2EE Server and Jboss.

      Thank you
      Jlea

        • 1. Re: What is the difference between J2EE Server  and Jboss
          Allen Fogleson Newbie

          When you say J2EE server I assume you mean the reference implementation from sun. There are some differences but the really major one is that the reference implementation is not meant to be used in a production environment, whereas JBoss is. (and is in fact being used in production in several places).

          Al

          • 2. Re: What is the difference between J2EE Server  and Jboss
            jlea Newbie

            OK!

            Thanks for that.

            So can I test Richard Monson-Haefel examples on JBOSS?

            can I use deploytool, ANT?

            please advice

            Thank you very much for your insights
            Jlea

            • 3. Re: What is the difference between J2EE Server  and Jboss
              Peet Denny Newbie

              Yes,
              you should be able to test those examples.
              You need to make sure that you are working with ejb-jars though. Once EJBs have been deployed as an .ear file for a particular app server, they are no longer platform independent as ear files contain deployment info particular to that platform.
              Since the deploy tool that comes with J2EE RI does several things, you may be able to use some of those features, but not all of them.
              The deploytool helps you to create the ejb-jar files, as well as write the xml deployment descriptor. You can then save those jar files, and add the jboss specific deployment information (in the form of a jboss.xml file).
              This is all that you need to deploy ejbs on jboss. The part where click on deploy, to send the jar to the server in J2EE, and the creation of a client jar is all handled differently, (and more simply) in Jboss.
              Deployment is handled by just dropping you ejb-jar file into the deploy directory. There are four generic client jars that need to be on the client's classpath. This means there is no need to create a client jar for each ejb-jar. Much simpler.
              So in short, while you can use deploytool for some of the work, it is a J2EE RI-specific tool, designed only to be used with J2EE-RI.

              Ant on the other hand, can be, and is used (AFAICT) by 99% of Jboss users.
              V. Handy.

              Cheers

              • 4. Re: What is the difference between J2EE Server  and Jboss
                jlea Newbie

                Thank you very much for that bigg help.

                I would like to ask you again about Richard Monson-Haefel examples, I see on jboss document, Richards examples can be tested on jboss but only for unix users. There is also link saying modified version which is not working.

                Any more insights are very much appreciated.

                JLea
                Thanks

                • 5. Re: What is the difference between J2EE Server  and Jboss
                  Peet Denny Newbie

                  Try this:
                  http://www.jboss.org/doco_files/rmh_jboss.zip

                  THe only things that make it UNIX specific are 4 small shell scripts.
                  You can easily modify those.

                  Peet