[jboss-user] [JBoss Messaging] - Re: How to get list of all registred DS names (Object) in JBoss programmatically.

Peter Johnson do-not-reply at jboss.com
Wed Jul 20 09:14:11 EDT 2011

Peter Johnson [http://community.jboss.org/people/peterj] created the discussion

"Re: How to get list of all registred DS names (Object) in JBoss programmatically."

To view the discussion, visit: http://community.jboss.org/message/616397#616397

I hope that by DS you mean data source. You can look up the mbeans created for the datasource. One of the mbeans created is named "jboss.jca:name=XXX,service=DataSourceBinding" where XXX is the datasource name. So looking up the mbeans whose names fit this pattern will return one mbean for each data source. You can then query the mbean name to get the datsource name.

This will get you started with mbean lookup:
 http://community.jboss.org/docs/DOC-9901 http://community.jboss.org/wiki/HowDoIGetRemoteAccessToMyMBean
 http://community.jboss.org/thread/52375 http://community.jboss.org/thread/52375
 http://community.jboss.org/message/251586#251586 http://community.jboss.org/message/251586

Reply to this message by going to Community

Start a new discussion in JBoss Messaging at Community

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20110720/a8fef3aa/attachment.html 

More information about the jboss-user mailing list