[jboss-dev-forums] [Design of POJO Server] - Re: Getting runtime component name from attachment

alesj do-not-reply at jboss.com
Mon Oct 8 19:49:35 EDT 2007


I this what we want?

  |    @ManagementProperty(name="max-pool-size", managed = true)
  |    @ManagementObjectRef(name = "JBossManagedConnectionPool", type = "LocalTx")
  |    public void setMaxSize(int maxSize)
  |    {
  |       this.maxPoolSize = maxSize;
  |    }
  | 
Since this way we override the underlying simple values of the attachment metadata with information about managed object ref.

"adrian at jboss.org" wrote : In fact, it should be on each ManagedProperty since there is no guarantee
  | one ManagedObject maps to one context on the bus.
  | e.g. The DataSource maps to four JMX MBeans (ConnectionManager, ConnectionPool,
  | ConnectionFactory, JNDIBinder).
How else to bind a property with a runtime component that is not mapped to declared MO's runtime component (if exists)?
And at the same time preserve the underlying attachment's values.


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

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



More information about the jboss-dev-forums mailing list