Git Product home page Git Product logo

hot-faces's Introduction

Hot Faces

Jakarta Server Faces application with JSF files uploaded "on-fly" from MongoDB.

That feature utilize ResourceHandlerWrapper and mocked Resource class from Mojarra source code to provide JSF from MongoDB storage. Uploaded files stored at /temp folder and updated automatically on each new request.

In that example you can run application, copy index.xhtml to the text area on web page and you would get same page, but stored in the database. Than, you can got to that page, copy paste it to itself, update content and after page reload you would notice page changes.

About standalone.sh

In the repository ypu can find standalone.sh file that is copied into container during build process. That file is patched version of Wildfly starter and used to enable suspending until remote debugger connection. suspend=y property of JVM is set up to achieve that (essentially, the standalone.xml config file could be modified, but that was just easier for me.)

For running your application in Docker and connect it to VSCode debugger, follow those steps:

  1. Build container with ./standalone.sh included instead of original /opt/jboss/wildfly/bin/standalone.sh file
  2. Add following task to your ./.vscode/launch.json file:
{
    "type": "java",
    "name": "Debug (Attach)",
    "projectName": "MyProjectName",
    "request": "attach",
    "hostName": "127.0.0.1",
    "port": 8787,
}
  1. Set /opt/jboss/wildfly/bin/standalone.sh --debug -b 0.0.0.0 command as container entrypoint or just call docker run <your image> /opt/jboss/wildfly/bin/standalone.sh --debug -b 0.0.0.0.
  2. Wait, until Java will start and stop waiting debugger connection. Then start debug session in VSCode and Wildfly should start.

For that project you can just run make, always is already set up.

hot-faces's People

Contributors

butvinm avatar

Stargazers

 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.