Code Monkey home page Code Monkey logo

willdfly-swarm-hello-world's Introduction

willdfly-swarm-hello-world

Changelog (tags)

1.0.0

Simple http servlet support.

to run:

mvn clean install && java -jar target/helloworld-swarm.jar 

or:

mvn wildfly-swarm:run

test:

curl http://localhost:8080/status

should respond:

{"status":"ok"}

1.1.0

JPA, CDI and JTA support with postgres database.

You can use Docker to run the postgres database instance:

docker run --name some-postgres -p 5432:5432 -e POSTGRES_PASSWORD=12345 -d postgres

1.2.0

JAX-RS and Jackson support.

Note: when the application is started through mvn wildfly-swarm:run, the following warning is displayed:

WARN  [org.jboss.as.weld] (ServerService Thread Pool -- 2) WFLYWELD0052: Using deployment classloader to load 
proxy classes for module com.fasterxml.jackson.jaxrs.jackson-jaxrs-json-provider:main. Package-private 
access will not work. To fix this the module should declare dependencies on [org.jboss.weld.core, 
org.jboss.weld.spi]

about the warning, the following issue exists: https://issues.jboss.org/browse/SWARM-1280

Note 2: to debug the application, the following ways can be used:

java -jar -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005 \
  target/helloworld-swarm.jar

or, when running through maven plugin:

# the swarm process will suspend on start and open a debugger on this port.
mvn wildfly-swarm:run -Dswarm.debug.port=5005

or, add to swarm maven plugin:

<configuration>
  <debug>5005</debug>
</configuration>

debug options: http://www.adam-bien.com/roller/abien/entry/what_are_the_options_of

swarm properties: https://wildfly-swarm.gitbooks.io/wildfly-swarm-users-guide/configuration_properties.html

1.3.0

Liquibase initial support.

To bootstrap database configuration, the init.sql was created. If you use Docker, you can run the following:

docker run --name some-postgres -e POSTGRES_PASSWORD=123456 -p 5432:5432 \
-v $PWD/init.sql:/docker-entrypoint-initdb.d/init.sql -d postgres

1.4.0 [WIP]

Run Liquibase through CDI listener.

Note: About the warnings on startup:

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.