On this note, what exactly is the server entity property actually used for?
 Correct me if I'm wrong, but it determines what domain the server is
hosting?  It determines whether or not messages are routed locally or
externally correct?  And in configuring my DNS the IP of the XMPP server
must also resolve to the domain part of the server entity.  Is that correct?

On Fri, Oct 19, 2012 at 1:16 AM, Patrick Twohig <[email protected]> wrote:

>
> 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?
>
>
> For running on my local machine within Eclipse, I have it set to
> "localhost" but on the actual deployment environment it's set to the chat
> server host.  The value of xmppServerEntity is configured by my IoC
> container and it's identical to the first argument of the
> DefaultServerRuntimeContext constructor.  It matches the resturn value of,
> serverRuntimeContext.getServerEntity().
>
> "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.
>
>
> On Fri, Oct 19, 2012 at 1:08 AM, Bernd Fondermann <
> [email protected]> wrote:
>
>> 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