[Management Development] - Re: Simple Example using ManagedObjects and ProfileService
by emuckenhuber
"rareddy" wrote :
| anonymous wrote : where you could extend the current DataSource templates and add specific properties. For this you would not need any specific deployers integration code.
| Yeah, this sounds like what I need to do. Is there any code sample you can point me towards.
|
Sure. Basically ProfileService DeploymentTemplates are based on ManagedProperties as well. It consists of a Template which actually generates a deployment and a TemplateInfo which contains the values which can be modified and are exposed to JOPR.
https://svn.jboss.org/repos/jbossas/branches/Branch_5_x/connector/src/mai...
https://svn.jboss.org/repos/jbossas/branches/Branch_5_x/connector/src/mai...
Those are the ones related to ConnectionFactories. Unfortunately this seems a bit messy, also the handling of config-properties is a bit weird.
Maybe you only need to extend the TemplateInfo and add some different default values.
You can also look at jboss-jca.deployer/META-INF/jca-deployers-jboss-beans.xml - on how we instantiate the templates, those should automatically appear in the ManagementView.
"rareddy" wrote :
| anonymous wrote : In case this has to be exposed differently to JOPR e.g. under a different category then it gets more complicated.
| Yes, we want to tie this into JOPR plugin to under a different component type that are specific to Teiid. That is reason I am trying to expose these beans to Profile Service.
|
Hmm this might need some changes on our side, when creating the managed objects based on the meta data. I assume the difference between a normal ConnectionFactory deployment and a Teiid one are some specific properties in the deployment descriptor ?
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4265571#4265571
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4265571
16 years, 4 months
[Management Development] - Re: Simple Example using ManagedObjects and ProfileService
by rareddy
Thanks for the reply Emanuel.
I just realized I mixed-up two different (closely related by functionality) concepts together. Templates are different from management objects. Sorry about that. Seems like my need is to expose properties in both ends. Like when the template is called I need to expose properties to create a new connection factory. At the same time when somebody looks at properties on a created connection factory expose those properties along with their values.
anonymous wrote : where you could extend the current DataSource templates and add specific properties. For this you would not need any specific deployers integration code.
Yeah, this sounds like what I need to do. Is there any code sample you can point me towards.
anonymous wrote : In case this has to be exposed differently to JOPR e.g. under a different category then it gets more complicated.
Yes, we want to tie this into JOPR plugin to under a different component type that are specific to Teiid. That is reason I am trying to expose these beans to Profile Service.
Thanks again for your help.
Ramesh..
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4265565#4265565
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4265565
16 years, 4 months
[Management Development] - Re: Simple Example using ManagedObjects and ProfileService
by emuckenhuber
"rareddy" wrote :
| I do need write couple deployers for Teiid specific artifacts, I will use the above approach.
|
| Is there anyway I can attach additional attachment metadata for existing deployers? For example, for RAR deployer add more metadata that defines management of some custom properties specific to that connector than that of those already defined for that RAR using its template, like "NoTxConnectionFactoryTemplate". What I am trying to do is expose "config" properties in ra.xml that are specific to my connector to profile service.
Hmm, well if you want to provide a template for creating a teiid specific configuration we have a notion of DeploymentTemplates - where you could extend the current DataSource templates and add specific properties.
For this you would not need any specific deployers integration code.
In case this has to be exposed differently to JOPR e.g. under a different category then it gets more complicated.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4265553#4265553
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4265553
16 years, 4 months
[Management Development] - Re: Simple Example using ManagedObjects and ProfileService
by rareddy
anonymous wrote : Hmm, this is difficult to say since i don't really know what you are trying to achieve and the expected behavior for ProfileService.
The existing architecture of our application (Teiid) currently does not depend on MC based POJO framework, I trying to see if I can manage services in there with out lot of re-work to work under AS and profile service.
anonymous wrote : In general we create ManagedObjects based on the attachment meta data in the deployers. So in case you have your own deployers you should be able to explicitly add and expose your ManagedObjects, which is the preferred way.
I do need write couple deployers for Teiid specific artifacts, I will use the above approach.
Is there anyway I can attach additional attachment metadata for existing deployers? For example, for RAR deployer add more metadata that defines management of some custom properties specific to that connector than that of those already defined for that RAR using its template, like "NoTxConnectionFactoryTemplate". What I am trying to do is expose "config" properties in ra.xml that are specific to my connector to profile service.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4265530#4265530
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4265530
16 years, 4 months