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
.
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]
On 28 Feb 2025, at 20:45, Brian Stansberry
<bstansbe(a)redhat.com> wrote:
Just a general process note, e.g. related to Emmanuel's comment about whether
he's outside enough...
From
https://docs.wildfly.org/wildfly-proposals/FEATURE_PROCESS.html, "Outside
Perspective" section:
'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(a)redhat.com
<mailto: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 <
https://www.redhat.com/>
> <
https://www.redhat.com/>
>
> On Wed, Feb 26, 2025 at 6:56 AM Jeff Mesnil <jmesnil(a)redhat.com
<mailto: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
>>
>> [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/
>>
>> _______________________________________________
>> wildfly-dev mailing list -- wildfly-dev(a)lists.jboss.org
<mailto:wildfly-dev@lists.jboss.org>
>> To unsubscribe send an email to wildfly-dev-leave(a)lists.jboss.org
<mailto: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...
> _______________________________________________
> wildfly-dev mailing list -- wildfly-dev(a)lists.jboss.org
<mailto:wildfly-dev@lists.jboss.org>
> To unsubscribe send an email to wildfly-dev-leave(a)lists.jboss.org
<mailto: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...
--
Brian Stansberry
Principal Architect, Red Hat JBoss EAP
WildFly Project Lead
He/Him/His