How to retreive gateway / transport status message?

Hi,

I have an registered gateway for my gtalk in openfire and which is gtalk.mydomain and registred with account “testaccount@gmail.com”.

Now how and where i can retreive the status message which is set for “testaccount@gmail.com”. and is “Hello world”.

I am trying to fetch that in presence listener using the below code.

RosterEntry entry = roster.getEntry(userid); // here userid = gtalk.mydomain

                if(entry!=null)
                {
                    username = entry.getName();
                    statusMessage = entry.getStatus().toString();
                }

is that correct ? or i have to do

roster.getEntry(testaccount\40gmail.com@mydomain);

??

Regards,

Samba

Hi,

I found that gateway status message comes to presence listener or roster listener as yahoo.domainname or msn.domain name. Suppose your domain name is xyz.com then you will get msn.xyz.xom available etc…

Regards,

Samba