Hi Richard,
        yes..actually i discovered that i did not put proper parameters....
<XDtClass:forAllClassTags tagName="jmx:notification">
          String notif = "<XDtClass:classTagValue tagName="jmx:notification" 
paramName="name"/>";
       </XDtClass:forAllClassTags>
 i forgot the tagName attribute in the XDtClass..... stupid mistake :-)

now everyhting is fine..

thanx a lot and regards
        marco

> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Behalf Of ext
> Richard Mixon
> Sent: 22 June, 2003 17:27
> To: [EMAIL PROTECTED]
> Subject: RE: [Xdoclet-user] custom JMX tag for generating 
> Dynamic MBean
> 
> 
> Marco,
> 
> I ended up using a rather crude technique to do it when I was 
> generating SQL queries using Xdoclet. Here it is if it helps. 
> For example to generate the WHERE clause I would always start 
> it with a constant such as:
>   where 'x' = 'x'
> Then for each real line I needed, I would use my Xdoclet 
> "<XDtClass:forAllFields.." loop to generate the following:
>      , and name = "xxx"
>      , and status = "active"
>      ...
> Sounds like you have a similar problem this approach would solve.
> 
> This worked and I did not have to write any tag handlers. In 
> retrospect I probably should have taken the time to write 
> some simple tag handlers, though I'm not sure if they would 
> help in this specific case.
> 
> Maybe someone else has a more elegant solution :).
> 
>  - Richard
> 
> 
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Behalf Of
> [EMAIL PROTECTED]
> Sent: Sunday, June 22, 2003 6:56 AM
> To: [EMAIL PROTECTED]
> Subject: RE: [Xdoclet-user] custom JMX tag for generating 
> Dynamic MBean
> 
> 
> Hi all,
>       i am trying to translate my XSL stylesheet for generating MBeans
> into an XDoclet template...
> but, since i m quite new, i need some help on following issues:
> - i have build an array with all method parameter names.
> 
> the array will be like following
> 
> String[] array = {methodParam1, methodParam2, methodParam3};
> 
> so, comma separated...
> 
> but when is the last parameter i dont' have to add the comma..
> 
> how can i say it in XDoclet template?
> 
> what i have written so far is the following..
> 
> <XDtMethod:ifHasMethodTag tagName="jmx:managed-operation">
>              String[] <XDtMethod:methodName/>ParamNames = {
>                
> <XDtParameter:forAllMethodParams>"<XDtParameter:methodParamNam
> e/>",</XDtParameter:forAllMethodParams>};
> 
>              String[] <XDtMethod:methodName/>ParamTypes = {
>                
> <XDtParameter:forAllMethodParams>"<XDtParameter:methodParamTyp
> e/>",</XDtParameter:forAllMethodParams>};
>                            
> </XDtMethod:ifHasMethodTag>
> 
> But of course this add the comma also to the last one...
> 
> any help?
> 
> regards
>       marco
> 
> 
> 
> 
> > -----Original Message-----
> > From: ext [mailto:[EMAIL PROTECTED]
> > Sent: 21 June, 2003 19:04
> > To: [EMAIL PROTECTED]
> > Subject: [Xdoclet-user] custom JMX tag for generating Dynamic MBean
> > 
> > 
> >  hi all,
> >     i m new with XDoclet.. i  have written an application 
> >  that using XML and XSL will
> >  generate the code for a dynamic MBean
> >  when posting my code on mailing lists, i got the suggestion 
> >  to try to make it an XDoclet task..
> >  but i dont' know where to start
> >  i have read architecture docs, but it's not very clear to me
> >  
> >  anyone can provide me a starting lists of things to do to 
> >  create my own task?
> >  
> >  thanx and regards
> >     marco
> > 
> > 
> > -------------------------------------------------------
> > This SF.Net email is sponsored by: INetU
> > Attention Web Developers & Consultants: Become An INetU 
> > Hosting Partner.
> > Refer Dedicated Servers. We Manage Them. You Get 10% Monthly 
> > Commission!
> > INetU Dedicated Managed Hosting 
> http://www.inetu.net/partner/index.php
> > _______________________________________________
> > xdoclet-user mailing list
> > [EMAIL PROTECTED]
> > https://lists.sourceforge.net/lists/listinfo/xdoclet-user
> > 
> 
> 
> -------------------------------------------------------
> This SF.Net email is sponsored by: INetU
> Attention Web Developers & Consultants: Become An INetU 
> Hosting Partner.
> Refer Dedicated Servers. We Manage Them. You Get 10% Monthly 
> Commission!
> INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
> _______________________________________________
> xdoclet-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/xdoclet-user
> 
> 


-------------------------------------------------------
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
_______________________________________________
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to