Groups
Groups
Sign in
Groups
Groups
jminix-users
Conversations
About
Send feedback
Help
Allowing JSON result in JMX invocation
88 views
Skip to first unread message
Antonio Petrelli
unread,
Jan 20, 2010, 8:37:34 AM
1/20/10
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to jminix-users
Hi all
I posted a patch to allow JSON result when requested in JMX method
invocation:
http://code.google.com/p/jminix/issues/detail?id=1
Let me know if it is ok.
Antonio
Laurent Bovet
unread,
Jan 22, 2010, 9:42:31 AM
1/22/10
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to jminix...@googlegroups.com
Hello Antonio,
Thanks alot for contributing. I will check this out when I am back from Holiday, in February.
Cheers,
Laurent
2010/1/20 Antonio Petrelli
<
antonio....@gmail.com
>
jaikit savla
unread,
Jul 24, 2012, 5:09:41 PM
7/24/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to jminix...@googlegroups.com, lbo...@windmaster.ch
Hi Laurent,
It was very easy integrating JMiniX with my webapp. I would like to get JSON result instead of HTML. Has this patch being integrated ?
Thanks,
Jaikit
Laurent Bovet
unread,
Jul 25, 2012, 10:59:22 AM
7/25/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to jminix...@googlegroups.com
Yes, since version 1.0.0
You have to specify the HTTP Accept header to get JSON result. E.g. from javascript using a XMLHttpRequest object:
xhr.setRequestHeader(
"Accept"
,
"application/json"
);
Cheers,
Laurent
2012/7/24 jaikit savla
<
jkts...@gmail.com
>
jaikit savla
unread,
Jul 25, 2012, 3:35:00 PM
7/25/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to jminix...@googlegroups.com, lbo...@windmaster.ch
I added the header but still getting html response. Is there any other header I need to add ?
Version which I am using:
<dependency> <groupId>org.jminix</groupId> <artifactId>jminix</artifactId> <version>1.0.0</version> </dependency>
Request URL:
http://XX.com/ws/jmx/
Request Method:
GET
Status Code:
200 OK
Request Headers
view source
Accept:
application/json
Accept-Charset:
ISO-8859-1,utf-8;q=0.7,*;q=0.3
Accept-Encoding:
gzip,deflate,sdch
Accept-Language:
en-US,en;q=0.8
Connection:
keep-alive
Response Header:
Accept-Ranges:
bytes
Connection:
close
Content-Encoding:
gzip
Content-Type:
text/html
Date:
Wed, 25 Jul 2012 19:29:40 GMT
Server:
Apache
Transfer-Encoding:
chunked
Laurent Bovet
unread,
Jul 25, 2012, 3:46:44 PM
7/25/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to jminix...@googlegroups.com
You try to get the root path (jmx/). This is the entry point to the graphical console which has no json representation.
Try with a path under the url jmx/servers, e.g. the url of an attribute.
2012/7/25 jaikit savla
<
jkts...@gmail.com
>
Reply all
Reply to author
Forward
0 new messages