-
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
-
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.
-
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.
-
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
-
Forum Rules
|
Development Centers
-- Android Development Center
-- Cloud Development Project Center
-- HTML5 Development Center
-- Windows Mobile Development Center
|