Request for feature team: run WildFly from JBang
by Jeff Mesnil
Hi,
I’ve opened a proposal[1] to be able to build and run WildFly application from JBang[2]
The goal of this proposal is to be able to quickly prototype WildFly applications from a single .java file with no need to set up a Maven project, configure any plugins, etc.
TL;DR copy the file myapp.java:
///usr/bin/env jbang "$0" "$@" ; exit $?
//JAVA 17+
//DEPS org.wildfly.bom:wildfly-expansion:${wildfly.version:35.0.1.Final}@pom)
//DEPS org.wildfly.glow:wildfly-glow:1.3.2.Final
//DEPS jakarta.ws.rs:jakarta.ws.rs-api
//DEPS jakarta.enterprise:jakarta.enterprise.cdi-api
import jakarta.enterprise.context.ApplicationScoped;
import jakarta.ws.rs.GET;
import jakarta.ws.rs.Path;
import jakarta.ws.rs.ApplicationPath;
import jakarta.ws.rs.core.Application;
@ApplicationPath("/")
public class myapp extends Application {
@Path("/hello")
@ApplicationScoped
public static class Hello {
@GET
public String sayHello() {
return "Hello, WildFly!";
}
}
}
You would then run `jbang run my app.java` et voila! You have your code running in a WildFly server with all required capabilities as a Web archive.
The implementation is well under way and only impacts the WildFly Glow project.
The PR[3] for WildFly glow has also some documentation with working examples to prototype a simple Web application, a MicroProfile application, and a Chat bot based on an Ollama model.
This is an experimental feature.
I’m looking for volunteers to provide an outside perspective on this feature.
If you are interested by this proposal, please have a look at the proposal, the PR in Glow
Thanks,
Jeff
[1] https://github.com/wildfly/wildfly-proposals/pull/689
[2] https://www.jbang.dev/
[3] https://github.com/wildfly/wildfly-glow/pull/113
--
Jeff Mesnil
Engineer @ Red Hat
http://jmesnil.net/
1 year, 1 month
Wildfly 26 and Java EE 8 Support(PLEASE DELETE LAST POST)
by Tashman, Majdi
Hi,
Im using Wildfly 26 to deploy a java 11 web application and trying to use Java EE 8 with it. Is there a way to configure it to use java EE 8 and not other versions of Jakarta or Java EE 6?
I tried changing in my standalone.xml <subsystem xmlns="urn:jboss:domain:ee:6.0"> in Standalone.xml to 8.0 but it did not compile.
Thank you,
[Title: Provident Bank Logo]Majdi Tashman | Programmer Analyst |
PROVIDENT BANK | P: 951.686.6060 | F: 951.300.4213
mtashman(a)myprovident.com<mailto:mtashman@myprovident.com> | www.myprovident.com |
Confidentiality Notice: This message and any attachments are confidential and are intended solely for the use of the recipient(s). Any unauthorized review, use, print, save, copy, disclosure or distribution is strictly prohibited. For your protection, do not include account numbers, social security numbers or other non-public information in your email. Please ensure that any sensitive data or information is encrypted. If you do not have an encryption process, contact your Provident Bank representative to forward an email that will allow you to reply with your sensitive information encrypted. If you have received this message in error, please delete it from your system, destroy any hard copies and immediately advise the sender either by email at help(a)myprovident.com or by phone at (800) 442-5201. Opinions and ideas expressed in this message do not necessarily represent that of Provident Bank. Please be advised that Provident Bank reserves the right to monitor, access and review all messages, data and images transmitted through our electronic mail system. By using our e-mail system, you consent to this monitoring.
1 year, 1 month
To Post
by Tashman, Majdi
mtashman(a)myprovident.com
Thank you,
[Title: Provident Bank Logo]Majdi Tashman | Programmer Analyst |
PROVIDENT BANK | P: 951.686.6060 | F: 951.300.4213
mtashman(a)myprovident.com<mailto:mtashman@myprovident.com> | www.myprovident.com |
Confidentiality Notice: This message and any attachments are confidential and are intended solely for the use of the recipient(s). Any unauthorized review, use, print, save, copy, disclosure or distribution is strictly prohibited. For your protection, do not include account numbers, social security numbers or other non-public information in your email. Please ensure that any sensitive data or information is encrypted. If you do not have an encryption process, contact your Provident Bank representative to forward an email that will allow you to reply with your sensitive information encrypted. If you have received this message in error, please delete it from your system, destroy any hard copies and immediately advise the sender either by email at help(a)myprovident.com or by phone at (800) 442-5201. Opinions and ideas expressed in this message do not necessarily represent that of Provident Bank. Please be advised that Provident Bank reserves the right to monitor, access and review all messages, data and images transmitted through our electronic mail system. By using our e-mail system, you consent to this monitoring.
1 year, 1 month