Skip to content

Commit

Permalink
Merge pull request #852 from kabir/glow-readme
Browse files Browse the repository at this point in the history
Add Glow plugin examples
  • Loading branch information
kabir authored Jan 18, 2024
2 parents a04efd9 + c836648 commit b410bbf
Show file tree
Hide file tree
Showing 47 changed files with 200 additions and 8 deletions.
1 change: 1 addition & 0 deletions batch-processing/README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ include::../shared-doc/attributes.adoc[]
:level: Intermediate
:technologies: CDI, Batch 1.0, JSF
:openshift: true
:portedToGlow: true

[abstract]
The `batch-processing` quickstart shows how to use chunk oriented batch jobs to import a file to a database.
Expand Down
1 change: 1 addition & 0 deletions bmt/README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ include::../shared-doc/attributes.adoc[]
:level: Intermediate
:technologies: EJB, BMT
:openshift: true
:portedToGlow: true

[abstract]
The `bmt` quickstart demonstrates Bean-Managed Transactions (BMT), showing how to manually manage transaction demarcation while accessing JPA entities.
Expand Down
1 change: 1 addition & 0 deletions cmt/README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ include::../shared-doc/attributes.adoc[]
:level: Intermediate
:technologies: EJB, CMT, JMS
:openshift: true
:portedToGlow: true

[abstract]
The `cmt` quickstart demonstrates Container-Managed Transactions (CMT), showing how to use transactions managed by the container.
Expand Down
1 change: 1 addition & 0 deletions ee-security/README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ include::../shared-doc/attributes.adoc[]
:level: Intermediate
:technologies: EE Security, Servlet, CDI
:openshift: true
:portedToGlow: true

[abstract]
The `ee-security` quickstart demonstrates Jakarta EE security.
Expand Down
1 change: 1 addition & 0 deletions ejb-remote/README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ include::../shared-doc/attributes.adoc[]
:level: Intermediate
:technologies: EJB, JNDI
:openshift: true
:portedToGlow: true

[abstract]
The `ejb-remote` quickstart uses EJB and JNDI to demonstrate how to access an EJB, deployed to {productName}, from a remote Java client application.
Expand Down
1 change: 1 addition & 0 deletions ejb-security-context-propagation/README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ include::../shared-doc/attributes.adoc[]
:author: Stefan Guilhen
:level: Advanced
:technologies: EJB, Security
:portedToGlow: true

[abstract]
The `ejb-security-context-propagation` quickstart demonstrates how the security context can be propagated to a remote EJB using a remote outbound connection configuration
Expand Down
1 change: 1 addition & 0 deletions ejb-security-programmatic-auth/README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ include::../shared-doc/attributes.adoc[]
:author: Stefan Guilhen
:level: Intermediate
:technologies: EJB, Security
:portedToGlow: true

[abstract]
The `ejb-security-programmatic-auth` quickstart demonstrates how to programmatically setup different identities when invoking a remote secured EJB.
Expand Down
1 change: 1 addition & 0 deletions ejb-throws-exception/README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ include::../shared-doc/attributes.adoc[]
:level: Intermediate
:technologies: EJB, EAR
:deploymentDir: ear
:portedToGlow: true

[abstract]
The `ejb-throws-exception` quickstart demonstrates how to throw and handle exceptions across JARs in an EAR.
Expand Down
1 change: 1 addition & 0 deletions ejb-timer/README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ include::../shared-doc/attributes.adoc[]
:level: Beginner
:technologies: EJB Timer
:openshift: true
:portedToGlow: true

[abstract]
The `ejb-timer` quickstart demonstrates how to use the Jakarta Enterprise Bean timer service `@Schedule` and `@Timeout` annotations with {productName}.
Expand Down
1 change: 1 addition & 0 deletions ejb-txn-remote-call/README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ include::../shared-doc/attributes.adoc[]
:level: Intermediate
:technologies: EJB, JTA, Clustering
:openshift: true
:portedToGlow: true

[abstract]
The `ejb-txn-remote-call` quickstart demonstrates remote transactional EJB calls over two application servers of {productName}.
Expand Down
1 change: 1 addition & 0 deletions helloworld-jms/README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ include::../shared-doc/attributes.adoc[]
:author: Weston Price
:level: Intermediate
:technologies: JMS
:portedToGlow: true

