[jboss-dev-forums] [Design of Management Features on JBoss] - EJB3 managed component names and types
ips
do-not-reply at jboss.com
Wed Jun 10 18:23:45 EDT 2009
"refs-ejb3-ejblink.ear-EjbLink1Bean-metrics-instance"
"refs-ejb3-ejblink.ear-EjbLink1Bean-metrics-invocation"
A dash doesn't seem like the best choice as a delimiter here, since dashes will commonly be found in the ear filename and may even be found in the ejb name. It makes the component name difficult to parse or query on. I suggest using '|' or '/' as the delimiter instead, e.g.:
"refs-ejb3-ejblink.ear/EjbLink1Bean/metrics-instance"
This allows me to easily parse out the three tokens that comprise the name.
As for the last portion of the name, this seems redundant to be included in every name. Why not make it part of the component type name instead, e.g.:
name: refs-ejb3-ejblink.ear/EjbLink1Bean
type: EJB3:SLSB-instance
Even better, why can't the instance and invocation metrics all be exposed by the same component type, so there would be a single component per EJB?
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4236851#4236851
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4236851
More information about the jboss-dev-forums
mailing list