PDA

View Full Version : persistent connection


productengine
10-01-2003, 06:26 AM
Hi, I have some problems with persistent connection.

From the beginning I created a laszlo application(mychat.lzx) that can login as one of user from chat.lzx application and can send&receive some messages. I started two IE windows with this my application. One of this app(first IE) was able to send some messages to other (second IE). When one of this application (from first IE) send a message, then both of this copies (in first and second IE) received it.

After this I created two different applications():
- first app (mychatsend.lzx) can login as one of user from chat.lzx application and is assigned to send some messages (also it can receive messages from users)
- second can (mychatreceive.lzx)login as one of user from chat.lzx application and is assigned to receive some messages (also it can receive messages from users)
But second application can't receive any messages from first.

How can I solve this problem?

antun
10-01-2003, 09:10 AM
There isn't a way around this; the current implementation of the persistent connections only supports a single application talking to other instances of the same application.

-Antun

TripleToe
07-04-2004, 08:41 PM
Could you get around this limitation using an agent? I'm wondering if you could set up a common agent that both persistent connections shared, and that agent would relay information between the two. I haven't found enough documentation about the agents to know if this would work.

pablo
07-05-2004, 10:35 PM
By default, two persistent connection apps with different URLs can't communicate with each other. You can get around this by using the same group attribute value on the connection tag for each application. For example:

mychatsend.lzx:

<canvas>
<connection group="mygroup" />
...
</canvas>

mychatreceive.lzx:

<canvas>
<connection group="mygroup" />
...
</canvas>

Applications registered to mygroup are allowed to communicate with each other.

pablo