Issue #1, the crowdguru svn directory appears empty.

http://code.google.com/p/googleappengine/source/browse/#svn%2Ftrunk%2Fjava%2Fdemos%2Fcrowdguru%2Fsrc%2Fcom%2Fgoogle%2Fappengine%2Fdemos%2Fcrowdguru

Issue #2, I've built a simplified version of XmppReceiverServlet from
the crowdguru example  (http://code.google.com/appengine/articles/
using_xmpp.html) but it doesn't work.

Here's my source code:

public class XmppReceiverServlet extends HttpServlet {
  private static final Logger LOG =
      Logger.getLogger(XmppServlet.class.getName());

  private static final XMPPService xmppService =
      XMPPServiceFactory.getXMPPService();

  public void doPost(HttpServletRequest request, HttpServletResponse
response)
      throws IOException {
    Message message = xmppService.parseMessage(request);
    replyToMessage(message, "ack [" + message.getBody() + "]");
  }

  private void replyToMessage(Message message, String body) {
    JID jid = message.getFromJid();
    LOG.info("jid " + jid + " is available? "
        + xmppService.getPresence(jid).isAvailable());
    LOG.info("body = " + body);
    xmppService.sendMessage(new MessageBuilder()
        .withRecipientJids(jid)
        .withMessageType(MessageType.NORMAL)
        .withBody(body)
        .build());
  }
}

The message is received just fine, isAvailable is always true, and
there are no exceptions. If I send from GMail or WIndows desktop
Google Talk, I get the ack response successfully. If I send from my
Android talk client or iGoogle, I get no response. I've invited my app
as a chat contact in all environments.

[email protected] works, though, so I'm sure I'm missing
something, but I can't see the full source.

Here are the formats of the JIDs. The 1st 2 work, the 2nd 2 don't.

[email protected]/gmail.8F4CB7A5
[email protected]/Talk.v104A6A18605
[email protected]/android59c54037eadf
[email protected]/iGoogle5D250A2D

- Philip

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.

Reply via email to