[JDEV] Question: packet routing
Joe Breeden
jbreeden at ena.com
Thu Jul 25 13:00:10 CDT 2002
I could be wrong about this, so if someone else has a better explanation - please step in, but each message is addressed to a JID and each component has a different JID. So, when a message is sent it is sent to a specific JID with, if it happens to match one for a component JID, is used to route the message to the proper component. Actually, even though your components can receive the main packets - they will only receive the ones actually address to them via their JID.
I hope that is correct and helps.
Joe
> -----Original Message-----
> From: Ian Littlewood [mailto:ian.littlewood at hummingbird.com]
> Sent: Thursday, July 25, 2002 12:43 PM
> To: Jabber (E-mail)
> Subject: [JDEV] Question: packet routing
>
>
> If I understand things correctly, each 'Service' type of component can
> receive at least the three main packets (<message/>,
> <presence/>, <iq/>) -
> so if a <message/> comes in from c2s (which, for simplicity is of type
> "normal"), and I have three 'Service' components registered for the
> "<message/>" packet then all three services will be handed
> the packet even
> though the intent is to have it handled by the JSM for
> delivery to another
> user on the server.
>
> What if, say, the '2s2' component and the 'jsm' component are
> both listening
> for <message/> packets and one comes in from 'c2s'? Will both
> the 'jsm' and
> 's2s' receive the message packet and it's up to one or the
> other to ignore
> it?
> _______________________________________________
> jdev mailing list
> jdev at jabber.org
> http://mailman.jabber.org/listinfo/jdev
>
More information about the JDev
mailing list