Giter Site home page Giter Site logo

hackapp's Introduction

Hackathon sample Java EE application

What is it?

This quickstart is a deployable Maven 3 project to help you get your foot in the door developing with Java EE 7 on WildFly 8 or WildFly 8.

This project is setup to allow you to create a compliant Java EE 7 application using JSP 2.0 EL 2.0 JSTL 1.2 CDI 1.0, EJB 3.1, JPA 2.0 and Bean Validation 1.0.

System requirements

All you need to build this project is Java 8.0 (Java SDK 1.8) or better, Maven 3.0 or better.

The application this project produces is designed to be run on WildFly 8.

Start WildFly 8 with the Web Profile

  1. Open a command line and navigate to the root of the JBoss server directory.

  2. The following shows the command line to start the server with the web profile:

     For Linux:   JBOSS_HOME/bin/standalone.sh
     For Windows: JBOSS_HOME\bin\standalone.bat
    

Build and Deploy the Quickstart

  1. Make sure you have started the JBoss Server as described above.
  2. Open a command line and navigate to the root directory of this quickstart.
  3. Configure target server:
   export WILDFLY_HOST=<hostname>
   export WILDFLY_PASSWORD=<password>, default is admin
  1. Type this command to build and deploy the archive:
        mvn clean package wildfly:deploy
  1. This will deploy target/hackapp-*.war to the running instance of the server.

Data source

Application uses Hibernate with JTA source defined in persistence.xml:

   <persistence-unit name="primary">
      <jta-data-source>java:/OracleDS</jta-data-source>
      <properties>
      ...
      </properties>
   </persistence-unit>

This managed data source needs to be provided by the application server.

Access the application

The application will be running at the following URL: http://localhost:8080/.

Undeploy the Archive

  1. Make sure you have started the JBoss Server as described above.

  2. Open a command line and navigate to the root directory of this quickstart.

  3. When you are finished testing, type this command to undeploy the archive:

     mvn wildfly:undeploy
    

Debug the Application

If you want to debug the source code or look at the Javadocs of any library in the project, run either of the following commands to pull them into your local repository. The IDE should then detect them.

    mvn dependency:sources
    mvn dependency:resolve -Dclassifier=javadoc

hackapp's People

Contributors

majduk avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.