I have a jabber client connected to a gateway and the gateway is connected to the msn contact using JML. The jabber clients send a msg to a msn contact. Gateway gets the msg and notices there is no open switchboard to this msn contact. Sends a invite to new switchboard and message with the messenger.sendText(email,text). "If there was a open switchboard it would have been sent with MsnSwitchboard.sendText(Email,text)" Now the problem is that if the jabber user sends another msg before the switchboard is opened/msn contact has join/ this will cause the gateway to open another switchboard. This is a big problem since i want to keep the amount of ports opened by the gateway to a minimum.
any Ideas on this.
Thanks,
Phil
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Did a work around. Started keeping track of the switchboards waiting accept form the client. Also created a buffer to buffer all the msgs. Very important is to have a timeout on the msgs for in case the client never accepts the switchboard session.
Phil
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I will explain my problem with a example.
I have a jabber client connected to a gateway and the gateway is connected to the msn contact using JML. The jabber clients send a msg to a msn contact. Gateway gets the msg and notices there is no open switchboard to this msn contact. Sends a invite to new switchboard and message with the messenger.sendText(email,text). "If there was a open switchboard it would have been sent with MsnSwitchboard.sendText(Email,text)" Now the problem is that if the jabber user sends another msg before the switchboard is opened/msn contact has join/ this will cause the gateway to open another switchboard. This is a big problem since i want to keep the amount of ports opened by the gateway to a minimum.
any Ideas on this.
Thanks,
Phil
Did a work around. Started keeping track of the switchboards waiting accept form the client. Also created a buffer to buffer all the msgs. Very important is to have a timeout on the msgs for in case the client never accepts the switchboard session.
Phil