[jboss-dev-forums] [Design of POJO Server] - Re: ServiceMetaData has the most recent dependencies/attribu

scott.stark@jboss.org do-not-reply at jboss.com
Fri Feb 22 01:38:44 EST 2008


"adrian at jboss.org" wrote : 
  | The "depends optional attribute" only exists in the xml, it doesn't exist
  | in the ServiceMetaData model, so it's not the same as the examples I listed
  | for the POJO stuff.
Its equivalent to creating an attribute with a ServiceDependencyValueMetaData as its value. 

  |       ServiceAttributeMetaData attr = new ServiceAttributeMetaData();
  |       attr.setName("TransactionManagerFactory");
  |       ServiceDependencyValueMetaData dependencyValue = new ServiceDependencyValueMetaData();
  |       dependencyValue.setDependency(getTransactionManagerServiceName());
  |       dependencyValue.setProxyType("attribute");
  |       attr.setValue(dependencyValue);
  | 


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

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



More information about the jboss-dev-forums mailing list