[jboss-dev-forums] [Design of POJO Server] - Re: mbean to bean conversion guide

alesj do-not-reply at jboss.com
Fri Oct 19 08:52:14 EDT 2007


"scott.stark at 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. ;-)

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4096951#4096951

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4096951



More information about the jboss-dev-forums mailing list