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.
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.