Re: [JBoss-dev] XML Adaptor to JMX
Hi - Original Message - From: Jason Dillon [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, June 22, 2001 9:49 PM Subject: Re: [JBoss-dev] XML Adaptor to JMX Object[] invokeXML( Document ); I am not sure that an array of objects in this case would be very useful, and would lead to a possible memory issue for large invokations in this manner... in extereme cases that is. This will only return what was already returned from the MBeanServer. As long as this is in the same JVM there is not problem, isn't it ? Why clutter up the method name with an XML suffix when you are passing in XML specific objects? Just to make it clear the difference between the MBeanServer.invoke() and the XMLAdaptor.invokeXML(). The XML document/element contains the commands to be executed on the MBeanServer (get/setAttribute, invoke, createMBean etc.). Object invokeXML( Element ); Note that MBeanServer's invoke() is not the same. I am not sure what you mean by this. From my point of view the XML contains the JMX commands and the XML adaptor is just the one converting it from XML to MBeanServer calls. MBeanServer.invoke() is to invoke an operation whereas XMLAdaptor.invokeXML() is to hand over the XML data to execute on the MBeanServer according to its content. I am not sure that a create-mbean method was requested. It might be nice, but I would clearify with Marc, as to what he is expecting. It was just an example to clarify my ideas. If you really want to have an XML adaptor (like the HTML adaptor comming from JMX-RI) you have to support all or at least most of the JMX MBeanServer interface. Maybe I missed the boat, please let me know. If you do add creation, you might want to drop the -mean suffix, since everything in this context is mbean specific. Maybe best would be to name them like they are on the MBeanServer (or at least similar) to make it easier to guess. But I am open to any suggestions or requests. BTW is it necessary to return the return values in an XML form ? I would assume no, though it might be nice to export a method to convert a return value into xml. I think that this might be used initialy in configuration files and controlled by java, thus returning in xml would cause the application to be forced to parse the result, which might not be desired. And you have to convert the Object(s) into XML which could be tricky. Andy ;-) ___ Jboss-development mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-development
RE: [JBoss-dev] XML Adaptor to JMX
On Fri, 22 Jun 2001, marc fleury wrote: |Might want to make it | |invoke name=... method=... | argument type=... value=.../ yes good idea, sorry but no: argument type=.../argument allowing a nested null/ tag my 2c. Trevor ___ Jboss-development mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-development
Re: [JBoss-dev] XML Adaptor to JMX
On Fri, 22 Jun 2001, marc fleury wrote: Since people really want to help. Any taker on a simple XML Adaptor to JMX invocations? invoke name=... method=... arguments=commaSeparatedStrings signature=.../ will result in a server.invoke(new ObjectName(name), method, Object[] (from args), String[] (from signature)); Isn't this what JAX-RPC is all about? Perhaps we should figure out what the standard will be before we implement our own solution. SOAP? Aaron ___ Jboss-development mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-development
RE: [JBoss-dev] XML Adaptor to JMX
well yes, the idea is to move towards webservices as fast as we can. I want to 'get something' that will work with XML. It will need to be compliant down the road. I want something in, ASAP, Open Source development, it can be as fancy as you want down the road, marcf | Isn't this what JAX-RPC is all about? Perhaps we should figure |out what the standard will be before we implement our own solution. |SOAP? | |Aaron | | |___ |Jboss-development mailing list |[EMAIL PROTECTED] |http://lists.sourceforge.net/lists/listinfo/jboss-development ___ Jboss-development mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] XML Adaptor to JMX
Since people really want to help. Any taker on a simple XML Adaptor to JMX invocations? invoke name=... method=... arguments=commaSeparatedStrings signature=.../ will result in a server.invoke(new ObjectName(name), method, Object[] (from args), String[] (from signature)); any takers? that should be an hour job org.jboss.jmx.XMLAdaptorMBean org.jboss.jmx.XMLAdaptor takes an invoke(String) Look at the RMI stuff for the other semantics (create etc) regards _ Marc Fleury, Ph.D [EMAIL PROTECTED] _ ___ Jboss-development mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-development
Re: [JBoss-dev] XML Adaptor to JMX
Might want to make it invoke name=... method=... argument type=... value=.../ ... /invoke This should be fairly simply to do, what would be it used for? --jason On Fri, 22 Jun 2001, marc fleury wrote: Since people really want to help. Any taker on a simple XML Adaptor to JMX invocations? invoke name=... method=... arguments=commaSeparatedStrings signature=.../ will result in a server.invoke(new ObjectName(name), method, Object[] (from args), String[] (from signature)); any takers? that should be an hour job org.jboss.jmx.XMLAdaptorMBean org.jboss.jmx.XMLAdaptor takes an invoke(String) Look at the RMI stuff for the other semantics (create etc) regards _ Marc Fleury, Ph.D [EMAIL PROTECTED] _ ___ Jboss-development mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-development ___ Jboss-development mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-development
RE: [JBoss-dev] XML Adaptor to JMX
|Might want to make it | |invoke name=... method=... | argument type=... value=.../ yes good idea, | ... |/invoke | |This should be fairly simply to do, what would be it used for? just a proxy that understands XML messages in input, just an adaptor very useful (you'll see) marcf | |--jason | | |On Fri, 22 Jun 2001, marc fleury wrote: | | Since people really want to help. | | Any taker on a simple XML Adaptor to JMX invocations? | | invoke name=... method=... arguments=commaSeparatedStrings | signature=.../ | | will result in a | | server.invoke(new ObjectName(name), method, Object[] (from |args), String[] | (from signature)); | | | any takers? that should be an hour job | | org.jboss.jmx.XMLAdaptorMBean | org.jboss.jmx.XMLAdaptor | | takes an invoke(String) | | Look at the RMI stuff for the other semantics (create etc) | | regards | | _ | Marc Fleury, Ph.D | [EMAIL PROTECTED] | _ | | | | ___ | Jboss-development mailing list | [EMAIL PROTECTED] | http://lists.sourceforge.net/lists/listinfo/jboss-development | | | |___ |Jboss-development mailing list |[EMAIL PROTECTED] |http://lists.sourceforge.net/lists/listinfo/jboss-development ___ Jboss-development mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-development
RE: [JBoss-dev] XML Adaptor to JMX
Might also want to expose methods like: void invoke(Document) and Object invoke(Element) Where the first would assume that there are more than one invoke's and the second would assume that the passed in element is a invoke and it should return the value of server.invoke(). If no one else volunteers I will do it, though I am working on re-designing the build system at work, so I won't really have time until monday. If you need something sooner, I could probably get something pumped out. I think it might take a little longer than an hour to think it through properly and code it. --jason On Fri, 22 Jun 2001, marc fleury wrote: |Might want to make it | |invoke name=... method=... | argument type=... value=.../ yes good idea, | ... |/invoke | |This should be fairly simply to do, what would be it used for? just a proxy that understands XML messages in input, just an adaptor very useful (you'll see) marcf | |--jason | | |On Fri, 22 Jun 2001, marc fleury wrote: | | Since people really want to help. | | Any taker on a simple XML Adaptor to JMX invocations? | | invoke name=... method=... arguments=commaSeparatedStrings | signature=.../ | | will result in a | | server.invoke(new ObjectName(name), method, Object[] (from |args), String[] | (from signature)); | | | any takers? that should be an hour job | | org.jboss.jmx.XMLAdaptorMBean | org.jboss.jmx.XMLAdaptor | | takes an invoke(String) | | Look at the RMI stuff for the other semantics (create etc) | | regards | | _ | Marc Fleury, Ph.D | [EMAIL PROTECTED] | _ | | | | ___ | Jboss-development mailing list | [EMAIL PROTECTED] | http://lists.sourceforge.net/lists/listinfo/jboss-development | | | |___ |Jboss-development mailing list |[EMAIL PROTECTED] |http://lists.sourceforge.net/lists/listinfo/jboss-development ___ Jboss-development mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-development ___ Jboss-development mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-development
RE: [JBoss-dev] XML Adaptor to JMX
|-Original Message- |From: [EMAIL PROTECTED] |[mailto:[EMAIL PROTECTED]]On Behalf Of Jason |Dillon |Sent: Friday, June 22, 2001 11:19 PM |To: [EMAIL PROTECTED] |Subject: RE: [JBoss-dev] XML Adaptor to JMX | | |Might also want to expose methods like: | | void invoke(Document) | |and | | Object invoke(Element) yes absolutely, this is the right signature in fact marcf | |Where the first would assume that there are more than one invoke's and |the second would assume that the passed in element is a invoke and it |should return the value of server.invoke(). | |If no one else volunteers I will do it, though I am working on |re-designing the build system at work, so I won't really have time until |monday. | |If you need something sooner, I could probably get something pumped out. |I think it might take a little longer than an hour to think it through |properly and code it. | |--jason | | |On Fri, 22 Jun 2001, marc fleury wrote: | | |Might want to make it | | | |invoke name=... method=... | | argument type=... value=.../ | | yes good idea, | | | ... | |/invoke | | | |This should be fairly simply to do, what would be it used for? | | just a proxy that understands XML messages in input, just an adaptor | | very useful (you'll see) | | marcf | | | | |--jason | | | | | |On Fri, 22 Jun 2001, marc fleury wrote: | | | | Since people really want to help. | | | | Any taker on a simple XML Adaptor to JMX invocations? | | | | invoke name=... method=... arguments=commaSeparatedStrings | | signature=.../ | | | | will result in a | | | | server.invoke(new ObjectName(name), method, Object[] (from | |args), String[] | | (from signature)); | | | | | | any takers? that should be an hour job | | | | org.jboss.jmx.XMLAdaptorMBean | | org.jboss.jmx.XMLAdaptor | | | | takes an invoke(String) | | | | Look at the RMI stuff for the other semantics (create etc) | | | | regards | | | | _ | | Marc Fleury, Ph.D | | [EMAIL PROTECTED] | | _ | | | | | | | | ___ | | Jboss-development mailing list | | [EMAIL PROTECTED] | | http://lists.sourceforge.net/lists/listinfo/jboss-development | | | | | | | |___ | |Jboss-development mailing list | |[EMAIL PROTECTED] | |http://lists.sourceforge.net/lists/listinfo/jboss-development | | | ___ | Jboss-development mailing list | [EMAIL PROTECTED] | http://lists.sourceforge.net/lists/listinfo/jboss-development | | | |___ |Jboss-development mailing list |[EMAIL PROTECTED] |http://lists.sourceforge.net/lists/listinfo/jboss-development ___ Jboss-development mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-development
Re: [JBoss-dev] XML Adaptor to JMX
Hi Marc In general an JMX Adaptor is to access a JMX MBeanServer from a remote site. In this case I don't think that is what you want ? The call is made locally and therefore the XML Adaptor just translate the XML data into an MBeanServer call and returns the value back wrapped into XML. I would like to do it, is tomorrow (Saturday) ok ? Have fun - Andy - Original Message - From: marc fleury [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, June 22, 2001 8:52 PM Subject: RE: [JBoss-dev] XML Adaptor to JMX |Might want to make it | |invoke name=... method=... | argument type=... value=.../ yes good idea, | ... |/invoke | |This should be fairly simply to do, what would be it used for? just a proxy that understands XML messages in input, just an adaptor very useful (you'll see) marcf | |--jason | | |On Fri, 22 Jun 2001, marc fleury wrote: | | Since people really want to help. | | Any taker on a simple XML Adaptor to JMX invocations? | | invoke name=... method=... arguments=commaSeparatedStrings | signature=.../ | | will result in a | | server.invoke(new ObjectName(name), method, Object[] (from |args), String[] | (from signature)); | | | any takers? that should be an hour job | | org.jboss.jmx.XMLAdaptorMBean | org.jboss.jmx.XMLAdaptor | | takes an invoke(String) | | Look at the RMI stuff for the other semantics (create etc) | | regards | | _ | Marc Fleury, Ph.D | [EMAIL PROTECTED] | _ | | | | ___ | Jboss-development mailing list | [EMAIL PROTECTED] | http://lists.sourceforge.net/lists/listinfo/jboss-development | | | |___ |Jboss-development mailing list |[EMAIL PROTECTED] |http://lists.sourceforge.net/lists/listinfo/jboss-development ___ Jboss-development mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-development ___ Jboss-development mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-development
Re: [JBoss-dev] XML Adaptor to JMX
How's about this: Object[] invokeXML( Document ); and Object invokeXML( Element ); Note that MBeanServer's invoke() is not the same. The document in the first example would look like this: jmx create-mbean object-name domain=... property key=... value=.../ ... /object-name constructor attribute type=... value=.../ ... /constructor attribute name=... value=.../ /create-mbean ... attribute name=... value=.../ attribute name=.../ ... invoke operation=... attribute type=... value=.../ ... /invoke ... /jmx Each element in the document returns an object which is null if nothing is returned or return type is void. The second approach just works with parts like create-mbean, attribute,invoke etc. What to do you think ? BTW is it necessary to return the return values in an XML form ? Andy - Original Message - From: marc fleury [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, June 22, 2001 9:27 PM Subject: RE: [JBoss-dev] XML Adaptor to JMX |-Original Message- |From: [EMAIL PROTECTED] |[mailto:[EMAIL PROTECTED]]On Behalf Of Jason |Dillon |Sent: Friday, June 22, 2001 11:19 PM |To: [EMAIL PROTECTED] |Subject: RE: [JBoss-dev] XML Adaptor to JMX | | |Might also want to expose methods like: | | void invoke(Document) | |and | | Object invoke(Element) yes absolutely, this is the right signature in fact marcf | |Where the first would assume that there are more than one invoke's and |the second would assume that the passed in element is a invoke and it |should return the value of server.invoke(). | |If no one else volunteers I will do it, though I am working on |re-designing the build system at work, so I won't really have time until |monday. | |If you need something sooner, I could probably get something pumped out. |I think it might take a little longer than an hour to think it through |properly and code it. | |--jason | | |On Fri, 22 Jun 2001, marc fleury wrote: | | |Might want to make it | | | |invoke name=... method=... | | argument type=... value=.../ | | yes good idea, | | | ... | |/invoke | | | |This should be fairly simply to do, what would be it used for? | | just a proxy that understands XML messages in input, just an adaptor | | very useful (you'll see) | | marcf | | | | |--jason | | | | | |On Fri, 22 Jun 2001, marc fleury wrote: | | | | Since people really want to help. | | | | Any taker on a simple XML Adaptor to JMX invocations? | | | | invoke name=... method=... arguments=commaSeparatedStrings | | signature=.../ | | | | will result in a | | | | server.invoke(new ObjectName(name), method, Object[] (from | |args), String[] | | (from signature)); | | | | | | any takers? that should be an hour job | | | | org.jboss.jmx.XMLAdaptorMBean | | org.jboss.jmx.XMLAdaptor | | | | takes an invoke(String) | | | | Look at the RMI stuff for the other semantics (create etc) | | | | regards | | | | _ | | Marc Fleury, Ph.D | | [EMAIL PROTECTED] | | _ | | | | | | | | ___ | | Jboss-development mailing list | | [EMAIL PROTECTED] | | http://lists.sourceforge.net/lists/listinfo/jboss-development | | | | | | | |___ | |Jboss-development mailing list | |[EMAIL PROTECTED] | |http://lists.sourceforge.net/lists/listinfo/jboss-development | | | ___ | Jboss-development mailing list | [EMAIL PROTECTED] | http://lists.sourceforge.net/lists/listinfo/jboss-development | | | |___ |Jboss-development mailing list |[EMAIL PROTECTED] |http://lists.sourceforge.net/lists/listinfo/jboss-development ___ Jboss-development mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-development ___ Jboss-development mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-development
Re: [JBoss-dev] XML Adaptor to JMX
Object[] invokeXML( Document ); I am not sure that an array of objects in this case would be very useful, and would lead to a possible memory issue for large invokations in this manner... in extereme cases that is. Why clutter up the method name with an XML suffix when you are passing in XML specific objects? Object invokeXML( Element ); Note that MBeanServer's invoke() is not the same. I am not sure what you mean by this. I am not sure that a create-mbean method was requested. It might be nice, but I would clearify with Marc, as to what he is expecting. If you do add creation, you might want to drop the -mean suffix, since everything in this context is mbean specific. BTW is it necessary to return the return values in an XML form ? I would assume no, though it might be nice to export a method to convert a return value into xml. I think that this might be used initialy in configuration files and controlled by java, thus returning in xml would cause the application to be forced to parse the result, which might not be desired. --jason ___ Jboss-development mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-development