connection pool for JMX?

I have a web app, From with in the web app, I would talk JMX to some other process.

Now the question are

1) DO I need to store the one/same JMX connection and use that for all the requests. if so, how do I store it.a) Using a singleton object or 2) Store the JMX connection object in the servlet context .

2) If I have only one connection, how does it works on multiple requests (you know web apps, every request a thread)

I appriciate your response

[480 byte] By [vpalkondaa] at [2007-11-26 22:53:42]
# 1

Hi,

Yes, you should reuse the same connection if possible. See:

http://forum.java.sun.com/thread.jspa?threadID=5130314&messageID=9467809#9467809

MBeanServerConnections are thread safe. You can use the same MBeanServerConnection

in parallel in multiple threads. The requests will be sent in parallel (it's not a FIFO).

Best regards,

-- daniel

JMX, SNMP, Java, etc...

http://blogs.sun.com/jmxetc

dfuchsa at 2007-7-10 12:17:08 > top of Java-index,Core,Monitoring & Management...
# 2
thanks daniel
vpalkondaa at 2007-7-10 12:17:08 > top of Java-index,Core,Monitoring & Management...