Fuse #2 day at Tikal

I would like to give a short overview about what we did in the second Fuse day at Tikal, took place on Sptember 5th. Naturally, I will concentrate on the Java group activity this day, and its integration with other groups. I will describe shortly the objectives and what we achieved (also what we didn't achieve).

In this Fuse we decided to “eat our own dog food” and use common and proven Java technologies, the same ones that serve most of Tikal customers, rather than going with cutting edge ones. We also wanted to create something valuable, which provides more motivation to complete the project within a limited time – one day of work. We decided to take the TimeTracker software that is used by Tikal employees and convert it from a LAMP application to modern Java application. We wanted to use the same RDBMS used by the current application, and rewrite the application, so there will be no schema changes.

The last requirement was that the interface will be used both by Flex , CLI and thin HTNL5 web clients, so we decided to use REST over HTTP protocol.

The steps that we followed are. Here are the technical steps that we followed:

  1. Choose the technologies – We used JPA2 /Hibernate as persistence layer. Spring 3 as our Dependency Injection and application framework, and RESTEasy as our JAX-RS REST provider implementation..

  2. Design the object model – This was done as reverse engineer from the existing DB schema.

  3. Map the created classes as entities mapped to the DB tables – this was done using JPA2 annotations.

  4. Build DAO interface layer - This layer was thin and was implementation agnostic.

  5. Implement JPA2 implementation behind the created interface. As mentioned, we used Hibernate as JPA2 vendor.

  6. Create a service interface and implementation – This layer was transactional, and used the DAO interfaces to access the DB.

  7. Provide REST interface using the standard JAX-RS using RESTEasy vendor. We used JSON as a format for our data, and we used JAXB annotations to map the domain model to JSON.

  8. Provide a web layer that will assemble all artifacts and third parties into a standard web folder. This folder was deployed within Tomcat web server.

  9. Create pom.xml file and use Maven2 as our build engine.

Using the plan above the implementation was strait forward. The only part that we had to coordinate with other team was the exact REST interface. This included both the URL and input/output data payload. It was NOT an easy task, since different people had different views for how this api should look like. REST is loosely coupled and does NOT dictate any standard, it just provide an architecture for building the application. The design and implementation for the interface was up to us . However, we finally set it up, and got a working application. On the last hour we integrated it with the Flex team, so we could see the application with nice GUI.



Comparing Java to other technologies used in the Fuse day, it take more time to kick off a simple application, but within a one day of work you can have a simple end-to-end application with minimal REST api. We noted that design a “right” REST interface is NOT trivial, and you have to treat it carefully when you declare the interfaces and data types. People in the team who were NOT familiar with the technologies, had the chance to build and deploy a simple web application that use a common and widespread technologies by our customers. The created artifact was a working server (Tomcat) with the required api, but we feel its NOT “production ready” yet. An essential is we need to provide is authentication and authorization, and we need to QA it before we deploy it as a real service for Tikal employees


Big-Data and Backend-Architect

Backend Group

Thank you for your interest!

We will contact you as soon as possible.


Please leave your details and we’ll get back to you as soon as possible

Oops, something went wrong
Please try again or contact us by email at info@tikalk.com
Thank you for your interest!

We will contact you as soon as possible.

Send us a message

Oops, something went wrong
Please try again or contact us by email at info@tikalk.com