A question about reading tomcat source code

Hi, everyone!
I just saw the tomcat source code, there is a method named "await" in StandardServer class. The comment of this method decribe that this method will wait util a proper shutdown command is received.
I'm confused about it after read this method.
In my opinion, this method create a server socket on port 8005 by default, and wait for "SHUTDOWN" string to only close the server socket which is listening on port 8005.
But I think this method is supposed to close all the server sockets which are listenning for client's request and belong to this server when port 8005 received "SHUTDOWN" string.
Thank you in advance.
Edited by: Garrett.Li on Oct 17, 2007 9:18 AM

about reading tomcat source code i cant get you man,

Similar Messages

  • Question about Java SE Source Code

    I was wondering, what is Java SE written in? Can't be Java right? Since thats like the chicken and the egg. Can't write in Java unless you have a platform to interpret Java code into byte code, but if the platform is written in Java... what is interpreting the platform? The platform can't interpret itself right?
    Little confused about it ^, I didn't post in the thread about open source Java since everyones just fighting on there about how old or new the news is. To tell ya the truth, I heard about it yesterday but didn't expect it so soon. Its nice that its here, its now fully Linux friendly. :D
    I might download the code and take a look at it if its written in Java.

    I was wondering, what is Java SE written in? Can't be
    Java right? Since thats like the chicken and the egg.
    Can't write in Java unless you have a platform to
    interpret Java code into byte code, but if the
    platform is written in Java... what is interpreting
    the platform? The platform can't interpret itself
    right?
    So you write the 0.0.1 compiler and runtime in something else.
    Using that you create and compile a Java version that you call 0.0.2.
    You now have a compiler written in Java that can compile Java.
    The runtime is a bit more complex as it needs some platform specific bootstrapping code, but most of that can be written in Java as well.
    And that's no theory, it's what actually happens (and not just with Java).
    Not everything is Java, but a good chunk certainly is (or can be).

  • How to read the source code

    Hi,
    I want to know how to read the source code of web dynpro java from the source folder i.e. without loading the project in NWDS. Please answer me as soon as possible.
    Thanks & Regards,
    Aniruddha

    Hi,
    If you are using DC's then you can find the .Java files in the path
    <project Name>\_comp\gen_wdp\packages\<Pacjage>\<ComponentName>\..
    In the above path you can find the Java files of the controllers.
    Thanks,
    Raju Bonagiri

  • How to read the source code of class method

    Hi,
    I want to read the source code of a method which is in a BAdi implementation.
    I used SEO_METHOD_GET_SOURCE function module where I passed interface name as class and method name.
    But I didn't get the source code. Is there any other function module of method to read the source code.
    Thanks and regards,
    Venkat.

    Hi Venkat,
      You can still use the Function Module SEO_METHOD_GET_SOURCE with a small change in the parameter passing. It should be:
    Paramaters:
    MTDKEY-CLSNAME : <Implementaion Classname>
    MTDKEY-CPDNAME: <Interfacename~methodname>
    STATE : 'A' for active or 'I' for inactive
    For example:
    MTDKEY-CLSNAME :ZCL_IM_PLM_AUDIT_ALV_GRID
    MTDKEY-CPDNAME: IF_EX_PLM_AUDIT_ALV_GRID~ON_USER_COMMAND
    STATE: A
    After executing you will get the source code in the form of string in the 'SOURCE' parameter.
    Hope this helps you.
    Regards,
    Swarna Munukoti

  • ABAP WD, Read the source code of a html page

    Hi all,
    I have the URL link of .jsp page and I want to get the source code generated by this page to extract some data for my web dynpro.
    How do i solve this?
    Thanks

    Hi Antonio,
    not sure if i understand the question properly.
    You want to read html content of http site rendered via jsp.
    You can use cl_http_client
    to write a simple http client tool.
    This tool opens the page.  The html content is available to this class.
    You can extract the content here.
    See the attribute 'response' after making a call.
    regards
    Phil.

  • Question about reading hex data

    Hello! I am a Labview Novice and having a problem about reading hex data.
    Basically I am having bytes from the serial port like this: "80100E0E0AB4F646F24A00911267087E032080057FFF "
    It is not encoded in ASCII. What I want to do is to convert the hex to an ASCII hex string.
    so that the string would become hex numbers in ASCII.
    I think the following might be a solution, but I have no idea what the subvi is in the solution.
    http://forums.ni.com/t5/LabVIEW/Hex-String-to-Ascii-Hex-String/m-p/886078/highlight/true#M400462
    Thanks in advance and I appreciate your kind help!
    Solved!
    Go to Solution.

    coolmatthew wrote:
    What I want to do is actually this.
    You are using way too much code for all this. All you need is a concatenate strings, replacing your entire loop and such. Same result.
    (see also)
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    HEXTwiddler.png ‏4 KB

  • Firefox on 2 independant laptops, not reading website source code correctly, when all correct on Chrome and IE.

    Rebuilt my website in Serif WebPlus X6.<br />
    Using Google Chrome or Internet Explorer the site is displayed correctly as is the source code.<br />
    In Firefox 18.0.1 Code is being read wrongly. Cleared Cache and fault still there. Checked in Wifes laptop – still the same fault on her Firefox and okay on Chrome and IE.<br />
    Code should read - span class="Body-C-C9">“Why won’t the doctors listen”?<pre><nowiki></span></p>
    But firefox is showing - span class="Body-C-C9">“Why won’t the doctors listen”?</span></p></nowiki></pre>
    There are further similar faults throughout the website.<br />
    Why is Firefox not reading the code correctly?<br />
    Please help.

    That is an encoding issue.<br />
    It looks that the page is in UTF-8 Unicode and the server sends this page as a Western or Windows encoding.<br />
    So you see the Unicode characters as the individual bytes that they consist of.
    You can inspect this in Tools > Page Info > General and you can also use the Web Console (Web Developer > Web Console;Ctrl+Shift+K) to check the response header.<br />
    If the server sends a content type via the HTTP response headers then Firefox doesn't honor a meta tag in the file or otherwise switch the encoding.
    *https://developer.mozilla.org/en/Properly_Configuring_Server_MIME_Types

  • Question about Reader DRM activation

    Hi All
    I got a paper "FAQ ACS Discontinuation of Sales, November 30, 2004"
    I have a question about ACS.
    As I konw, ACS is discontinued effective November 30, 2004.
    and I read a section in paper below:
    Q. Will Adobe Reader and Acrobat users get support from Adobe for eBook issues?
    A. Support is not available for the free Adobe Reader, however, assistance for user activation is
    available until December 31, 2006.
    Does it mean Reader activation service will be stop until December 31, 2006?
    That's a big problem for our ebook service!!

    Adobe communicated in January to ACS customers that the DRM Activator service would remain operational until December 31, 2007, one year longer than previously announced.
    If you didn't receive this announcement, send your contact info (email and surface mail) to "[email protected]".
    You'll receive an autotmated reply that your email bounced but it will then be manually confirmed.

  • Very Easy Question: How to view source code of JAR file

    Hi Experts,
    1) Can we can see the content of JAR file?
    2) How we can we see content of JAR file?
    3) I have with me JAR file. It is sap.compcui_gpoadp~ObjectAndDataProvider.JAR. I have to make some changes in the JAR file source code. How I can find the source code?
    I tried to see the source code using NWDS. However, I can not see the code.
    Regards,
    Gaurav

    >
    Gary wrote:
    > Can I make changes in the source code of JAR file? Can I make changes in the code?
    You cannot do this by simple repacking/rearchiving of JAR, because it contains special descriptor with fingerprint. In general, JAR is unmodifiable, however, you can create a new one with modified sources.
    You can try to import the JAR in some Java project in Eclipse, for example. Then make your changes and use the Eclipse's Export JAR wizard in order to repack the modified source Java files in a new JAR.
    >
    Gary wrote:
    > Can I rename the JAR file and still it will usable? Please confirm.
    I general, yes, the operation is allowed. However, you cannot do this with JAR deployed on some J2EE server or Portal, for example. Because there are references to it.
    >
    Gary wrote:
    > Please let me know if by any chance I can see the content of JAR file in NWDS.
    Yes, sure. Use Import from Archive wizard in Eclipse. Or add the JAR in the class path of some Java project and Eclipse will show you the content of it.
    BR, Sergei

  • About Firefox OS Source Code

    Hello Friends. I'm at the stage of starting Firefox OS. I need to download Firefox OS source code but I could not download.
    Ubuntu do not have internet on my computer. I'll download in Windows, then I'll transfer to Ubuntu.
    How can I download Firefox OS source code? Into one file. Github not with, because, I need an internet connection to Github.I'd be very happy if you can help. Good Work.

    Hi ahmetburakkaplan,
    I'm not sure that there is a way to download the Firefox OS directly into one file. Your best bet is to download it to your Windows machine, then transfer the entire folder to your Ubuntu system (via a USB stick), or ZIP/Compress the contents and then transfer the ZIP file to your Ubuntu system.
    I hope this helps. Please let us know if you have any user-related issues with your Firefox OS device in the future.
    Thanks,
    - Ralph

  • Question about reading a string or integer at the command line.

    Now I know java doesn't have something like scanf/readln buillt into it, but I was wondering what's the easiest, and what's the most robust way to add this functionality? (This may require two separate answers, sorry).
    The reason I ask is because I've been learning java via self study for the SCJA, and last night was the first time I ever attempted to do this and it was just hellish. I was trying to make a simple guessing game at the command line, I didn't realize there wasn't a command read keyboard input.
    After fighting with the code for an hour trying to figure it out, I finally got it to read the line via a buffered reader and InputStreamReader(System.in), and ran a try block that threw an exception. Then I just used parseInt to get the integer value for the guess.
    Another question: To take command line input, do you have to throw an exception? And is there an easier way to make this work? It seems awfully complicated to take user input without a jframe and calling swing.
    Edited by: JGannon on Nov 1, 2007 2:09 PM

    1. Does scanner still work in JDK1.6?Try it and see. (Hint: the 1.6 documentation for the class says "Since: 1.5")
    If you get behaviour that doesn't fit with what you expect it to do, post your code and a description of our expectations.
    2. Are scanner and console essentially the same thing?No.
    Scanner is a class that provides methods to break up its input into pieces and return them as strings and primitive values. The input can be a variety of things: File InputStream, String etc (see the Scanner constructor documentation). The emphasis is on the scanning methods, not the input source.
    Console, on the other hand, is for working with ... the console. What the "console" is (and whether it is anything) depends on the JVM. It doesn't provide a lot of functionality (although the "masked" password input can't be obtained easily any other way). In terms of your task it will provide a reader associated with the console from which you can create a BufferedReader and proceed as you are at the moment. The emphasis with this class is the particular input source (and output destination), not the scanning.
    http://java.sun.com/javase/6/docs/api/java/util/Scanner.html
    http://java.sun.com/javase/6/docs/api/java/io/Console.html

  • Question about renaming XDCAM source and targets

    Using XDCAM, is it okay to rename the source folder after you've transferred it?  Same with the folder your transferring to.  Okay to rename it before or after you've transferred the footage?

    Hi,
    I copy the SxS card to an external drive into a folder with a given name like CH-1.  Then I change it to CH-Howe.  I've thought about it and I don't think that has any bearing on anything.  And I believe transfer is the wrong word.  This is an XDCAM import (possibly capture).  Once it's imported, the question then becomes what if I change the name of the folder the files were imported to?  That seems straightforward, too.  I simply reconnect or relink the media.

  • Question about NAT Inside Source, Inside Destination, and Outside Source

    I read the Cisco command references about "ip nat inside source", "inside destination", and "outside source", but couldn't have a clear understanding of how to associate the commands with "ip nat inside" and ip nat outside" configured for interfaces.
    Does "ip nat inside source ..." translation only happen on the interface configured as "ip nat inside"?
    Since NAT is a bidirectional action, what's the difference between "ip nat inside cource ..." and "ip nat inside destination ..."?
    I've never used "ip nat outside source ...". In what cases would it be needed?
    On an interface where there are NAT translation and also other actions such as policy map or IP Sec crypto map, would NAT happen before or after other actions?
    Thanks for help with any questions.
    Gary

    Hi Gary,
    The following documents may help you to understand some of the terminology:
    http://www.cisco.com/en/US/customer/tech/tk648/tk361/technologies_tech_note09186a0080094831.shtml
    http://www.cisco.com/en/US/customer/tech/tk648/tk361/technologies_tech_note09186a0080094837.shtml
    Also, the following document has a clear explanation of the order of operations when using NAT:
    http://www.cisco.com/en/US/customer/tech/tk648/tk361/technologies_tech_note09186a0080133ddd.shtml
    Hope that helps - pls rate the post if it does.
    Paresh

  • Question about mapping logical sources to dimensions

    1) On my physical layer I have one fact table (FACTS_DETAILS) linked with CATEGORY dimension table. Other fact tables (aggregated data) don't linked with this CATEGORY dimension with physical joins.
    2) On my BMM layer I have mapped my dimension "Category" with my FACT_DETAILS.
    3) Other LSTs don't mapped on "Category" dimension, as they do not linked with Categories on physical layer.
    4) When I try to display detailed facts by CATEGORY - it's ok.
    5) When I add another dimension (For example, COUNTRY) i get error, because COUNTRY dimension isn't compatible with my FACTS_DETAILS.
    The question is: how to avoid displaying error message at Answers in such situation? Maybe it is possible just to not display data without error message?

    Sounds like you need to architect your physical/logical model a bit better and also you need to set the appropriate levels in the LTS for your facts and dimension logical table sources.

  • Webacc and apache/tomcat source code install

    hi all:
    im try GW2012+SLES11SP1,install webacc,im want custom install apache2.x and tomcat 6.x,im installed it,but how install webacc?install tip install apache's rpm and tomcat 's rpm,pls help me ,thanks.

    SeamanMei,
    It appears that in the past few days you have not received a response to your
    posting. That concerns us, and has triggered this automated reply.
    Has your problem been resolved? If not, you might try one of the following options:
    - Visit http://support.novell.com and search the knowledgebase and/or check all
    the other self support options and support programs available.
    - You could also try posting your message again. Make sure it is posted in the
    correct newsgroup. (http://forums.novell.com)
    Be sure to read the forum FAQ about what to expect in the way of responses:
    http://forums.novell.com/faq.php
    If this is a reply to a duplicate posting, please ignore and accept our apologies
    and rest assured we will issue a stern reprimand to our posting bot.
    Good luck!
    Your Novell Product Support Forums Team
    http://forums.novell.com/

Maybe you are looking for