Hi, 

The work on this proposal has been completed and you can now use JBang to prototype WildFly applications.

You can learn more about it from the proposal[1] or read the documentation at https://docs.wildfly.org/wildfly-glow/#jbang.

I’ll be presenting this work next week during the WildFly mini-conference[2]. See you there!

Big thanks to James, Jean-Francois and Emmanuel for getting it done :)

Best regards,
Jeff

[1] http://docs.wildfly.org/wildfly-proposals/user-experience/jbang.html
[2] https://www.youtube.com/live/d8IExBP7rxw

On 28 Feb 2025, at 20:45, Brian Stansberry <bstansbe@redhat.com> wrote:

Just a general process note, e.g. related to Emmanuel's comment about whether he's outside enough...


'Features at experimental stability are not required to have anyone in the Outside Perspective role. However, once experimental features are in a release, if not before, authors of experimental features are expected to directly engage with the community to solicit feedback on their feature.'

So, don't block too much on filling specific roles. :-)

OTOH, I really encourage people to keep an eye on this work and participate. And if you've not done much with JBang or Glow, playing with this sounds like a fantastic way to pick up some valuable skills.


On Thu, Feb 27, 2025 at 6:08 PM James Perkins <jperkins@redhat.com> wrote:
I'm happy to be in any role needed to be filled :) I think this is a fantastic idea.

James R. Perkins

Principal Software Engineer

Red Hat



On Wed, Feb 26, 2025 at 6:56 AM Jeff Mesnil <jmesnil@redhat.com> wrote:
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


--
Jeff Mesnil
Engineer @ Red Hat
http://jmesnil.net/

_______________________________________________
wildfly-dev mailing list -- wildfly-dev@lists.jboss.org
To unsubscribe send an email to wildfly-dev-leave@lists.jboss.org
Privacy Statement: https://www.redhat.com/en/about/privacy-policy
List Archives: https://lists.jboss.org/archives/list/wildfly-dev@lists.jboss.org/message/7V4QXZFXWMCEQTPW35ZMLZT4XHLGG4MK/
_______________________________________________
wildfly-dev mailing list -- wildfly-dev@lists.jboss.org
To unsubscribe send an email to wildfly-dev-leave@lists.jboss.org
Privacy Statement: https://www.redhat.com/en/about/privacy-policy
List Archives: https://lists.jboss.org/archives/list/wildfly-dev@lists.jboss.org/message/K6LDE3EHEQS4RWKBSPS5DTHVHONJEBTR/


--
Brian Stansberry
Principal Architect, Red Hat JBoss EAP
WildFly Project Lead
He/Him/His

--
Jeff Mesnil
Engineer @ Red Hat
http://jmesnil.net/