Results 1 to 1 of 1
- 08-04-2010, 05:01 PM #1
Member
- Join Date
- Nov 2009
- Posts
- 28
- Rep Power
- 0
problem with XMPP service of Google App
Hi,
I have some confusions with Google App which I hope by getting some comments from you regarding to the question I put here, will be eliminated.
I used a tutorial from:
Episode 2 : GAEJ + XMPP and rolling your own Agent « Google App Engine Java Experiments
and built a simple echo-chat-bot as explained there, and deployed to my Google App account. Then I tested it with my Google Talk, and it worked as expected.
Next, I used another tutorial code to connect to Google Talk first just to be sure I learned to connect to:
This code also worked. I got "Connected!", and a "connection ID: B8E524DA1A107B2E".Java Code:import org.jivesoftware.smack.ConnectionConfiguration; import org.jivesoftware.smack.XMPPConnection; import org.jivesoftware.smack.XMPPException; public class ChangeStatusMsg { public void changeStatus() throws XMPPException { ConnectionConfiguration connConfig = new ConnectionConfiguration( "talk.google.com", 5222, "gmail.com"); XMPPConnection connection = new XMPPConnection(connConfig); connection.connect(); if(connection.isConnected()) { System.out.println("Connected!"); System.out.println("connection ID: " + connection.getConnectionID()); } else System.out.println("NOT Conected!"); } public static void main(String[] args) throws XMPPException { ChangeStatusMsg changeStatusMsg = new ChangeStatusMsg(); changeStatusMsg.changeStatus(); } }
Next I change the connection data with my echo-chat-bot to test the connection with the bot:
This fails :-(Java Code:ConnectionConfiguration connConfig = new ConnectionConfiguration("apps.google.com", 5222, "mybot"); //suppose my bot is installed on: mybot.appspot.com
What is the right way to express the connection, if this is possible at all please?
Similar Threads
-
XMPP (Building an Instant Messaging Application Using Jabber/XMPP)
By sQu3aKy in forum NetworkingReplies: 0Last Post: 04-07-2010, 03:10 AM -
problem in google-gwt language api class method??
By narasimhavsi in forum Java SoftwareReplies: 1Last Post: 02-09-2010, 02:59 PM -
javax.xml.ws.Service problem
By magnum99 in forum Advanced JavaReplies: 0Last Post: 10-08-2009, 06:10 PM -
Xmpp
By The Ghost 88 in forum NetworkingReplies: 0Last Post: 03-31-2009, 12:43 PM -
Problem of Web Service
By nihongbin in forum XMLReplies: 1Last Post: 12-11-2008, 04:20 AM


LinkBack URL
About LinkBacks

Bookmarks