Skip to content

Instantly share code, notes, and snippets.

@mbogoevici
Created January 11, 2012 16:32
Show Gist options
  • Save mbogoevici/1595501 to your computer and use it in GitHub Desktop.
Save mbogoevici/1595501 to your computer and use it in GitHub Desktop.

Building the business services

Learn how we designed and implemented the business layer of the application and how we made it accessible for different types of front-ends


You’ve just defined the domain model of your application and created its persistence layer. Now you need to implement the services that implement the business logic of your application and expose them to the front-end. Topics covered include:

  • Implementing basic persistence operations (?)
  • Encapsulating business logic in services and integrating with the persistence tier
  • Using CDI for integrating individual services
  • Functional testing using arquillian
  • Implementing cross-cutting concerns such as logging
  • Exposing RESTful services via JAX-RS

The tutorial will show you how to perform all these steps in JBoss Developer Studio, including screenshots that guide you through . For those of you who prefer to watch and learn, the included video shows you how we performed all the steps.

Building the User UI using HTML5

Learn how we implemented the front-end of the application using HTML5


You’ve just implemented the business services of your application, and exposed them through RESTful endpoints. Now you need to implement a flexible user interface that can be easily used with both desktop and mobile clients. Topics covered include:

  • Creating single-page applications using HTML5, JavaScript and JSON
  • Using JavaScript frameworks such as jQuery for invoking RESTful endpoints and manipulating page content
  • Detecting the client device
  • Implementing a version of the user interface that is optimized for mobile clients using JavaScript frameworks such as jQuery mobile

The tutorial will show you how to perform all these steps in JBoss Developer Studio, including screenshots that guide you through . For those of you who prefer to watch and learn, the included video shows you how we performed all the steps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment