Hi Scott, Yeh, we could do this, but see later.
There is no real reason why this shouldn't be a valid ObjectName jboss.j2ee:service=Ejb,jndi-name=java:/blah other than the spec of course. Only the first : has any relevence for parsing. The other reserved characters =*, are similar although , can't be included in a value because it is the terminator. For interoperability with other JMX implementations we can do the escaping during serialization/deserialzation. BUT, if everthing goes to plan, the 1.5 JREs will include javax.management.ObjectName.class and it will be Sun's implementation. Maybe we should sub-class, but that has difficulties when it comes to interoperability. Regards, Adrian >From: "Scott M Stark" <[EMAIL PROTECTED]> >Reply-To: [EMAIL PROTECTED] >To: <[EMAIL PROTECTED]> >Subject: [JBoss-dev] JMX ObjectNames and useful property encoding >Date: Thu, 19 Sep 2002 19:13:10 -0700 > >The JMX ObjectName syntax does not allow for many useful key/value >pairs found commonly in a J2EE platform. We have run up against this >already >when using the EJB JNDI name as a property in an ObjectName. The simplest >example is a JNDI name that is a URL(jnp://xzy.dom.com/ejb/myhome). > >Now we got around this by coming up with a notion of escaping the invalid >chars, but this requires that context in which the ObjectName is being >created >to know that a given key/value pair may be invalid. It also makes the >key/value >pair not available in its non-escaped form via >ObjectName.getKeyProperty(String property). >Is there a way we could build an ObjectName using the ObjectName(String >domain, Hashtable table) >ctor and have the escaping added to the string format of the name but be >able to access the "native" form of the value? > >xxxxxxxxxxxxxxxxxxxxxxxx >Scott Stark >Chief Technology Officer >JBoss Group, LLC >xxxxxxxxxxxxxxxxxxxxxxxx > > >------------------------------------------------------- >This sf.net email is sponsored by:ThinkGeek >Welcome to geek heaven. >http://thinkgeek.com/sf >_______________________________________________ >Jboss-development mailing list >[EMAIL PROTECTED] >https://lists.sourceforge.net/lists/listinfo/jboss-development _________________________________________________________________ Join the world’s largest e-mail service with MSN Hotmail. http://www.hotmail.com ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development