Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8520667
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T06:35:51+00:00 2026-06-11T06:35:51+00:00

I’d like to remotely monitor the activity of my Java EE application (deployed on

  • 0

I’d like to remotely monitor the activity of my Java EE application (deployed on a glassfish server).
Basically, I want my client-side implemented using Vaadin to display logs about the server-side activity.

The user would like to know what’s happening on the server side…These logs should only be high-level informative messages

I guess it really depends on the logging framework used if any. I’ve seen Chainsaw for log4j but this is a client on its own.
Otherwise, I could remotely read a file line by line (like tail -f)…but I don’t know how to do that either.

What’s the best solution to achieve this kind of thing?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T06:35:52+00:00Added an answer on June 11, 2026 at 6:35 am

    In general what you could do is simply use a Vaadin Label, read a log file infinitely (or rather until stopped) and append the file content to the label. Here is code for a for that does exactly this:

          Thread t = new Thread() {
            @Override
            public void run() {
    
                BufferedReader reader = null;
                try {
                    reader = new BufferedReader(new FileReader(LOGFILE));
                    String line;
                    while (running) {
                        line = reader.readLine();
                        if (line == null) {
                            // wait until there is more lines in the file
                            Thread.sleep(POLL_MS);
                        } else {
                            // append to the log Label
                            synchronized (MyApplication.this) {
                                log.setValue(log.getValue() + line + "<br />");
                            }
                        }
                    }
                } catch (IOException e) {
                    // TODO: handle me
                    e.printStackTrace();
                } catch (InterruptedException e) {
                    // TODO: handle me
                    e.printStackTrace();
                } finally {
                    running = false;
                    if (reader != null) {
                        try {
                            reader.close();
                        } catch (IOException ignore) {
                        }
                    }
                }
    
            }
        };
        t.start();
    

    For this to work you need a “RAW” mode Label and a ProgressIndicator that polls the server:

        ProgressIndicator pi = new ProgressIndicator();
        pi.setPollingInterval(POLL_MS);
        pi.setIndeterminate(true);
        layout.addComponent(pi);
    

    Disclaimer: this code was from a non-critical application and for example error handling and HTML escaping is missing.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I would like my Web page http://www.gmarks.org/math_in_e-mail.txt on my Apache 2.2.14 server to display
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
For some reason, after submitting a string like this Jack’s Spindle from a text
I want to count how many characters a certain string has in PHP, but
link Im having trouble converting the html entites into html characters, (&# 8217;) i
Basically, what I'm trying to create is a page of div tags, each has
I've got a string that has curly quotes in it. I'd like to replace
I would like to run a str_replace or preg_replace which looks for certain words
I am trying to render a haml file in a javascript response like so:
I'm interested in microtypography issues on the web. I want a tool to fix:

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.