---
title: Configuring the Application Server
slug: support-en/mNSM-configuring-the-application-server
description: Learn how to configure your application server settings in two different ways in this comprehensive document. Use the jboss-cli tool to run commands and update settings directly, or edit the XML file utilized by the application server. Find out how to adj
docTags: 
createdAt: 2022-01-18T19:30:15.000Z
---

Application server settings can be done in two ways: via jboss-cli or by editing the xml file.
There is no technical difference in any of the options, and the choice is up to each
administrator. Below are both configuration examples.

!!! Warning "ATTENTION"

```Text
Pay attention to the variables to change them to suit your environment settings.
```

## Configuring server via jboss-cli

Connect to the jboss-cli (assuming the server is running) by executing the command below:

```shell
[root@server /tmp]# /opt/wildfly/bin/jboss-cli.sh --connect
[standalone@localhost:9990 /]
```

Then run the following commands replacing the variable contents with your environment setting.

```shell
[standalone@localhost:9990 /] /system-property=mongodb.host:add(value="citmongo")
{"outcome" => "success"}
[standalone@localhost:9990 /]/system-property=mongodb.port:add(value="27017")
{"outcome" => "success"}
[standalone@localhost:9990 /]/system-property=mongodb.user:add(value="admin")
{"outcome" => "success"}
[standalone@localhost:9990 /]/system-property=mongodb.password:add(value="admin")
{"outcome" => "success"}
[standalone@localhost:9990 /]/system-property=citsmart.protocol:add(value="http")
{"outcome" => "success"}
[standalone@localhost:9990 /]/system-property=citsmart.host:add(value="my.citsmart.com")
{"outcome" => "success"}
[standalone@localhost:9990 /]/system-property=citsmart.port:add(value="8080")
{"outcome" => "success"}
[standalone@localhost:9990 /]/system-property=citsmart.context:add(value="citsmart")
{"outcome" => "success"}
[standalone@localhost:9990 /]/system-property=citsmart.login:add(value="citsmart.local\\\consultor")
{"outcome" => "success"}
[standalone@localhost:9990 /]/system-property=citsmart.password:add(value="senhaConsultor")
{"outcome" => "success"}
[standalone@localhost:9990 /]/system-property=citsmart.inventory.id:add(value="citsmartinventory")
{"outcome" => "success"}
[standalone@localhost:9990 /]/system-property=citsmart.evm.id:add(value="citsmartevm")
{"outcome" => "success"}
[standalone@localhost:9990 /]/system-property=citsmart.evm.enable:add(value=true)
{"outcome" => "success"}
[standalone@localhost:9990 /]/system-property=citsmart.inventory.enable:add(value=true)
{"outcome" => "success"}
[standalone@localhost:9990 /]/system-property=citsmart.port.updateparameters:add(value="9000")
{"outcome" => "success"}
[standalone@localhost:9990 /]/system-property=citsmart.inventory.pagelength:add(value="100")
{"outcome" => "success"}
[standalone@localhost:9990 /]/system-property=rhino.scripts.directory:add(value="")
{"outcome" => "success"}
[standalone@localhost:9990 /]/system-property=jboss.as.management.blocking.timeout:add(value="600")
{"outcome" => "success"}
[standalone@localhost:9990 /]/system-property=org.quartz.properties:add(value="$\{jboss.server.config.dir\}/quartz.properties")
{"outcome" => "success"}
[standalone@localhost:9990 /]/system-property=snmp.oid.repository.directory:add(value="/opt/templates")
{"outcome" => "success"}
```

After the settings, to exit the CLI, type `quit`

```shell
[standalone@localhost:9990 /] quit
[root@server /tmp]#
```

## Configuring the server via XML

To edit the XML file used by the wildfly by hand, enter the directory:

```shell
[root@server /tmp]# /opt/wildfly/standalone/configuration
```

Edit the stantalone-full.xml file and include the CITSmart logo XML configuration right after
the clause below:

```xml
<server xmlns="urn:jboss:domain:6.0">
    <extensions>
        <extension module="org.jboss.as.clustering.infinispan"/>
        <extension module="org.jboss.as.connector"/>
		...
</extensions>
```

After the coniguration closure `</extensions>` include the extract below:

```xml
<system-properties>
    <property name="mongodb.host" value="citmongo"/>
    <property name="mongodb.port" value="27017"/>
    <property name="mongodb.user" value="admin"/>
    <property name="mongodb.password" value="admin"/>
    <property name="citsmart.protocol" value="http"/>
    <property name="citsmart.host" value="my.citsmartcloud.com"/>
    <property name="citsmart.port" value="8080"/>
    <property name="citsmart.context" value="citsmart"/>
    <property name="citsmart.login" value="citsmart.local\\\consultor"/>
    <property name="citsmart.password" value="senhaConsultor"/>
    <property name="citsmart.inventory.id" value="citsmartinventory"/>
    <property name="citsmart.evm.id" value="citsmartevm"/>
    <property name="citsmart.evm.enable" value="false"/>
    <property name="citsmart.inventory.enable" value="false"/>
    <property name="rhino.scripts.directory" value=""/>
    <property name="jboss.as.management.blocking.timeout" value="600"/>
    <property name="citsmart.port.updateparameters" value="9000"/>
    <property name="citsmart.inventory.pagelength" value="100"/>
    <property name="org.quartz.properties" value="${jboss.server.config.dir}/quartz.properties"/>
    <property name="snmp.oid.repository.directory" value="/opt/templates"/>
</system-properties>
```

After configuring, restart the service to implement the changes:

```shell
[root@server /tmp]# systemctl status wildfly
```

## Configuring Firebase

1. The following file has the function of allowing the application to communicate with the application with messaging via Push whenever a new ticket is created, suspended, reactivated, reclassified and closed;
2. For that, it must be placed in one of the Citsmart repository folders;
3. After uploading the package, save the path to use it as instructed in: Configuring the application server.
