Actually i have read the deployed resource adapters using DMR API, but it only provide me the names of archive, runtime names and status or we can read the resource adapters and their connection definitions from standalone.xml file.
What i want is, to get the config properties from *-ra.xml file available in the *.rar file even if standalone.xml file did not have any connection definition defined. Just deployed the rar file in deployments
Is there a way to get that?
You will have to hook into connector/src/main/java/org/jboss/as/connector/services/mdr/AS7MetadataRepository.java and expose that in DMR. It would be a nice feature, so feel free to hack on it
I am not able to get the instance of AS7MetadataRepository.java.
What will be the code sample to get the instance and how to make connection with Jboss ?
My goal is to make standalone application to access the deployed resource adapters, actually i want to load the config properities from *-ra.xml file
Its a service within AS with a name of ConnectorServices.IRONJACAMAR_MDR, so you need to add a dependency on it from your code and get it injected - ...addDependency(ConnectorServices.IRONJACAMAR_MDR, AS7MetadataRepository.class, service.getMdrInjector()).
First you need to hook up the MDR to the DMR model under subsystem/jca/mdr, and make operations available to query it. Then the domain model infrastructure will take care of the rest, and you can have your standalone client access it that way.
I would start here - https://community.jboss.org/wiki/DetypedDescriptionOfTheAS7ManagementModel
I am getting confused, can you explain a bit more?
My point is that you can't access the service directly from a standalone client. You have to have a layer in-between - in this case DMR.
Like you can't access JCA controlled resources remotely, so you have to add a layer in-between, like a servlet or an EJB.
Follow a specific JCA operation, like :test-connection, to see how it should be done.
Can it be used directly in a servlet. instead of going the DMR way ?. by adding dependency in servelet to ConnectorServices.IRONJACAMAR_MDR and then query mdr methods to get the resource adaptor configuration information.
No - a servlet will have to use the DMR API.
Thanks . i have been using the DMR through jboss-cli.bat.
"Its a service within AS with a name of ConnectorServices.IRONJACAMAR_MDR, so you need to add a dependency on it from your code and get it injected - ...addDependency(ConnectorServices.IRONJACAMAR_MDR, AS7MetadataRepository.class, service.getMdrInjector())."
where to have it coded then. ?
How to expose this in DMR?