Wildfly – Connect to remote server

Some commands to use from jboss-cli script:

Deploy app

#Connect to remote server (default port is 9990)
jboss-cli.sh --connect controller=host:port

#deploy
jboss-cli.sh --connect --command="deploy target/demo-1.0-SNAPSHOT.war"

#undeploy
jboss-cli.sh --connect --command="undeploy $WAR_NAME"

# List deployments (cli command)
deployment-info

# Shutdown server
jboss-cli.sh --controller=localhost:9990 --connect --command=:shutdown

Bye

References

 

Install Oracle Driver Jboss Wildfly 14

Create new module with this structure and files, into «$WILDFLY_HOME\modules\system\layers\base«:

+---com
|   \---oracle
|       \---main
|            module.xml
|            ojdbc7-12.1.0.2.jar

Into the module.xml, set a name of the module and put it into the same folder structure «com.oracle» with the jar file.

<?xml version="1.0" encoding="UTF-8"?>
<module xmlns="urn:jboss:module:1.1" name="com.oracle">
    <resources>
        <resource-root path="ojdbc7-12.1.0.2.jar"/>
    </resources>
    <dependencies>
        <module name="javax.api"/>
        <module name="javax.transaction.api"/>
    </dependencies>
</module>
Seguir leyendo