TcpIpConnection issues
Posted: Fri Aug 07, 2009 12:08 pm
by allistar >> Sat, 8 Jun 2002 10:39:26 GMT
Hi there,
I am using the "listenContinuousAsynch" method on a TcpIpConnection object and have specified a callback method. This works fine, and I can get communications with my external process (written in C++). The problem is that I want another Jade thread to take the new connection and work with it while leaving the original thread to continue to receive new connections.
This doesn't work as the new TcpIpConnection object that is created is not created as a shared transient, and the new thread (spawned using the app.startAppMethod method) gets a 1266 exception (A non-shared transient object is being accessed by another process).
Is there way way of processing this new connection in another thread so the asynchronous listen can continue receiving conections?
Thanks,
Allistar.
Hi there,
I am using the "listenContinuousAsynch" method on a TcpIpConnection object and have specified a callback method. This works fine, and I can get communications with my external process (written in C++). The problem is that I want another Jade thread to take the new connection and work with it while leaving the original thread to continue to receive new connections.
This doesn't work as the new TcpIpConnection object that is created is not created as a shared transient, and the new thread (spawned using the app.startAppMethod method) gets a 1266 exception (A non-shared transient object is being accessed by another process).
Is there way way of processing this new connection in another thread so the asynchronous listen can continue receiving conections?
Thanks,
Allistar.