[JDEV] Configuring server side component
DJ Adams
dj.adams at pobox.com
Mon Nov 25 06:59:36 CST 2002
On Mon, Nov 25, 2002 at 11:57:48AM +0100, OUCHIA Mehdi FTRD/SVA/LAN wrote:
> Hello,
>
> I've got a problem with server side component configuration in jabber.xml.
>
> Indeed, i have a jabberd running on a first machine called "MachineA" and an "accept" component on another one called "MachineB".
> In jabber.xml on "MachineA", if i configure my component called "ordermanager" as follows :
>
> <service id="ordermanager.MachineA">
> <accept>
> <ip>MachineB</ip>
> <port>5999</port>
One problem is here - this is saying to jabberd on MachineA "please listen
on socket MachineB:5999" - it would be pretty amazing if that would work :-)
> <secret>secret</secret>
> </accept>
> </service>
>
> When i try to run the jabberd, i got the following error message :
>
> ERROR: Base Handler Returned an Error:
> <accept> unable to listen on the configured ip and port
Because the IP address is wrong (see above)
>
>
> However, the 2 machines are on the same network. And when i put no information for the "ip" tag ( only "<ip/>"), then my component is correctly registered with the handshake. Unfortunately, the jabberd seems to be unable to redirect to this component "message" or "iq" packets coming from classic clients !!!
>
An empty <ip/> tag just means that jabberd will listen on INADDR_ANY for
connections coming in for port 5999. THis is fine. The routing problem
you describe, is probably separate from this issue. What is the 'to' address
set to on the packets from the clients that don't make it to the component?
dj
More information about the JDev
mailing list