|
Re: XMPP SO -> Gmail Woes [message #614873 is a reply to message #614871] |
Tue, 20 March 2007 00:34 |
Scott Lewis Messages: 1038 Registered: July 2009 |
Senior Member |
|
|
Hi Bob,
On 3/19/2007 I significantly refactored and enhanced the functionality
of the example applications in org.eclipse.ecf.example.clients...and
then redid the tests Bob describes with two gmail.com accounts. In
short, it seems to be working OK with the two gmail accounts that I
tried. I would like to ask Bob to try his tests again with his two
accounts and try to reproduce the problem he was seeing.
See below for a summary of the refactorings.
I ran things with with the new code and it correctly prints out the
following (using two gmail addresses: scottslewis@gmail.com,
mcginley@gmail.com)
scottslewis@gmail.com shows
ECF so chat robot (scottslewis@gmail.com)
handleMessage(ChatMessage[fromID=StringID[Ce98e0];threadID=n ull;type=chat;subject=null;body=Hi,
I'm an IM robot;props={}])
SharedObject.handleMessage(hello from mcginley)
SharedObject.handleMessage(hello from mcginley)
SharedObject.handleMessage(hello from mcginley)
SharedObject.handleMessage(hello from mcginley)
SharedObject.handleMessage(hello from mcginley)
SharedObject.handleMessage(hello from mcginley)
SharedObject.handleMessage(hello from mcginley)
SharedObject.handleMessage(hello from mcginley)
SharedObject.handleMessage(hello from mcginley)
SharedObject.handleMessage(hello from mcginley)
mcginley@gmail.com shows
ECF so chat robot (mcginley@gmail.com)
handleMessage(ChatMessage[fromID=StringID[Ce98e1];threadID=n ull;type=chat;subject=null;body=Hi,
I'm an IM robot;props={}])
SharedObject.handleMessage(hello from scottslewis)
SharedObject.handleMessage(hello from scottslewis)
SharedObject.handleMessage(hello from scottslewis)
SharedObject.handleMessage(hello from scottslewis)
SharedObject.handleMessage(hello from scottslewis)
SharedObject.handleMessage(hello from scottslewis)
SharedObject.handleMessage(hello from scottslewis)
SharedObject.handleMessage(hello from scottslewis)
SharedObject.handleMessage(hello from scottslewis)
And these seem to be correct (scottslewis is receiving hellos from
mcginley and vice versa).
So perhaps there is something different about Bob's accounts...if this
is the case I would like to find this out and report it to gmail.com.
So Bob please consider getting the latest code and rerunning the tests
with your two accounts.
Bob please get in touch with me directly at slewis@composent.com if any
of this is not clear.
Thanksinadvance,
Scott
Short summary of the refactorings in org.eclipse.ecf.example.clients:
1) Created new package org.eclipse.ecf.example.clients.applications and
moved application classes into this package.
2) Renamed application classes. Where there were two, there are now
three applications:
a) ChatRobotApplication. This is an IM robot.
The expected arguments are: <username> <host> <password> <targetIMReceiver>
for example:
fliwatuet ecf.eclipse.org fliwatuet slewis@ecf.eclipse.org
(BTW, fliwatuet is a test user on ecf.eclipse.org that anyone can use)
b) ChatSORobotApplication. This is also an IM robot, but it uses the
shared object API as Bob describes in his note. The expected arguments
are the same as ChatRobotApplication.
c) ChatRoomRobotApplication. This is a chat *room* robot, that expects
to join/participate in an XMPP chat room. The expected arguments are:
<username> <host> <password> <targetRoom>
for example:
fliwatuet ecf.eclipse.org fliwatuet ecf@conference.ecf.eclipse.org
Bob Brady wrote:
> I'm not able to get XMPP gmail.com clients to share SharedObject
> messages. While things work as expected with jabber.org connections,
> gmail connections apparently only handle SO messages sent to themselves.
>
> Does anybody have any advice? Details below:
>
> What steps will reproduce the problem?
> =======================================
> 1. Checkout org.eclipse.ecf.example.clients plugin from ECF CVS
>
> 2. Change XMPPSORobotApplication.java line 80:
> sendSOMessage(count + " hello from " + userName);
>
> 3. Run two instances of app with different users, as sender/target pairs
> instance 1 args: user_1 gmail.com user_1pass user_2@gmail.com
> instance 2 args: user_2 gmail.com user_2pass user_1@gmail.com
>
>
> What is the expected output? What do you see instead?
> ======================================================
> user_1 instance console should see:
> TrivialSharedObject.handleMessage(1 hello from user_2)
> ...
> TrivialSharedObject.handleMessage(10 hello from user_2)
>
> user_2 instance console should see:
> TrivialSharedObject.handleMessage(1 hello from user_1)
> ...
> TrivialSharedObject.handleMessage(10 hello from user_1)
>
> Instead I see for user_1:
> TrivialSharedObject.handleMessage(1 hello from user_1)
> ...
> TrivialSharedObject.handleMessage(10 hello from user_1)
> And instead for user_2:
> TrivialSharedObject.handleMessage(1 hello from user_2)
> ...
> TrivialSharedObject.handleMessage(10 hello from user_2)
>
>
> Thanks ECF,
> Bob
|
|
|
|
Powered by
FUDForum. Page generated in 0.03030 seconds