Remote advertisment problem

View: New views
1 Messages — Rating Filter:   Alert me  

Remote advertisment problem

by jacek_p :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello,
I have a problem with remote adverisements. I cannot receive any remote adverts, i don't know why.
For advert publishing i use:
publish (should be seen in local cache) - and it is
remotepublish(should be seen in perrgroup cache) - and i don't see it.

My search method is:

Enumeration en = null;
    while (true) {
        try {
            en = disco.getLocalAdvertisements(DiscoveryService.ADV
                                                , "Name"
                                                , "mojserwisrura2");

            if ((en != null) && en.hasMoreElements()) {
                break;
            }

            disco.getRemoteAdvertisements(null
                                          , DiscoveryService.ADV
                                          , "Name"
                                          , "mojserwisrura2",1, null);

           
            try {
                Thread.sleep(5000);
            } catch (Exception e) {}

        }
        catch (IOException e) {
           
        }

...and i think it's correct.
Thanks for any help.
LightInTheBox - Buy quality products at wholesale price