Server Push

Hi
I want to use server push in vaadin; I have done all of it’s configuration:
1- build path the vaadin-push.jar.
2- Add @push anotation to UI class
3- Added this code to (web.xml)

Pushy UI com.vaadin.server.VaadinServlet UI com.example.secondvaadinapp pushmode automatic true

4-And created and started object of a thread like this

class InitializerThread extends Thread {

    int num = 0;

    public void run() {
        access(new Runnable() {
            @Override
            public void run() {

                AddressBook.loadData();
                System.out.println("IT refreshed");
            }
        });
    }
}

But it does not works yet, and no error. Please help me.
Thanks.

In which way does it not work? The browser is not updated even though you get the “IT refreshed” message in the server log? Which server are you using? If you open the debug window (add ?debug parameter to the URL in browser) and check the “info” tab, what does it say in the “Communication method” line?

I use tomcat 7.0.47 server. No error happens in the command line and my browser does not updated from database.
I Insert some data from fields to be stored in the database, I suppose to
reload
the data in the table after clicking on submit button and storing in the
DB
. In three days ago I found that I can do this using configuring broadcast, it works in my computer, is it useful and can it be used instead of server push?