Possible to send messages to yourself?

I’m attempting to create a monitor app that will send me a message (i.e. that I would receive in a graphical chat client) whenever certain things happen. The code’s pretty simple:

XMPPConnection connection = new XMPPConnection(“gmail.com”);
connection.login(user, pass);
Chat chat = connection.getChatManager().createChat(dst, nullMessageListener);

Suppose my account is buddy@gmail.com. If I set user = “buddy” and dst = "buddy@gmail.com", the code executes fine, but no new chat is opened in the graphical client. If I set dst = "notbuddy@gmail.com", where “notbuddy” is another valid account, that person sees a new chat opened.

Is this a limitation of XMPP/Google Talk/Smack, or am I just doing something wrong?

As a workaround I could create an additional “buddybot” account that the app could use to log in, but I was hoping to avoid that.

I can send messages to myself with Openfire. I cant with google talk- so I think thats a google limitation.

Have you installed the IM Gateway plugin?

Have you try without disconnecting ?