[abstract]
The `helloworld-jms` quickstart demonstrates the use of external JMS clients with {productName}.
Expand Down
1 change: 1 addition & 0 deletions helloworld-mdb/README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ include::../shared-doc/attributes.adoc[]
:level: Intermediate
:technologies: JMS, EJB, MDB
:openshift: true
:portedToGlow: true

[abstract]
The `helloworld-mdb` quickstart uses JMS and EJB Message-Driven Bean (MDB) to create and deploy JMS topic and queue resources in {productName}.
Expand Down
1 change: 1 addition & 0 deletions helloworld-singleton/README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ include::../shared-doc/attributes.adoc[]
:level: Beginner
:technologies: EJB, Singleton
:openshift: true
:portedToGlow: true

[abstract]
The `helloworld-singleton` quickstart demonstrates an EJB Singleton Bean that is instantiated once and maintains state for the life of the session.
Expand Down
1 change: 1 addition & 0 deletions helloworld-ws/README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ include::../shared-doc/attributes.adoc[]
:level: Beginner
:technologies: JAX-WS
:openshift: true
:portedToGlow: true

[abstract]
The `helloworld-ws` quickstart demonstrates a simple Hello World application, bundled and deployed as a WAR, that uses JAX-WS to say Hello.
Expand Down
1 change: 1 addition & 0 deletions helloworld/README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ include::../shared-doc/attributes.adoc[]
:level: Beginner
:technologies: Servlet
:openshift: true
:portedToGlow: true

[abstract]
The `helloworld` quickstart demonstrates the use of Servlet 6 and is a good starting point to verify {productName} is configured correctly.
Expand Down
1 change: 1 addition & 0 deletions hibernate/README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ include::../shared-doc/attributes.adoc[]
:level: Intermediate
:technologies: Hibernate
:openshift: true
:portedToGlow: true

[abstract]
The `hibernate` quickstart demonstrates how to use Hibernate ORM 6 over Persistence, using Bean Validation, and Enterprise Beans.
Expand Down
1 change: 1 addition & 0 deletions http-custom-mechanism/README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ include::../shared-doc/attributes.adoc[]
:author: Darran Lofthouse
:level: Intermediate
:technologies: EJB, Security
:portedToGlow: true

[abstract]
The `http-custom-mechanism` quickstart demonstrates how to implement a custom HTTP authentication mechanism that can be registered with Elytron.
Expand Down
1 change: 1 addition & 0 deletions jaxrs-client/README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ include::../shared-doc/attributes.adoc[]
:level: Beginner
:technologies: JAX-RS
:openshift: true
:portedToGlow: true

[abstract]
The `jaxrs-client` quickstart demonstrates Jakarta REST Client API, which interacts with a Jakarta REST Web service that runs on {productName}.
Expand Down
1 change: 1 addition & 0 deletions jaxrs-jwt/README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ include::../shared-doc/attributes.adoc[]
:author: Martin Mazanek
:level: Intermediate
:technologies: JAX-RS, Security
:portedToGlow: true

[abstract]
The `jaxrs-jwt` quickstart demonstrates a Jakarta REST secured application using JSON Web Tokens (JWT) with Elytron.
Expand Down
1 change: 1 addition & 0 deletions jaxws-ejb/README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ include::../shared-doc/attributes.adoc[]
:author: R Searls
:level: Beginner
:technologies: JAX-WS
:portedToGlow: true

[abstract]
The `jaxws-ejb` quickstart is a working example of the web service endpoint created from an EJB.
Expand Down
1 change: 1 addition & 0 deletions jaxws-retail/README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ include::../shared-doc/attributes.adoc[]
:author: R Searls
:level: Beginner
:technologies: JAX-WS
:portedToGlow: true

[abstract]
The `jaxws-retail` quickstart is a working example of a simple web service endpoint.
Expand Down
1 change: 1 addition & 0 deletions jsonp/README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ include::../shared-doc/attributes.adoc[]
:level: Beginner
:technologies: CDI, JSF, JSON-P
:openshift: true
:portedToGlow: true

