Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Fabric3 comes with simple but powerful command-line utility that can be used for managing contributions in SCA a domain. To run the Admin CLI. follow the steps given below.

...

3. Configure Admin CLI by adding your domain configuration to /config/settings.xml:

Code Block

<?xml version="1.0" encoding="UTF-8"?>
<settings>
     <domains>
         <domain name="default" url="http://127.0.0.1:7001/management" username="user" password="pass"/>
     </domains>
</settings>


ings>
The URL points to the server IP and port - for WebLogic the default values are 127.0.0.1 or locahost and the port 7001.

4. Run the Admin CLI:

No Format

java -jar f3.jar

Fabric3 Administration Interface
Using default [http://localhost:8181/management]

f3>

...

6. To change managed domain to the one named <domain_name>, type:

No Format

f3>use <domain_name>

7. For getting help, type: 

No Format

f3>help

8. Admin CLI commands can also be executed from the script. To do it, prepare your script containing Admin CLI commands according to the following rules:

...

Then run your script by typing:

No Format

java -jar f3.jar r <script_name>