[JDEV] jabber newbie need help for XDB

mike pablo jabberd2002 at yahoo.com
Tue Feb 12 08:12:54 CST 2002


David,

Thansk for your reply. I used JabberBeans-0.9.0-pre4
in one of my project, I implemented the ServerModule
interface, I run jabber server in debug mode, from the
screen dumping I saw jabber server deliver the packet
<xdb to="mycomponent" from="user1 at mylinux.com" id="0"
type="result" ns="jabber:iq:auth"><password
xmlns="jabber:iq:auth">passwd</password></xdb> 
to my component, I also confirmed this with Network
Monitor, so I am sure my component received above
packet, but when I use
System.out.println(pe.getPacket()) in the
receivedPacket() method, I got:
<xdb to="mycomponent" from="user1 at mylinux.com" 
id="0" type="result" ns="jabber:iq:auth">
<query xmlns="jabber:iq:auth"></query></xdb>

I am now looking through the source code of
JabberBeans, could you give me some advice where I
should change to fix this problem? Thanks

Mike



--- David Waite <mass at akuma.org> wrote:
> JabberBeans creates Objects representing the content
> of the XML, rather 
> than a generic object structure like you get with
> W3C DOM. One of the 
> requirements for this is that the overall structure
> of the data is 
> well-defined. Several XDB requests and responses use
> the same XML 
> namespaces as user-side functionality, but do not
> conform to the 
> interfaces defined there.
> 
> I think there have been XDB components released
> based on JabberBeans - 
> if so, they most probably have written alternate
> extension objects to 
> support this implementation specific, internal
> mutation of jabber:iq:auth.
> 
> The second is more disturbing - it indicates that
> the data 
> store/retrieval mechanism is treating the username
> portion of the JID in 
> a case-sensitive manner, which is incorrect.
> 
> -David Waite
> 
> mike pablo wrote:
> 
> >David,
> >
> >When I sent:
> >
> ><xdb to="user1 at mylinux.com" from="mycompoment"
> id="0"
> >type="get" ns="jabber:iq:auth"></xdb>
> >
> >I got back:
> >
> ><xdb to="mycomponent" from="user1 at mylinux.com"
> id="0"
> >type="result" ns="jabbe
> >r:iq:auth"><query
> >xmlns="jabber:iq:auth"></query></xdb>
> >
> >I also found if jabber user id begins with capital
> >letter the XDB response is different from above,
> for
> >example, when I sent:
> >
> ><xdb to="User2 at mylinux.com" from="mycompoment"
> id="0"
> >type="get" ns="jabber:iq:auth"></xdb>
> >
> >I got back:
> >
> ><xdb to="mycomponent" from="User2 at mylinux.com"
> id="0"
> >type="result" ns="jabber:iq:auth"></xdb>
> >
> >there is no <query> element inside <xdb> element.
> >
> >Anybody can help?
> >
> >Mike
> >
> >
> >
> >
> >>mike pablo wrote:
> >>
> >
> >>>I am running Jabber-1.4.2-test2 in Redhat Linux
> 7.1,
> >>>
> >I
> >
> >>>have an accept component, when I send the
> following
> >>>packet from my component:
> >>><xdb to="user1 at mylinux.com/Work"
> from="mycompoment"
> >>>id="0" type="get" ns="jabber:iq:auth"></xdb>
> >>>
> >>Try to='user1 at mylinux.com', without the resource
> >>
> >
> >>-David Waite
> >>
> >
> >
> >__________________________________________________
> >Do You Yahoo!?
> >Send FREE Valentine eCards with Yahoo! Greetings!
> >http://greetings.yahoo.com
> >_______________________________________________
> >jdev mailing list
> >jdev at jabber.org
> >http://mailman.jabber.org/listinfo/jdev
> >
> 
> 
> 
> _______________________________________________
> jdev mailing list
> jdev at jabber.org
> http://mailman.jabber.org/listinfo/jdev


__________________________________________________
Do You Yahoo!?
Send FREE Valentine eCards with Yahoo! Greetings!
http://greetings.yahoo.com



More information about the JDev mailing list