[abstract]
The `jsonp` quickstart demonstrates how to use the JSON-P API to produce object-based structures and then parse and consume them as stream-based JSON strings.
Expand Down
1 change: 1 addition & 0 deletions kitchensink/README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ include::../shared-doc/attributes.adoc[]
:level: Intermediate
:technologies: CDI, JSF, JPA, EJB, JAX-RS, BV
:openshift: true
:portedToGlow: true

[abstract]
The `kitchensink` quickstart demonstrates a localized {javaVersion} web-enabled database application using JSF, CDI, EJB, JPA, and Bean Validation.
Expand Down
1 change: 1 addition & 0 deletions logging/README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ include::../shared-doc/attributes.adoc[]
:author: Joel Tosi
:level: Intermediate
:technologies: Logging
:portedToGlow: true

[abstract]
The `logging` quickstart demonstrates how to configure different logging levels in {productName}.
Expand Down
1 change: 1 addition & 0 deletions mail/README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ include::../shared-doc/attributes.adoc[]
:author: Joel Tosi
:level: Beginner
:technologies: JavaMail, CDI, JSF
:portedToGlow: true

[abstract]
The `mail` quickstart demonstrates how to send and receive emails using CDI and JSF and with custom Mail provider configured in {productName}.
Expand Down
1 change: 1 addition & 0 deletions microprofile-config/README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ include::../shared-doc/attributes.adoc[]
:author: Martin Stefanko
:level: Beginner
:technologies: MicroProfile Config
:portedToGlow: true

[abstract]
The `microprofile-config` quickstart demonstrates the use of the MicroProfile Config specification in {productName}.
Expand Down
1 change: 1 addition & 0 deletions microprofile-fault-tolerance/README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ https://github.com/quarkusio/quarkus/tree/master/docs/src/main/asciidoc
// Needed to correctly render on GitHub
:productName: WildFly
:standalone-server-type: microprofile
:portedToGlow: true

include::../shared-doc/attributes.adoc[]

Expand Down
1 change: 1 addition & 0 deletions microprofile-health/README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ include::../shared-doc/attributes.adoc[]
:post-helm-install-actions: ../microprofile-health/expose-management-port.adoc
:extra-openshift-testing-actions: ../microprofile-health/expose-management-port.adoc
:extra-openshift-test-arguments: -Dserver.management.host=https://$(oc get route {artifactId}-management --template='{{ .spec.host }}')
:portedToGlow: true

[abstract]
The `microprofile-health` quickstart demonstrates the use of the MicroProfile Health specification in {productName}.
Expand Down
1 change: 1 addition & 0 deletions microprofile-jwt/README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ include::../shared-doc/attributes.adoc[]
:author: Darran Lofthouse
:level: Intermediate
:technologies: JWT, Security, MicroProfile
:portedToGlow: true

[abstract]
The `microprofile-jwt` quickstart demonstrates the use of the MicroProfile JWT specification in {productName}.
Expand Down
1 change: 1 addition & 0 deletions microprofile-lra/README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ include::../shared-doc/attributes.adoc[]
:author: Martin Stefanko
:level: Beginner
:technologies: MicroProfile LRA
:portedToGlow: true

[abstract]
The `microprofile-lra` quickstart demonstrates the use of the MicroProfile LRA specification in {productName}.
Expand Down
1 change: 1 addition & 0 deletions microprofile-openapi/README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ include::../shared-doc/attributes.adoc[]
:author: Paul Ferraro
:level: Beginner
:technologies: MicroProfile OpenAPI
:portedToGlow: true

[abstract]
This guide demonstrate how to use the MicroProfile OpenAPI functionality in {productName} to expose an OpenAPI document for a simple REST application.
Expand Down
1 change: 1 addition & 0 deletions microprofile-reactive-messaging-kafka/README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ include::../shared-doc/attributes.adoc[]
:author: Kabir Khan
:level: Beginner
:technologies: MicroProfile Reactive Messaging
:portedToGlow: true

[abstract]
The `microprofile-reactive-messaging-kafka` quickstart demonstrates the use of the MicroProfile Reactive Messaging specification backed by Apache Kafka in {productName}.
Expand Down
1 change: 1 addition & 0 deletions microprofile-rest-client/README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ include::../shared-doc/attributes.adoc[]
:author: Martin Stefanko
:level: Beginner
:technologies: MicroProfile REST Client
:portedToGlow: true

