1 Reply Latest reply on May 19, 2003 1:22 AM by Juha Lindfors

    JBoss Tomcat Help Needed!!!

    windmill Newbie

      Hi all,

      I have been using Tomcat for a year. I want to learn EJB now. Since I have several school projects running under Tomcat, I downloaded JBoss 3.0.7(standalone not jboss+Tomcat Bundle). Here are my questions:

      1. If I install Tomcat(3.2.4) and JBoss(3.0.7) separately, What kind of configuration integration do I need? Could u please provide me some help links?

      2. I only install Java JDK, then how can I compile the ejb java file? How can the J2ee API known by the compiler?

      3. I read from a book that I should include ejb.jar file in my CLASSPATH, but I could not find the file under JBoss folder. I only could find two ejb.jar files: one is under Tomcat folder and the other is under Jrun folder. What is the problem? what is ejb.jar?

      4. if the idea of Installing Tomcat and Jboss separately is really bad, I may go to download the JBoss+tomcat bundle. If so, what should I do to make my old projects running under the new tomcat/jboss? (Only change the TOMCAT_HOME to the new install location?)

      Thanks a lot! Any input appreciated!!

        • 1. Re: JBoss Tomcat Help Needed!!!
          Juha Lindfors Master

          > 1. If I install Tomcat(3.2.4) and JBoss(3.0.7)
          > separately

          Not recommended.

          > What kind of configuration integration do
          > I need? Could u please provide me some help links?

          Your servlets in tomcat engine will behave just like any other EJB client -- you will need the usual client libraries available in your servlet container.


          > 2. I only install Java JDK, then how can I compile
          > the ejb java file? How can the J2ee API known by the
          > compiler?

          jboss/client/jboss-j2ee.jar contains all the required interfaces to compile.


          > 3. I read from a book that I should include ejb.jar
          > file in my CLASSPATH, but I could not find the file
          > under JBoss folder. I only could find two ejb.jar
          > files: one is under Tomcat folder and the other is
          > under Jrun folder. What is the problem? what is
          > ejb.jar?

          Not required. Use jboss-j2ee.jar which contains all the EJB interface definitions as well.


          > 4. if the idea of Installing Tomcat and Jboss
          > separately is really bad

          It is.

          > I may go to download the
          > JBoss+tomcat bundle. If so, what should I do to make
          > my old projects running under the new tomcat/jboss?
          > (Only change the TOMCAT_HOME to the new install
          > location?)

          If your previous web apps were deployed as standard J2EE wars, all you need to do is drop these into JBoss server's deploy directory.