differentiate me two things .....

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dmjpro
    Top Contributor
    • Jan 2007
    • 2476

    #1

    differentiate me two things .....

    the web-container and the JVM .... plz help

    thnaxxx in advance .... have a good day
  • sicarie
    Recognized Expert Specialist
    • Nov 2006
    • 4677

    #2
    Originally posted by dmjpro
    the web-container and the JVM .... plz help

    thnaxxx in advance .... have a good day
    The JVM, well, what have you looked for on this and where have you looked?

    And, what do you think?

    Comment

    • dmjpro
      Top Contributor
      • Jan 2007
      • 2476

      #3
      see ... here is my conception ....

      JVM ... is the run time system of .class file ....

      and the web-container(here srvlet-container) is reposible for .. initiating executing dynamic-web-pages (written in java related langs) and maintaining their life-cycle

      when application server started then which one first gets loaded into the memory .....

      here i m totaly lost ... plz explain me ..... here

      thanxxx

      Comment

      • sicarie
        Recognized Expert Specialist
        • Nov 2006
        • 4677

        #4
        Originally posted by dmjpro
        see ... here is my conception ....

        JVM ... is the run time system of .class file ....

        and the web-container(here srvlet-container) is reposible for .. initiating executing dynamic-web-pages (written in java related langs) and maintaining their life-cycle

        when application server started then which one first gets loaded into the memory .....

        here i m totaly lost ... plz explain me ..... here

        thanxxx
        You explained the underlying concepts of each, but not how you thought they worked together. What do you think?

        Comment

        • Kirit
          New Member
          • Mar 2007
          • 2

          #5
          The JVM runs your java code (.class)

          A container (servlet, J2EE...) it a TYPE of java program that can runn special java classes and is typically also a java program itself.

          The JVM is needed to run any java program, including any java based containers. Containers adhere to Suns J2EE contracts.

          I hope this clears up things for you.

          Comment

          • dmjpro
            Top Contributor
            • Jan 2007
            • 2476

            #6
            ok now i understood ... thanxxx both of u

            now one more Q. is here .... once JVM started ... java based container takes the total control of executing java-based web-pages or JVM interferes
            plz clear my conception here .....

            one more Q. also here
            if i have more than one APPs on my system then...

            now suppose no application is running .... i start an application first then what happens??? after that if i start the second one then what happens??

            plz clear these confusing things.... thanxxx
            have a good day

            Comment

            • sicarie
              Recognized Expert Specialist
              • Nov 2006
              • 4677

              #7
              Originally posted by dmjpro
              ok now i understood ... thanxxx both of u

              now one more Q. is here .... once JVM started ... java based container takes the total control of executing java-based web-pages or JVM interferes
              plz clear my conception here .....

              one more Q. also here
              if i have more than one APPs on my system then...

              now suppose no application is running .... i start an application first then what happens??? after that if i start the second one then what happens??

              plz clear these confusing things.... thanxxx
              have a good day
              To answer the first part of your question, the JVM will only run the code it has been called to run (what the application server tells it to run). The JVM will leave the execution of the rest of the code (stuff it has no idea about thanks to the scope it was created with) to the application server.

              As for the second part or your question, I don't understand what you are asking. What do you mean "what happens"? When? Are you asking about memory management, or threading, or what?

              Comment

              • dmjpro
                Top Contributor
                • Jan 2007
                • 2476

                #8
                now the total picture is clear to me ....

                thanxxx guyessss

                Comment

                Working...