Results 1 to 7 of 7
  1. #1
    curesh is offline Member
    Join Date
    Jan 2009
    Posts
    1
    Rep Power
    0

    Exclamation JDK availability in Testing server

    Hi Friends,

    I have a doubt, Java/jsp Web application is developed in the development server so we need JDK to compile them. But Is the JDK has to be installed in Testing or Production server as well, where we are not doing any development activity. JRE should be enough right ?

    please provide your suggessions.

  2. #2
    CJSLMAN's Avatar
    CJSLMAN is offline Moderator
    Join Date
    Oct 2008
    Location
    Mexico
    Posts
    1,159
    Rep Power
    7

    Default A couple of things...

    1) JDK should be in the development environment (server) only. The JRE should be in the testing and most definetely in the production environments (servers).
    2) You posted in the Suggestions & Feedback subforum... your post doesn't sound like a suggestion or a feedback.

    Luck,
    CJSL
    Chris S.
    Difficult? This is Mission Impossible, not Mission Difficult. Difficult should be easy.

  3. #3
    Steve11235's Avatar
    Steve11235 is offline Senior Member
    Join Date
    Dec 2008
    Posts
    1,046
    Rep Power
    7

    Default

    JSP are compiled by the Web application server, and I *think* the app server needs a JDK so it can use javac.

  4. #4
    CJSLMAN's Avatar
    CJSLMAN is offline Moderator
    Join Date
    Oct 2008
    Location
    Mexico
    Posts
    1,159
    Rep Power
    7

    Default hhhmmm...

    I would like to clarify that I was refering to the "run of the mill" Java SW development environment. I sorta read curesh's post rather fast and didn't notice that he had specified "JSP web development". I don't know if that enviroment has something particular/specific/different from a Java enviroment.

    CJSL
    Last edited by CJSLMAN; 01-26-2009 at 01:20 AM.
    Chris S.
    Difficult? This is Mission Impossible, not Mission Difficult. Difficult should be easy.

  5. #5
    Steve11235's Avatar
    Steve11235 is offline Senior Member
    Join Date
    Dec 2008
    Posts
    1,046
    Rep Power
    7

    Default

    I assume the server is not already up and running. In that case, you don't need to worry about a JRE/JDK.

    I should have been more specific. The test and production Web application servers *may* require a JDK to function. Check the documentation for the specific server.

    I googled around a bit, and one source stated that Tomcat requires a JDK. Again, check your server's documentation.

  6. #6
    CJSLMAN's Avatar
    CJSLMAN is offline Moderator
    Join Date
    Oct 2008
    Location
    Mexico
    Posts
    1,159
    Rep Power
    7

    Default Gotta question...

    OK.. let see if I understand this...
    • The development server is where the code gets compiled and probably unit tested. Obviously a JDK is needed here.
    • The test server is supposed to by a replica of the production server and that's where all the testing is done (there may be various test boxes depending the different testing phases... function, system, integration, etc). I guess you could have the JDK on this server, although I don't know why. It's strictly testing. If something is wrong, it gets thrown back to the developers to be fixed on the development server.
    • The production server is where the final code is deployed and this is where the code runs for the clients. Again, why would there be a JDK on this server? You don't want anything but the code on this server.

    That's what I understnad about this...

    CJSL
    Chris S.
    Difficult? This is Mission Impossible, not Mission Difficult. Difficult should be easy.

  7. #7
    Steve11235's Avatar
    Steve11235 is offline Senior Member
    Join Date
    Dec 2008
    Posts
    1,046
    Rep Power
    7

    Default

    The Web application server, let's say Tomcat, accepts a collection of JAR's, class files, resources such as images, HTML files, and JSP files. Tomcat then deploys these in a directory and provides access to the HTML, resources, and the servlets created from the JSP files.

    Tomcat needs the JDK because it takes the JSP files, updates the JSP specific tags, turns all the HTML code into some form of print() statements, and...

    compiles the whole mess into a servlet.

    When the JSP is requested, the compiled servlet is invoked and its output returned to the requester.

    Again, I can't say for a fact that every Web application server requires a JDK, but that's the way Tomcat worked the last time I used it, around version 5.5.

Similar Threads

  1. Testing EMF models.
    By manik_jforum in forum Eclipse
    Replies: 0
    Last Post: 12-10-2008, 08:59 AM
  2. testing program
    By chrisbremen in forum New To Java
    Replies: 6
    Last Post: 11-08-2008, 05:23 PM
  3. Replies: 0
    Last Post: 07-07-2008, 04:35 PM
  4. Testing JUnit PDE with Ant
    By keynan in forum Eclipse
    Replies: 0
    Last Post: 02-14-2008, 11:35 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •