-
15. Re: Management of IronJacamar
mr.bee Nov 7, 2012 8:46 AM (in response to jesper.pedersen)Hi Jesper,
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?
regards,
Nabeel Ahmed
-
16. Re: Management of IronJacamar
jesper.pedersen Nov 9, 2012 8:06 AM (in response to mr.bee)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
-
17. Re: Management of IronJacamar
mr.bee Nov 15, 2012 4:00 AM (in response to jesper.pedersen)HI Jesper,
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
regards,
Nabeel Ahmed
-
18. Re: Management of IronJacamar
jesper.pedersen Nov 15, 2012 7:29 AM (in response to mr.bee)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
-
19. Re: Management of IronJacamar
mr.bee Nov 15, 2012 8:10 AM (in response to jesper.pedersen)I am getting confused, can you explain a bit more?
-
20. Re: Management of IronJacamar
jesper.pedersen Nov 15, 2012 8:57 AM (in response to mr.bee)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.
-
21. Re: Management of IronJacamar
muhammad.kamran Nov 15, 2012 9:52 AM (in response to jesper.pedersen)Jasper !
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.
-
22. Re: Management of IronJacamar
jesper.pedersen Nov 15, 2012 10:09 AM (in response to muhammad.kamran)No - a servlet will have to use the DMR API.
-
23. Re: Management of IronJacamar
muhammad.kamran Nov 15, 2012 10:28 AM (in response to jesper.pedersen)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. ?
Thanks
-
24. Re: Management of IronJacamar
mr.bee Nov 16, 2012 6:30 AM (in response to muhammad.kamran)How to expose this in DMR?
Please help?
thanks