Global module Galleon layer

33 views
Skip to first unread message

Slawomir Jaranowski

unread,
Sep 19, 2025, 4:56:12 AM (8 days ago) Sep 19
to WildFly
Hi,

I have created a module and layer in Galleon feature pack, 
I would lik add module to global-modules during layer installation.

I can do it by cli command:

/subsystem=ee:list-add(name=global-modules, value={name=my.module})

How can I do the same in layer-spec/feature spec ...

By the way I can not find a documentation / examples how to translate a cli command into layer-spec/feature spec .. 

jde...@redhat.com

unread,
Sep 19, 2025, 6:46:27 AM (8 days ago) Sep 19
to Slawomir Jaranowski, WildFly
Hi,
The syntax to add to your layer would be:
    <feature spec="subsystem.ee">
        <param name="global-modules" value="[{name=a.b.c, slot=foo}, {name=d.e.f, slot=bar}]"/>
    </feature>

We don’t have documentation for such mapping, the current source of information is the WildFly src code.  But, as your case highlights, if there is no usage of a feature, it is not present.

 

From: wil...@googlegroups.com <wil...@googlegroups.com> on behalf of Slawomir Jaranowski <s.jara...@gmail.com>
Date: Friday, 19 September 2025 at 10:56
To: WildFly <wil...@googlegroups.com>
Subject: Global module Galleon layer

Sent from Outlook for Mac

--
You received this message because you are subscribed to the Google Groups "WildFly" group.
To unsubscribe from this group and stop receiving emails from it, send an email to wildfly+u...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/wildfly/b699562c-ed5e-46e5-ae7f-bed2164a6b30n%40googlegroups.com.

Slawomir Jaranowski

unread,
Sep 19, 2025, 9:40:01 AM (8 days ago) Sep 19
to jde...@redhat.com, WildFly
On Fri, 19 Sept 2025 at 12:46, jde...@redhat.com <jde...@redhat.com> wrote:
>
> Hi,
> The syntax to add to your layer would be:
> <feature spec="subsystem.ee">
> <param name="global-modules" value="[{name=a.b.c, slot=foo}, {name=d.e.f, slot=bar}]"/>
> </feature>
>

Thanks, this works in a way that all items in the list are replaced.

Is it possible to add one element to global-modules without removing
existing ones?

> We don’t have documentation for such mapping, the current source of information is the WildFly src code. But, as your case highlights, if there is no usage of a feature, it is not present.
>
>
>
> From: wil...@googlegroups.com <wil...@googlegroups.com> on behalf of Slawomir Jaranowski <s.jara...@gmail.com>
> Date: Friday, 19 September 2025 at 10:56
> To: WildFly <wil...@googlegroups.com>
> Subject: Global module Galleon layer
>
> Sent from Outlook for Mac
>
> Hi,
>
> I have created a module and layer in Galleon feature pack,
> I would lik add module to global-modules during layer installation.
>
> I can do it by cli command:
>
> /subsystem=ee:list-add(name=global-modules, value={name=my.module})
>
> How can I do the same in layer-spec/feature spec ...
>
> By the way I can not find a documentation / examples how to translate a cli command into layer-spec/feature spec ..
> --
> You received this message because you are subscribed to the Google Groups "WildFly" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to wildfly+u...@googlegroups.com.
> To view this discussion visit https://groups.google.com/d/msgid/wildfly/b699562c-ed5e-46e5-ae7f-bed2164a6b30n%40googlegroups.com.



--
Sławomir Jaranowski

jde...@redhat.com

unread,
Sep 22, 2025, 5:11:42 AM (5 days ago) Sep 22
to Slawomir Jaranowski, WildFly
Hi,
you can use the following syntax (In this case we add 2 global-modules):
<feature spec="subsystem.ee">
      <feature spec="subsystem.ee.global-modules">
        <param name="name" value=“a.b.c"/>
        <param name="slot" value=“foo"/>
      </feature>
      <feature spec="subsystem.ee.global-modules">
        <param name="name" value=“d.e.f"/>
        <param name="slot" value=“bar"/>
      </feature>
</feature>
You can use the same syntax somewhere else to add more global-modules.
Reply all
Reply to author
Forward
0 new messages