[abstract]
The `microprofile-rest-client` quickstart demonstrates the use of the MicroProfile REST Client specification in {productName}.
Expand Down
1 change: 1 addition & 0 deletions numberguess/README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ include::../shared-doc/attributes.adoc[]
:level: Beginner
:technologies: CDI, JSF
:openshift: true
:portedToGlow: true

[abstract]
The `numberguess` quickstart demonstrates the use of CDI (Contexts and Dependency Injection) and JSF (JavaServer Faces) in {productName}.
Expand Down
1 change: 1 addition & 0 deletions remote-helloworld-mdb/README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ include::../shared-doc/attributes.adoc[]
:level: Intermediate
:technologies: JMS, EJB, MDB
:openshift: true
:portedToGlow: true

:standalone-server-type: full
:archiveType: war
Expand Down
1 change: 1 addition & 0 deletions servlet-async/README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ include::../shared-doc/attributes.adoc[]
:level: Intermediate
:technologies: Asynchronous Servlet, CDI, EJB
:openshift: true
:portedToGlow: true

[abstract]
The `servlet-async` quickstart demonstrates how to use asynchronous servlets to detach long-running tasks and free up the request processing thread.
Expand Down
1 change: 1 addition & 0 deletions servlet-filterlistener/README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ include::../shared-doc/attributes.adoc[]
:level: Intermediate
:technologies: Servlet Filter, Servlet Listener
:openshift: true
:portedToGlow: true

[abstract]
The `servlet-filterlistener` quickstart demonstrates how to use Servlet filters and listeners in an application.
Expand Down
1 change: 1 addition & 0 deletions servlet-security/README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ include::../shared-doc/attributes.adoc[]
:level: Intermediate
:technologies: Servlet, Security
:openshift: true
:portedToGlow: true

[abstract]
The `servlet-security` quickstart demonstrates the use of Jakarta EE declarative security to control access to Servlets and Security in {productName}.
Expand Down
51 changes: 51 additions & 0 deletions shared-doc/build-and-run-the-quickstart-with-bootable-jar.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ You can use the WildFly JAR Maven plug-in to build a {productName} bootable JAR

The quickstart `pom.xml` file contains a Maven profile named *bootable-jar* which configures the bootable JAR building:

ifndef::portedToGlow[]
[source,xml,subs="attributes+"]
----
<profile>
Expand Down Expand Up @@ -34,6 +35,56 @@ The quickstart `pom.xml` file contains a Maven profile named *bootable-jar* whic
</build>
</profile>
----
endif::portedToGlow[]
ifdef::portedToGlow[]
[source,xml,subs="attributes+"]
----
<profile>
<id>bootable-jar</id>
<build>
<plugins>
<plugin>
<groupId>org.wildfly.plugins</groupId>
<artifactId>wildfly-maven-plugin</artifactId>
<configuration>
<discover-provisioning-info>
<version>${version.server}</version>
</discover-provisioning-info>
<bootable-jar>true</bootable-jar>
<!--
Rename the output war to ROOT.war before adding it to the server, so that the
application is deployed in the root web context.
-->
<name>ROOT.war</name>
<add-ons>...</add-ons>
</configuration>
<executions>
<execution>
<goals>
<goal>package</goal>
</goals>
</execution>
</executions>
</plugin>
...
</plugins>
</build>
</profile>
----
The plugin uses https://github.com/wildfly/wildfly-glow[WildFly Glow] to discover the feature packs and layers required to run the application, and provisions a server containing those layers.

[NOTE]
====
This uses a pre-release of version 5.0.0 of the wildfly-maven-plugin providing the Glow functionality. The version is set in the pom's `pluginManagement` section.
====

If you get an error or the server is missing some functionality which cannot be auto-discovered, you can download the https://github.com/wildfly/wildfly-glow/releases/tag[WildFly Glow CLI] and run the following command to see more information about what add-ons are available:

[source,shell]
----
wildfly-glow show-add-ons
----
endif::portedToGlow[]

.Procedure

Expand Down
Loading

0 comments on commit b410bbf

Please sign in to comment.