Git Product home page Git Product logo

jee-demo's Introduction

JEE Demos

This repository includes JEE demos for Servlets, JSPs, JSFs, JAX-RS and EJBs.

Recommendations and Dev Choices

  • IDE: Opensource Eclipse IDE for JEE is recommended
  • JDK: Open JDK 1.8 (not JRE) to use JavaEE/JakartaEE 8 recommended
  • JEE Server: Glassfish v5.1 supporting JavaEE/JakartaEE 8 recommended

Setting Up Development Environment

  1. Make sure you downloaded Eclipse IDE for JEE Development from here
  2. Please refer here to setup Eclipse IDE
  3. Please refer here to setup a new GlassFish Server instance in Eclipse IDE
  4. Download and install OpenJDK 1.8 (if not available) from here

Building the Source Code

Each demo1,...demo5 folders are considered separate JEE projects for the IDE.

Running Gradle Tasks through Terminal

You can simply navigate into the demoN folder and execute the following;

For Linux / MacOSX;

cd demo1
./gradlew clean build

For Windows;

cd demo1
./gradlew.bat clean build

Running Gradle Tasks from Eclipse IDE

Below steps assume that you have already configured Gradle Tasks view in Eclipse IDE as explained here

  1. Goto Window -> Preferences; Select Gradle and enter JDK1.8 path into your Gradle Java Home path.
  2. Then from the tree hierarchy; select correct project(eg. demo1), expand build item,
    • Click on clean to run cleaning task,
    • Click on build to run build task

NOTE: Whenever you are doing changes to the gradle file; make sure to right-click on the project and Gradle -> Refresh Gradle Project

Gradle Task

Deploy and Run JEE Application in Glassfish Server

Below steps assume that you have already configured server instance in Eclipse IDE as explained here.

  1. Right Click on Server instance we created. Then select Add and Remove....

Servers Tab

  1. From the window; for example if you want to add demo1 into JEE server; select demo1 first and click Add button this will results demo1 appear in the list of right side.

Add Artifacts

  1. Start the server by right click and selecting Start.

Run Server

  1. Whenever doing changes, you can execute clean build gradle tasks(if required) then right click on the server and click Publish to publish the changes.

jee-demo's People

Contributors

rasika 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.