This project helps you to get started with a RIFE2 web application and bld.
You'll find all the pieces that are explained in the first sections of the documentation neatly contained in this one project.
It's ready to run, package and deploy ... and for you to have fun developing in a very iterative, intuitive and rewarding way.
For all things RIFE2, head on to the project website: https://rife2.com
For more details on the bld build system, head on to that section:
https://rife2.com/bld
./bld clean compile test./bld clean compile runGo to:
./bld clean warThe resulting archive will be in:
build/dist
If you use any of the byte-code instrumented features , like continuations,
metadata merging or lazy-loaded database entities, you'll need to launch your
servlet container with the -javaagent:[path-to]/rife2-[version]-agent.jar
argument. Exactly how is dependent on each servlet container.
For example, for Apache Tomcat this is typically done by customizing the
CATALINA_OPTS environment variable, for instance:
CATALINA_OPTS="-javaagent:[path-to]/rife2-[version]-agent.jar" ./bin/catalina.sh runFor Jetty, it could just be an argument of the java call:
java -javaagent:[path-to]/rife2-[version]-agent.jar -jar $JETTY_HOME/start.jar./bld clean uberjarThen run it with:
java -jar build/dist/hello-0.1.0-uber.jarIf you use any of the byte-code instrumented features, you'll need to also tell
java to use the RIFE2 agent.
For example:
java -javaagent:[path-to]/rife2-[version]-agent.jar -jar build/dist/hello-0.1.0-uber.jarThanks for using RIFE2!
If you have any questions, suggestions, ideas or just want to chat, feel free to post on the forums, to join me on Discord or to connect with me on Mastodon.
Read more in the full documentation and RIFE2 Javadocs.