Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!news.musoftware.de!wum.musoftware.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Robert Klemme Newsgroups: comp.lang.java.programmer Subject: Re: Java servlet on browsers: dying or kicking ? Date: Fri, 28 Dec 2012 21:22:13 +0100 Lines: 53 Message-ID: References: <50d892e5$0$282$14726298@news.sunsite.dk> <50dbf6d1$0$80176$742ec2ed@news.sonic.net> <50dcfecc$0$292$14726298@news.sunsite.dk> <50dd5b51$0$80184$742ec2ed@news.sonic.net> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: individual.net +ja41PoE3ZW9iZDrqH/V6AYqBmC0RdlCH86vsatF2tOBzIewSXDftTWzBzm1maWJI= Cancel-Lock: sha1:pJmNFYz+HSi/FjAQCTfkQH9t2bA= User-Agent: Mozilla/5.0 (Windows NT 6.0; WOW64; rv:17.0) Gecko/17.0 Thunderbird/17.0 In-Reply-To: Xref: csiph.com comp.lang.java.programmer:20775 On 28.12.2012 18:50, lipska the kat wrote: > I spend much of my working life translating a clients business processes > into something that can run on a computer and the trend is now more than > ever away from a strictly web based process and towards systems that are > completely independent of delivery mechanism. > > So, where as a few years ago we had 'we gotta have a web site because > our competitors have a web site' now we have 'we need a system that can > implement our business and deliver our business value over multiple > communication channels' > > So as well as a web site we often provide one or more of, a mobile > interface, a social media interface delivering targeted updates to the > likes of twitter, farcebook etc. an XML RSS feed, an interactive XML > based catalogue and recently a way of delivering business value via web > TV. We also provide interfaces to existing legacy systems and machine > interfaces to allow JIT supplier order fullfilment, shop floor intranet > access via hand held devices, POS systems etc etc. Only last week I was > asked about a 'Virtual Worlds' interface, Second Life and suchlike. I > had a second life account for a while but got so absorbed that I started > to neglect my earthly one :-( > > I try to design our systems to be completely isolated from both > persistence mechanism and delivery mechanism > > What I inevitably end up with is a slightly less that perfect decoupling > but I like to think that eventually, given the appearance of a truly > scalable way to persist entire Object trees I will be able to produce a > business system that will be completely decoupled from earthly > considerations like UI and database This sounds exactly like the use case JEE was intended for. Your business logic sits in session beans, your state is made persistent with JPA whatever backend is used (mostly RDBMS though) and you can interface to legacy systems with JCA. Transaction control across these layers is available in most modern JEE containers. Most of them let you create a web UI with JSF or other modern technologies. Usually you can also expose session beans as Web Services as well with relatively low effort. JASS handles authentication and can interface with various backends (LDAP, AD...). In practice of course this is pretty complicated and architecting such an application and setting it up has quite some overhead. But if you have it set up you have a nice separation of concerns. Kind regards robert -- remember.guy do |as, often| as.you_can - without end http://blog.rubybestpractices.com/