ObjectName

From Resin 3.0

(Difference between revisions)
Jump to: navigation, search
Line 19: Line 19:
  
 
   resin:type=class-name,name=identifier[,context]
 
   resin:type=class-name,name=identifier[,context]
 +
 +
For example, the unique [ServerMXBean] in a Resin instance has the name:
 +
 +
  resin:type=ServerMXBean
 +
 +
A [cluster] with an id="app-tier" would have the name:
 +
 +
  resin:type=ClusterMXBean,name=app-tier
 +
 +
And a [web-app] with an id='/foo' in the virtual host 'www.foo.com' would have the name:
 +
 +
  resin:type=WebAppMXBean,name=/foo,Host=www.foo.com
 +
 +
== Contexts ==
 +
 +
Currently, Resin has two contexts, <em>Host</em> and <em>WebApp</em>.

Revision as of 03:38, 4 August 2006


The [JMX] ObjectName describes the name of a managed object.

 resin:type=WebApp,name=/foo,host=wiki.caucho.com

The ObjectName has two main sections:

  1. A naming domain (e.g. "resin:")
  2. An association list of key,value properties

domain

The domain is used as a namespace to distinguish naming conventions. So "resin" uses the Resin naming conventions. "j2ee" uses J2EE naming conventions.

Resin conventions

Each objects managed by Resin have the following convention:

 resin:type=class-name,name=identifier[,context]

For example, the unique [ServerMXBean] in a Resin instance has the name:

 resin:type=ServerMXBean

A [cluster] with an id="app-tier" would have the name:

 resin:type=ClusterMXBean,name=app-tier

And a [web-app] with an id='/foo' in the virtual host 'www.foo.com' would have the name:

 resin:type=WebAppMXBean,name=/foo,Host=www.foo.com

Contexts

Currently, Resin has two contexts, Host and WebApp.

Personal tools