• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Integration architecture/design between front end and back end

 
Ranch Hand
Posts: 61
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

I'm doing a small card-playing website, more to update my Java skills than making money, etc., but it will be used as a portfolio item to show employers, so I want to do best practices.

I wanted to ask what people use these days to communicate between the front end and back end? Years ago, I used JSPs, so Struts/Spring/JSF naturally had that communication going. However, the jQuery and AJAX/javascript stuff that lets me communicate with the server without refreshing the page has me confused. Does it use JSON? If so, is there a library in JEE or open-source library I should be installing to make that happen? By the way, I've never used jQuery or JSON, so only read about it on Wikipedia, etc. What's the best practice here, or at least, the set of mainstream practices currently used in the industry?

Lastly, I want to integrate possibly an iOS app to the same Java app server back end so a user can play with a native iOS app and another user could play in the same game on the website, and it would be seamless.

For context, my tentative tech stack will be:

Front-end HTML/CSS, maybe JSPs, JSF, or some such thing (TBD)
JBOSS App Server
Hibernate
MySQL or similarly simple-yet-robust, open DB


Thanks!
 
Bartender
Posts: 9626
16
Mac OS X Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Jimmy Ho wrote:
jQuery and AJAX/javascript stuff that lets me communicate with the server without refreshing the page has me confused. Does it use JSON?



The "X" in AJAX stands for "XML". It is also common to do AJAX with JSON. JSON has some advantages over XML: it doesn't use markup so it takes less bandwidth for example.

Jimmy Ho wrote:
If so, is there a library in JEE or open-source library I should be installing to make that happen?



I know Struts supports JSON results. I would be willing to bet that Spring does as well. There's no shortage of stand-alone libraries you could use to roll your own, such as Jettison or JSON.simple.

Jimmy Ho wrote:
What's the best practice here, or at least, the set of mainstream practices currently used in the industry?



Perhaps perusing our HTML, CSS and Javascript forum may give you some insight.
 
reply
    Bookmark Topic Watch Topic
  • New Topic