Viewing/Changing content on app CLI JBoss EAP

All

Intro

Can I read the content from an application using the cli command? Yes.

Reading content with CLI command

[standalone@localhost:9990 /] /deployment=hibernate.war:read-content(path=index.html)
{
    "outcome" => "success",
    "result" => {"uuid" => "06519ccf-24d4-4b6f-9be1-aa859f98a538"},
    "response-headers" => {"attached-streams" => [{
        "uuid" => "06519ccf-24d4-4b6f-9be1-aa859f98a538",
        "mime-type" => "text/html"
    }]}
}

But to read you will need <attachment display>

attachment display --operation=/deployment=hibernate.war:read-content(path=index.html)

The content will be shown as:

<!-- Plain HTML page that kicks us into the app -->

<html>
<head>
<meta http-equiv="Refresh" content="0; URL=index.jsf">
</head>

REFs

    Original question

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s