Have a optional-attribute-name attribute for ur depends clause, something like


  | <depends optional-attribute-name="dependBean">objectname</depends>
  | 

And create a setter and getter for dependBean

  | private ObjectName dependObjName;
  | public ObjectName getDependBean() {
  |         return this.dependBean;
  | }
  | 
  | and then use it as
  |       <Depend>MBean obj = (<depend>MBean) 
getServer().getAttribute(this.dependBean);
  | 
  | 
  | 

Check out jboss-service.xml for similar examples



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

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


-------------------------------------------------------
This SF.Net email is sponsored by Sleepycat Software
Learn developer strategies Cisco, Motorola, Ericsson & Lucent use to 
deliver higher performing products faster, at low TCO.
http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to