The optional-attribute-name is just a very poor name for something simple:

The dependency works as usual, and in addition, the value of the dependency 
(usually the ObjectName of the MBean you depend on, is "injected" to the 
writeable attribute that you specify in the optional-attribute-name attribute.

So in your case you could have in your mbean an attribute calls 
"DataSourceObjectName":

void setDataSourceObjectName(ObjectName name);
ObjectName getDataSourceObjectName();

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

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


-------------------------------------------------------
This SF.Net email is sponsored by Yahoo.
Introducing Yahoo! Search Developer Network - Create apps using Yahoo!
Search APIs Find out how you can build Yahoo! directly into your own
Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to