How to get non-HTML result from a MX4J based server

MyCoy Zhang <[email protected]> Mon, 5 Feb 2018 18:50:43 -0800
Newsgroups gmane.comp.java.mx4j.user
Message-ID <CAHmJO70=99WSWr-W_uCiXYzPAKbynmNeS4AP5U_Qi4WEbvsdCg@mail.gmail.com>
--===============5821307690792491743==
Content-Type: multipart/alternative; boundary="94eb2c06ee32e17b6a0564823f79"

--94eb2c06ee32e17b6a0564823f79
Content-Type: text/plain; charset="UTF-8"

Hello, everyone:

I'm trying to parse the JMX result from a MX4J-based server.
Right now, I can only get HTML-based result from the web-page or curl.

But HTML is hard to parse, and  it's necessary to further go into every
link to pull information.
JSON- or XML-based *complete* result is referable. But after some
exploring, I cannot get neither JSON nor XML result.

In the official document, I see that, *http://host:port/serverbydomain* can
produce XML-based result. But for me, it's HTML result.

I see there is some suggestion to use the "Jolokia" project.
But for me this is not an alternative, because the company's environment is
bundled with MX4J. It's highly automatic environment, hard to change and
very likely I don't have the permission to change it.

So, could anyone provide some suggestions to derive complete (not
containing sub-links) JSON or XML result from a MX4J-based server?
Or, could anyone confirm that, MX4J simply cannot do this.

Thanks

--94eb2c06ee32e17b6a0564823f79
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><span style=3D"color:rgb(34,34,34);font-family:arial,sans-=
serif;font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font=
-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start=
;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;ba=
ckground-color:rgb(255,255,255);text-decoration-style:initial;text-decorati=
on-color:initial;float:none;display:inline">Hello, everyone:</span><br styl=
e=3D"color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px;font=
-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-w=
eight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-trans=
form:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,=
255);text-decoration-style:initial;text-decoration-color:initial"><br style=
=3D"color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px;font-=
style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-we=
ight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transf=
orm:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,2=
55);text-decoration-style:initial;text-decoration-color:initial"><span styl=
e=3D"color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px;font=
-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-w=
eight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-trans=
form:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,=
255);text-decoration-style:initial;text-decoration-color:initial;float:none=
;display:inline">I&#39;m trying to parse the JMX result from a MX4J-based s=
erver.</span><br style=3D"color:rgb(34,34,34);font-family:arial,sans-serif;=
font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-varia=
nt-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-=
indent:0px;text-transform:none;white-space:normal;word-spacing:0px;backgrou=
nd-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-col=
or:initial"><span style=3D"color:rgb(34,34,34);font-family:arial,sans-serif=
;font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-vari=
ant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text=
-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;backgro=
und-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-co=
lor:initial;float:none;display:inline">Right now, I can only get HTML-based=
 result from the web-page or curl.=C2=A0</span><div style=3D"color:rgb(34,3=
4,34);font-family:arial,sans-serif;font-size:12.8px;font-style:normal;font-=
variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-sp=
acing:normal;text-align:start;text-indent:0px;text-transform:none;white-spa=
ce:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoratio=
n-style:initial;text-decoration-color:initial"><br><div>But HTML is hard to=
 parse, and=C2=A0 it&#39;s necessary to further go into every link to pull =
information.=C2=A0<br>JSON- or XML-based<span>=C2=A0</span><b>complete</b><=
span>=C2=A0</span>result is referable. But after some exploring, I cannot g=
et neither JSON nor XML result.<br><br>In the official document, I see that=
,<span>=C2=A0</span><i>http://host:port/<wbr>serverbydomain</i><span>=C2=A0=
</span>can produce XML-based result. But for me, it&#39;s HTML result.<br><=
br>I see there is some suggestion to use the &quot;Jolokia&quot; project.<b=
r>But for me this is not an alternative, because the company&#39;s environm=
ent is bundled with MX4J. It&#39;s highly automatic environment, hard to ch=
ange and very likely I don&#39;t have the permission to change it.<br><br>S=
o, could anyone provide some suggestions to derive complete (not containing=
 sub-links) JSON or XML result from a MX4J-based server?<br>Or, could anyon=
e confirm that, MX4J simply cannot do this.<br><br>Thanks</div></div><br></=
div>

--94eb2c06ee32e17b6a0564823f79--


--===============5821307690792491743==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
--===============5821307690792491743==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Mx4j-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mx4j-user

--===============5821307690792491743==--