Hi<br> i have written a very small netty client in my swing app (copied from Netty client example)<br>i have registered handler (which was bounded to a model object, i used MVC architecture in Swing)..so whenever the Netty client was receiving a netty response, the appropriate handler would be called which in turn updates the model which in turn notifies the View (frame)<br>
<br>i wasnt concerned on thread synchs etc, but i hope it gives you some ideas...<br>rgds<br> marco<br><br><br><div class="gmail_quote">On Tue, Aug 30, 2011 at 1:59 PM, rayc <span dir="ltr"><<a href="mailto:rayc@rayc.com">rayc@rayc.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">I am developing a multi user application in swing using Netty 3.2.5. The swing user interface has an OK button which when pressed does the following from multiple swing clients: 1. reads the database and returns the results. 2. Does some (lengthy) calculations with the results. 3. Updates the user interface (displaying the results). Is there an example anywhere in the Netty community / documentation which shows the correct way to do this. In particular the main items that I think are important are: a. how to keep correct sequence(s) of requests and responses. b. location of client call(s) code. c. location of server response(s) code. d. ensuring correct threads used i.e. edt and any other relevant threads. e. Any netty based synchronization required? thanks Ray<br>
<font color="#888888"><br>
<br>
--<br>
View this message in context: <a href="http://netty-forums-and-mailing-lists.685743.n2.nabble.com/Netty-3-2-5-and-swing-tp6741956p6741956.html" target="_blank">http://netty-forums-and-mailing-lists.685743.n2.nabble.com/Netty-3-2-5-and-swing-tp6741956p6741956.html</a><br>
Sent from the Netty User Group mailing list archive at Nabble.com.<br>
_______________________________________________<br>
netty-users mailing list<br>
<a href="mailto:netty-users@lists.jboss.org">netty-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/netty-users" target="_blank">https://lists.jboss.org/mailman/listinfo/netty-users</a><br>
</font></blockquote></div><br>