This content has been marked as final.
Show 7 replies
-
1. Re: mbean to bean conversion guide
alesj Oct 18, 2007 4:24 PM (in response to starksm64)"scott.stark@jboss.org" wrote:
http://wiki.jboss.org/wiki/Wiki.jsp?page=ConvertingMBeanServiceToMCBean
What about some tool to do this? :-) -
2. Re: mbean to bean conversion guide
starksm64 Oct 18, 2007 8:23 PM (in response to starksm64)its called eclipse.
-
3. Re: mbean to bean conversion guide
alesj Oct 19, 2007 2:43 AM (in response to starksm64)"scott.stark@jboss.org" wrote:
its called eclipse.
:-)
Any guideline (as a new wiki page) on how exactly you do this - in Eclipse?
I'll check then if something similar exists in IDEA. -
4. Re: mbean to bean conversion guide
starksm64 Oct 19, 2007 8:29 AM (in response to starksm64)The wiki I referenced is the guide. In any ide, open your x-service.xml, create a x-beans.xml and follow the conversion logic.
-
5. Re: mbean to bean conversion guide
alesj Oct 19, 2007 8:51 AM (in response to starksm64)"scott.stark@jboss.org" wrote:
The wiki I referenced is the guide. In any ide, open your x-service.xml, create a x-beans.xml and follow the conversion logic.
OK, thought I was missing something more advanced. :-)
Is there some other 'fancy' way of doing this?
e.g.ServiceDeployment sd = readSD("my-service.xml"); Transformer t = new Service2BeanJAXBTransformer(); KernelDeployment kd = t.transform(KernelDeployment.class, sd); write("my-beans.xml", kd);
Having this with JAXB should be easy, right?
Probably just providing some mapping of service elements to beans elements?
And pushing this stuff into various plugins (plain Java.main, Eclipse, IDEA, Netbeans, ...) would not be bad either. ;-) -
6. Re: mbean to bean conversion guide
alesj Oct 19, 2007 8:56 AM (in response to starksm64)What about using something like Smooks - the stuff that ESB guys use to do all sorts of transformations?
http://milyn.codehaus.org/Smooks -
7. Re: mbean to bean conversion guide
starksm64 Oct 19, 2007 9:13 AM (in response to starksm64)All possible, but it should be described first, and then whatever obfuscated encoding of that knowledge we want to create can be done as needed.