Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!news.albasani.net!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail From: markspace <-@.> Newsgroups: comp.lang.java.programmer Subject: Re: Support for both Web and Desktop front-ends [Architecture] Date: Tue, 12 Jul 2011 21:21:06 -0700 Organization: A noiseless patient Spider Lines: 19 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=GB2312 Content-Transfer-Encoding: 7bit Injection-Date: Wed, 13 Jul 2011 04:21:09 +0000 (UTC) Injection-Info: mx04.eternal-september.org; posting-host="5HSAJfqnDjjLFxXZ6WBWEw"; logging-data="541"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+FOENLMLfvh+yzu+y70USPBK0uCpFeyI8=" User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:5.0) Gecko/20110624 Thunderbird/5.0 In-Reply-To: Cancel-Lock: sha1:EsTXwdGPPM35F13hJEFWs6ntpWg= Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:6149 On 7/12/2011 8:41 PM, Warren Tang wrote: > For the desktop front-end I > should use Swing + Spring + MyBatis? The Spring MVC can handle the two > front-ends and make sharing business logic easier? As far as I know Spring is web only. Its MVC frame work is aimed strictly at web applications; it won't integrate with Swing. I've not actually used Spring (though I've investigated it) but I'm 90% sure that's right. Check carefully before you assume otherwise. Spring in general seems to be in disfavor in this group. It depends I suppose on what sort app you are planning, but you might look into something a bit newer at least. MyBatis at a glance did not look superior to JPA or Hibernate. I'd prefer one of those two before using something that seems less standard, like MyBatis, in the Java world.