Menu

Can MC4J set a string attribute to null ?

Help
2005-07-14
2013-04-25
  • Sebastian Gonzalez Oyuela

    Is it possible to set a null value to a string attribute instead of the empty string ?

     
    • Greg Hinkle

      Greg Hinkle - 2005-07-15

      Not given the current interface, but a good idea for the future.

       
    • Jess Holle

      Jess Holle - 2005-08-05

      I've not seen a JMX console that allows null vs empty strings to be distinguished.  I therefore uniformly convert from one to the other in all MBean String setters.  Except where leading or trailing whitespace is of potential interest I also trim the string first lest a user accidentally hit the spacebar and get a different result.

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.