In JBoss EAP 6.x, below are details of cli command and its response, to get the path of the deoployed archive file (picked from deployment-scanner subsystem)
cli -
/deployment=helloworld.war:read-attribute(name=content)
response -
{
"outcome" => "success",
"result" => [{
"path" => "deployments\\cluster-demo.war",
"relative-to" => "jboss.server.base.dir",
"archive" => true
}]
}
As we can see above response is giving proper deployment path.
But when I run the same cli command in JBoss EAP 7.1, it is giving me below response ---
{
"outcome" => "success",
"result" => [{"hash" => bytes {
0xe4, 0x51, 0x63, 0x04, 0x61, 0x2d, 0xd6, 0x29,
0xac, 0xeb, 0xe1, 0x62, 0x85, 0x3e, 0x52, 0x78,
0x50, 0x13, 0x82, 0x6e
}}]
}
With the above response, I need to prepare the deployment path by adding those bytes using java string builder. Also the path string prepared is different than the one we are receiving in JBoss EAP 6.x ( path of deployment folder, identified by deployment-scanner subsystem).
Below is the prepared path --
e4/516304612dd629acebe162853e52785013826e/content
Above path is relative to JBoss/standalone/data/content folder, so the whole path is --
<JBoss EAP installation directory>\standalone\data\content
here content is the deployed file. Please note that here the file is without extension, but I open the same in winrar I can see the content of actual archive file.
My concern is, is there any cli command available in JBoss EAP 7.x, through which I can get the same response, as I am getting in JBoss EAP 6.x.
Please help!!
Thanks Rahul