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(a)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#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...