[jboss-dev-forums] [Design of POJO Server] - Re: property values in ManagementViewImpl.applyTemplate

alex.loubyansky@jboss.com do-not-reply at jboss.com
Thu Dec 20 02:26:01 EST 2007


I had a problem with registering managed objects for MCF under their name (i.e.) jndi-name. The template info defines management interface, i.e. it creates managed objects and properties. Which are re-used to create different MCF's. The JNDI name is a value of a managed property. So, it can't be used in the template info as MO's name.

Currently, ManagedConnectionFactoryParserDeployer in build(...) method has the following hack
            if(deployment.getDeployments() != null)
  |             {
  |                for(ManagedConnectionFactoryDeploymentMetaData mcf : deployment.getDeployments())
  |                {
  |                   ManagedObject mo = moFactory.initManagedObject(mcf, null, null);
  |                   if (mo != null)
  |                   {
  |                      // mcf.getClass().getName(), mo.getName() returns JndiName
  |                      // which won't work in the DsDataSourceTemplateInfo
  |                      managedObjects.put(mcf.getClass().getName(), mo);
  |                   }
  |                }
  |             }

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

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



More information about the jboss-dev-forums mailing list