PDA

View Full Version : persistent connection issue


epopov
07-06-2004, 10:19 AM
Hi,
I have laszlo application which consists of several lzx files, included from one index.lzx. I want to use persistent connection in my application.
When I post next code into index.lzx, my app works well with persistent connection

<connection authenticator="anonymous" group="backend" authparam="usr=myuser">
<agent url="PATH_TO_SERVLET" />
<method event="onconnect">
...some code
</method>
<method event="ondisconnect">
...some code
</method>
</connection>

But when I put this code into myconn.lzx that is included by index.lzx, warning appears in catalina.out :
'element "connection" not allowed in this context. Check whether it is spelled correctly, and whether a class with this name exists.'

Is it possible to put <connection /> tag into some included lzx file?
It's very important to me.

TripleToe
07-06-2004, 10:46 AM
Don't think you can do it.

From the docs:

"The connection manager is an LzConnection object that is instantiated when <connection> is declared in the canvas (note: <connection> can't be declared in a library)"

epopov
07-06-2004, 10:56 AM
It's a pity that there is no workaround.