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
0
votes
1 answer

JBoss CLI: add a nested element within an element without name attribute (adding "key" element inside "jwt")

Generally speaking, I am trying to add a nested element inside another one, where the parent element does not contain a name attribute: should become:
Andremoniy
  • 34,031
  • 20
  • 135
  • 241
0
votes
1 answer

Jboss cli conditional list-add

with following script I'm able to add provider to my keycloak instance. embed-server --server-config=standalone.xml /subsystem=keycloak-server:list-add(name=providers, value=module:com.example.InviteUserRequiredAction) stop-embedded-server However…
bilak
  • 4,526
  • 3
  • 35
  • 75
0
votes
1 answer

Download/Save attachment using Jboss DMR

I have a Jboss CLI command which I'm trying to implement in Java using the DMR library. The step involves downloading an attachment (display/save), however there's no documentation available anywhere. Any help is appreciated. CLI command I'm trying…
0
votes
1 answer

JBOSS CLI commands to drop/delete values from domain.xml file

Does JBoss CLI have advanced CLI commands using which we can drop/delete contents of domain.xml and host-slave.xml files? My use-case is , whenever there is a new release to my application , there are changes that happen to these two files. If there…
gdey1
  • 13
  • 3
0
votes
1 answer

Start jboss-cli only once

I want to create a bash/shell script which monitors the JVM memory usage of Wildfly by using the jboss-cli Therefor I need to get the hosts and get the Wildfly servers per host in a for loop. However, starting/connecting the jboss-cli takes several…
b100
  • 5
  • 1
0
votes
1 answer

jboss cli command to get datasource connection pool details in json format

using jboss cli to get connection pool details, gets output like this { "outcome" => "success", "result" => { "ActiveCount" => 1, "AvailableCount" => 20L } } is there a way to get the same in…
Abhinav manthri
  • 151
  • 1
  • 14
0
votes
2 answers

How can we remove a specific message from jboss mq using jboss cli

I want to remove messages from jboss mq using certain filter , as I have googled the only filter available seems to be message-id I am looking to use other properties of message, ex. JMSTimestamp I am looking for something like…
Dheeraj vats
  • 348
  • 5
  • 17
0
votes
1 answer

JBoss Cli stop a deployment until next startup

With WildFly 15.0.1 I want to use jboss-cli to stop a deployment, but leave it ready for deployment with the next startup of WildFly. So far I managed to disable or undeploy it keeping its content (same as disable). But when restarting WildFly, the…
Daniel Rodríguez
  • 548
  • 1
  • 10
  • 30
0
votes
1 answer

How to deploy an EAR file to wildfly-17.0.1 server with jboss-cli command using Java code

I want to deploy an ear file to wildfly-17.0.1 server using jboss-cli. I tried to execute the command using Java code but I'm always getting Error, here is my code: Object instance =…
khouloud
  • 417
  • 4
  • 17
0
votes
1 answer

JBoss/Wildfly - Safe and efficient log filtering - Multiple handlers logging to the same file

What is the safest and most efficient way to apply filter expressions to log messages that always occur with the same category? I have over 100 applications in one container logging to the same file. The messages I want to handle are very specific.…
Drew Nutter
  • 955
  • 8
  • 14
0
votes
1 answer

Enable/Disable Eclipselink Shared Cache via jboss-cli

I'm looking to be able to enable or disable the eclipselink shared cache (second level cache) via the jboss-cli. We generally have the shared-cache-mode set to DISABLE_SELECTIVE, but in certain deployments we would like to be able to disable it. It…
ijm3
  • 71
  • 1
  • 8
0
votes
1 answer

Infinispan cache table not auto-created with Wildfly 15+ using invalidation-cache and jdbc-store

I am attempting to use the jdbc-store type for my session cache in Wildfly 15+. I ran the following commands to configure my standalone-full-ha.xml configuration…
0
votes
1 answer

Cannot resolve system property when using referencing it using jboss-cli

I am attempting to flush a JNDI datasource using the jboss-cli, but the datasource is defined using a ${jndi.prefix} variable, and the CLI can't seem to be able to resolve it. Here is my datasource in standalone.xml:
SourMonk
  • 344
  • 1
  • 3
  • 15
0
votes
0 answers

Step by step guide to setup logback with slf4j under WildFly

Do we have any step by step guide to setup logback/slf4j with WildFly 16? I have found following article but it seem pretty old and steps are manual: https://blog.anotheria.net/devops/enable-logback-in-jboss/ I am creating a Docker image from…
adesai
  • 370
  • 3
  • 22
0
votes
1 answer

Creating DB2 XA Datasource using JBoss-CLI

I am trying to create DB2 XA Datasource using JBoss-cli using the following…