Can I install modules to my wildfly through cli in domain mode?

First question is supported, to manage add module from one point to all host?

If I run my wildfly domain mode I can't run this

[[email protected]:9999 /] module add --name=com.oracle.jdbc --resources=/path/to/ojdbc6.jar --dependencies=javax.api,javax.transaction.api

answer:

The command is not available in the current context (e.g. required subsystems or connection to the controller might be unavailable).

Upvotes: 0

Views: 1602

Answers (3)

gabo34
gabo34

Reputation: 1

you need to execute jboss-cli.sh without -c or without --connect example:

[disconnected /] module add --name=com.oracle.jdbc --resources=/path/to/ojdbc6.jar --dependencies=javax.api,javax.transaction.api

then you jboss-cli.sh -c and execute host=master:reload

Upvotes: 0

ehsavoie
ehsavoie

Reputation: 3517

The module operation doesn't work in domain mode because it copies the files locally. One solution also is to use galleon to provision your modules

Upvotes: 3

I found a very good blog:

https://in.relation.to/2017/05/29/creating-patches-for-wildfly/

This works. If you will add a module to modules/com/.. then in the projekt you have to put modules/system/layers/base/com/..

So you can manage the differences of wildfly-s.

Upvotes: 0

Related Questions