Questions tagged [jboss-cli]

jBoss/WildFly command line interface

The AS 7 Command Line Interface (CLI) is a command line management tool for the AS 7 domain or a standalone server. It allows a user to connect to the AS7 domain controller or a standalone server and execute management operations available through the AS7 detyped management model. Depending on the operation system, the CLI is launched using jboss-admin.sh or jboss-admin.bat located in the AS7 bin directory.

91 questions
15
votes
3 answers

How to add https-listener to WildFly's default-server?

I'm following the tutorial from: https://github.com/jbosstm/quickstart/tree/master/XTS/ssl Using jboss-cli successfully added the…
Boris Pavlović
  • 63,078
  • 28
  • 122
  • 148
13
votes
1 answer

JBoss: How to ignore Press any key to continue, without editing the jboss-cli.bat?

We are trying to read the JBoss status using the jboss-cli.bat command. jboss-cli.bat -c --command=":read-attribute(name=server-state)" > "$env:JBOSS_HOME\JbossServerStatus.txt" Storing the status in the TXT file. Since "Press any key to continue"…
Chandru M
  • 133
  • 1
  • 7
13
votes
3 answers

How to set up messaging subsystem using CLI in Wildfly

Does anyone have an example script for setting up the messaging subsystem in Wildfly using CLI? The perfect example would be the CLI needed to take a server running the standalone.xml, and after running the CLI script it has the messaging subsystem…
DJ Spiess
  • 983
  • 2
  • 9
  • 26
7
votes
3 answers

Wildfly MySQL datasource: service jboss.jdbc-driver.mysql (missing) dependents

I'm using Wildfly 10. At first I tried to create datasource via CLI. A command deploy mysql-connector-java-6.0.4.jar was executed well. /subsystem=datasources:installed-drivers-list shows that driver was installed { "driver-name" =>…
evgeny_s
  • 391
  • 1
  • 6
  • 17
6
votes
0 answers

Wildfly 10 JMS message content

I have an application that is using multiple JMS Queues. Problem with the application is that it is almost not creating any logs. I would like to avoid stopping the application, updating the sources and starting it once more (however, if there will…
Pawel P
  • 131
  • 5
5
votes
2 answers

How to deploy a module/provider/spi via scripting?

Is there a way to deploy modules to Wildfly via scripting (as in, without manually modifying XML files)? I know about the jboss-cli.sh command to add module but is there a way to either directly modify my standalone.xml/domain.xml or do some…
inanutshellus
  • 9,683
  • 9
  • 53
  • 71
5
votes
0 answers

How to print and refer to system properties with JBoss CLI Wildfly?

Isn't it possible to echo system variables in JBoss ClI? jboss.server.config.dir jboss.home.dir From https://docs.jboss.org/author/display/WFLY8/Command+line+parameters the table under the heading "Standalone".
LuckyLuke
  • 47,771
  • 85
  • 270
  • 434
4
votes
2 answers

How to create JMS queue in WildFly 17 with jboss-cli

I am running WildFly 17 in domain mode. We have been adding JMS queues manually, but I would rather add the configurations as part of the deployment script. I can create servers and datasources with jboss-cli, but I can't seem to make any headway…
Aaron
  • 874
  • 3
  • 17
  • 34
4
votes
6 answers

jboss-cli : How do I read one specific system property using jboss-cli?

I'm new to jboss-cli and working through the 'jboss-cli recipes'. Question How do I read one specific property using jboss-cli? E.g. jboss.home.dir (e.g. "-Djboss.home.dir=/path/to/my/jboss") Xmx ("-Xmx=4G") Context The "CLI Recipes"…
user331465
  • 2,984
  • 13
  • 47
  • 77
3
votes
1 answer

How can I start an embedded server in jboss cli from java code?

I want to check some cli commands if they are valid from java. I cant use the config file I'm currently running on. Additionally I can't use a running Wildfly at all, since I would have to do reloads every now and then. So I want to use offline-cli…
Jbartmann
  • 1,459
  • 4
  • 24
  • 42
2
votes
1 answer

WildFly jboss-cli.sh add datasource Mysql with useSSL=false

I'm adding MySQL as a datasource to wildfly I can insert the useSSL=false parameter to the connection-url tag via jboss-cli.sh this works perfectly but when I launch the server it tells me to explicitly set useSSL=false…
Pako
  • 339
  • 2
  • 8
  • 20
2
votes
1 answer

How can you add "." as a resource-root to a module using jboss-cli?

Not sure there's a way to do what I want with jboss-cli, so looking for confirmation. If I connect to EAP using jboss-cli and run this command to add a module: [standalone@localhost:9999 /] module add --name="test" --resources="." Failed to locate…
Robin Coe
  • 750
  • 7
  • 28
2
votes
2 answers

Why JBoss Wildfly server can't use 9999 as its manage port?

If I changed manage port to 9999 for Wildfly 10, then I can't use jboss-cli.bat/sh to stop this server. Is there some restrict of using 9999
Hongyu Jiang
  • 41
  • 2
  • 8
1
vote
0 answers

WildFly - How to get the main configured JSF version with "jboss-cli"?

I would like to get the main configured JSF version but [standalone@localhost:9990 /] /subsystem=jsf:list-active-jsf-impls leads only to { "outcome" => "success", "result" => ["main"] } Moreover no solution with [standalone@localhost:9990…
Toru
  • 905
  • 1
  • 9
  • 28
1
vote
1 answer

Wildfly/JBoss CLI: How can I set a variable to the result of an expression?

I have an expression that reads the user-name attribute of a datasource: [standalone@localhost:9990 /] /subsystem=datasources/xa-data-source=MYDATASOURCE:read-attribute(name=user-name) { "outcome" => "success", "result" => "DS_USERNAME" } I…
rarewt
  • 13
  • 4
1
2 3 4 5 6 7