gae xmpp outbound service
Posted
by cometta
on Stack Overflow
See other posts from Stack Overflow
or by cometta
Published on 2010-04-17T13:10:57Z
Indexed on
2010/04/17
13:13 UTC
Read the original article
Hit count: 274
currently i create xmppservlet like below
public void doPost(HttpServletRequest req, HttpServletResponse resp)
throws IOException {
JID jid = new JID("[email protected]");
Message msg = new MessageBuilder()
.withRecipientJids(jid)
.withBody("hi Hello i'm a fancy GAE app, how are you?")
.build();
XMPPService xmpp = XMPPServiceFactory.getXMPPService();
SendResponse status = xmpp.sendMessage(msg);
}
by doing this, from [email protected], i need to send a message to [email protected] only, will [email protected] send out the message back to [email protected]. Is there anyway to programatically send out xmpp message without having [email protected] to initial chat window with [email protected] and send the first message? This should be consider outbound-service right?
how to do this?
© Stack Overflow or respective owner