Okay, I think I see what you mean, for example in the JB4
TransactionManagerService.java there's a managed attribute set up
as follows:

   /**
    * mbean get-set pair for field xidFactory
    * Get the value of xidFactory
    * @return value of xidFactory
    *
    * @jmx.managed-attribute description="The factory object that 
supplies xids.  This must implement the XidFactory interface"
    *                        access="read-write"
    *                        value="jboss.tm:service=XidFactory"
    */
   public ObjectName getXidFactory()
   {
      return xidFactory;
   }

I see the value is an ObjectName as you indicated. I had seen that 
when I looked through the .xdt files for the JBoss JMX stuff, but 
didn't understand what they were used for.

So, just to be clear, you're using the 'value' parameter here to set 
the value of an attribute to an ObjectName and you're assuming that 
action means that you want to set up an explicit dependency between 
two mbeans.

I guess I'm just thinking that if you have a feature built into JBoss 
that can be utilized with some kind of XDoclet tag, why wouldn't you 
put it in to promote the use of that feature? Are you not using it 
because you don't philosphically believe it's a good idea? Or just 
because you prefer to make explicit ObjectName references?

I'm probably going to toy with how to modify the XDoclet template to 
add the Class level tag for anonymous depends as an excercise, just 
wanted to know a little more.

Thanks for the response. Cheers.

-Neal

On Friday 28 February 2003 11:06 pm, David Jencks wrote:
> There's a jmxdoclet subtask to create *-service.xml files from your
> marked up mbeans.  The values are taken from the @tags.  You can
> (for 4 anyway) use it for both standard and xmbeans.  ObjectName
> valued attributes are generated as depends elements.  I don't
> recall adding a feature for anonymous depends since I try never to
> use them.  You could put them as class level tags if you need them.
>
> This is shown off in the xdoclet samples and used to build jb4
> transaction-service.xml.
>
> david jencks
>
> On 2003.02.28 22:16 Neal Sanche wrote:
> > Hi All,
> >
> > I've been using the JBoss JMX extensions lately to create a
> > jboss-service.xml for putting mbeans in a .sar file for
> > deployment. Now I'd also like to set up an mbean dependency. Is
> > there a way to do this with merge files, or other XDoclet voodoo?
> > I know, sounds more like a question to be posed to the XDoclet
> > groups, but since there seems to be an undercurrent to support
> > the JBoss extensions to XDoclet modules within the JBoss group, I
> > thought I'd ask here instead.
> >
> > I'd also accept the 'write it, you lazy *ss' answer. :)
> >
> > Cheers.
> >
> > -Neal
> >
> >
> > -------------------------------------------------------
> > This sf.net email is sponsored by:ThinkGeek
> > Welcome to geek heaven.
> > http://thinkgeek.com/sf
> > _______________________________________________
> > JBoss-user mailing list
> > [EMAIL PROTECTED]
> > https://lists.sourceforge.net/lists/listinfo/jboss-user
>
> -------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> _______________________________________________
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to