Is there a Cobalt Java project template?

If you wish to create a new Cobalt Java project, is there a project template somewhere that includes a skeleton of the things you will need? Things like logging, ant build files, etc?

Best Answer

  • From what I know there is no template for projects. However when you want to have a Java project created (with Continuous integration builds, etc.), contact CO_CM_TECH. They will setup the base skeleton (with ant scripts for CI builds etc.). From there you will have to setup logging and other "regular" features for your project. As a reference for logging you can check these links – 1.
    Infrastructure Logging 2.
    Guide lines for logging

Answers

  • The Central Tech Cobalt team has created a **CobaltJavaTemplate** which you can [download from the Corporate Source repository][1] . **Description** *CobaltJavaTemplate is a template Java web project which can be used as a starting point to develop new projects the Cobalt way. The template implements and demonstarates many of the guiding principals of the
    Cobalt Application Framework .



    Some highlights of the template:
    • Spring MVC architecture
    • REST web services
    • Standard HealthCheck and ResourceCheck monitoring endpoints
    • Application logging using Log4J
    • Ivy dependency management
    • TDD (JUnit Unit tests using Mockito)
    • Integration tests framework
    • Use of infrastructure libraries (for instance, for annotations used by TRMR and other infrastructure tools)
    • ANT scripts for compiling and deploying the application
    • Usage of system properties (can be valued either from CMDB attributes or within the module Properties files)