All good advice Brian, we do the same with points 1 and 2 re just calling subroutines and doing logging if needs be to file, i also have a simple php interface to the backend so we can test the backend standalone without uniobjects or .net - which is very usefull. The data size is interesting and something I shall certainly be investigating is 32k the actual limit ? Where did you glean this information ?, also point 4 intrigues me - i don't think this is required in an asp.net environment, where i have a webservice, with an open connection, call, close connection? For both pooled and non pooled ...
Rgds Symeon. -----Original Message----- From: u2-users-boun...@listserver.u2ug.org [mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Brian Leach Sent: 06 May 2011 09:13 To: 'U2 Users List' Subject: Re: [U2] uv v ud Bill Four things architecturally have helped me when using UO - the first couple may be too late but the fourth may be useful: 1. I only use UO to call subroutines. These have a common calling interface so there is a single dispatch point in the client where I can add logging and a despatch routine on the server where I can also add logging. It means some constraints but they can be got round. Also, I've learned the hard way to cut large strings being passed back - the despatch method checks the length of the outgoing argument and has a 'more' flag set to get the rest of it. Cutting to 32k is safest. 2. This approach also means I can use a test rig to check the subroutines independently of the client, which can help identify issues. 3. If I need to watch stuff in real time, I have a global logger that acts as a socket client. I can therefore send stuff to it from both the client and the server to get a complete end to end trace, which saves a lot of time otherwise spent trying to line up client and server logs. 4. Remember that UO.Net calls are single threaded.. so ensure you are using lock{} structures (VB SyncLock) around your calls. .Net may have events interfering with each other. Brian _______________________________________________ U2-Users mailing list U2-Users@listserver.u2ug.org http://listserver.u2ug.org/mailman/listinfo/u2-users ----- No virus found in this message. Checked by AVG - www.avg.com Version: 10.0.1325 / Virus Database: 1500/3618 - Release Date: 05/05/11 _______________________________________________ U2-Users mailing list U2-Users@listserver.u2ug.org http://listserver.u2ug.org/mailman/listinfo/u2-users