On Fri, Oct 19, 2012 at 9:15 AM, Patrick Twohig <[email protected]> wrote:
> I tried actually just extending AbstractRosterManager, and no luck so far.
>  This is what my code looks like so far:
> http://mysticpaste.com/private/dNnIRVWDlY/

1. In toRosterItem() you should not be adding the resource to the JID.
The bare JID is needed here.
2. What is the value of field Entity xmppServerEntity? "localhost"?
And what entity does the server expect, i.e. what does
serverRuntimeContext.getServerEntity() return?

>
> I thought that implementing the RosterManager was a pretty straightforward
> process and it's working mostly.  However, it doesn't seem that the server
> is still relaying the presence notifications.  That is, I'm not seeing the
> users sign on/off in the buddy list.
>
>
> This is also the toString() of the rosterItemMap returned by
> getRosterItemsByState()
>
> {
>
<snip/>
>          RosterItem{
>
>              jid=46eb86cf-f5ce-4a90-8421-8efc10a76250@localhost,
>              name='Patrick Twohig', groups=[Friends],
>              subscriptionType=BOTH,
>              askSubscriptionType=ASK_SUBSCRIBED
<snip/>
> }

"ASK_SUBSCRIBED" indicates, that the subscription is pending and not
effective. Since you don't use this value, it should not be critical.
Also "@localhost" is not proper. This should be the domain all the
Vysper server accounts are registered for, see (2.) from above.

> I'm also using Vysper 0.07, not 0.08, I dunno if that makes a difference.

Maybe. I'm currently only looking into 0.8/TRUNK code.

PresenceAvailabilityHandler.handleOutboundAvailable() handles
distribution of presences. See code after comment
"// broadcast presence from full JID to contacts".

  Bernd

Reply via email to