Java Applet to display the log file


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 4 of 4

Thread: Java Applet to display the log file

  1. #1
    Calis Guest

    Java Applet to display the log file


    Hi,
    Could anybody help me in getting started with a java applet that displays
    dynamically the log files which are on the server.
    Thanks in advance

  2. #2
    Guang Yang Guest

    Re: Java Applet to display the log file


    "Calis" <fuzzylogic0@mailcity.com> wrote:
    >
    >Hi,
    >Could anybody help me in getting started with a java applet that displays
    >dynamically the log files which are on the server.
    >Thanks in advance


    Hey Calis,

    There are a couple of issues you need to consider:

    1. What data flow model you need for your applet? Will log data be "pulled"
    by applet or will they be "pushed" to applet by server? Pulling by applet
    will be much easier to implement. And in certain environment, that is the
    only option.

    2. What data transfer protocol you want? HTTP would be the best since it
    works under almost all situations.

    If you decide to have applet pull log through HTTP, what you need to do is
    to have a CGI type program at web server to feed in log data. You may also
    want to read my article on distributed logging in Java zone.

    Hope this helps,

    Thanks,
    Guang.

  3. #3
    Calis Guest

    Re: Java Applet to display the log file


    Hi Guang,
    Thanks for your response.
    I already have a log file which ison the server.
    Now i need to diaply this log file using an applet. I am trying to use
    URL() methods. Do you think is this a good idea. And also the file being
    big(5Mb) takes a while to load. I want the applet to be dynamic.
    Could you please help me in this matter.
    Thanks
    Calis

    >There are a couple of issues you need to consider:
    >
    >1. What data flow model you need for your applet? Will log data be "pulled"
    >by applet or will they be "pushed" to applet by server? Pulling by applet
    >will be much easier to implement. And in certain environment, that is the
    >only option.
    >
    >2. What data transfer protocol you want? HTTP would be the best since it
    >works under almost all situations.
    >
    >If you decide to have applet pull log through HTTP, what you need to do

    is
    >to have a CGI type program at web server to feed in log data. You may also
    >want to read my article on distributed logging in Java zone.
    >
    >Hope this helps,
    >
    >Thanks,
    >Guang.



  4. #4
    Guang Yang Guest

    Re: Java Applet to display the log file


    Calis,

    URL will work in this matter, as it is using HTTP protocol. In terms of loading
    the big file, you really do not have many choices here. The log file is just
    like another big html page, to see it you have to download it first. An easy
    work around would be to split the file into multiple small pieces and only
    load the part of log people wants to see. A more sophisticated approach would
    be to have a back-end caching server serve the applet log viewing requests.

    Hope this helps.
    Guang.

    "Calis" <java.@127.0.0.1> wrote:
    >
    >Hi Guang,
    >Thanks for your response.
    >I already have a log file which ison the server.
    >Now i need to diaply this log file using an applet. I am trying to use
    >URL() methods. Do you think is this a good idea. And also the file being
    >big(5Mb) takes a while to load. I want the applet to be dynamic.
    >Could you please help me in this matter.
    >Thanks
    >Calis
    >
    >>There are a couple of issues you need to consider:
    >>
    >>1. What data flow model you need for your applet? Will log data be "pulled"
    >>by applet or will they be "pushed" to applet by server? Pulling by applet
    >>will be much easier to implement. And in certain environment, that is the
    >>only option.
    >>
    >>2. What data transfer protocol you want? HTTP would be the best since it
    >>works under almost all situations.
    >>
    >>If you decide to have applet pull log through HTTP, what you need to do

    >is
    >>to have a CGI type program at web server to feed in log data. You may also
    >>want to read my article on distributed logging in Java zone.
    >>
    >>Hope this helps,
    >>
    >>Thanks,
    >>Guang.

    >



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center