Announcement Announcement Module
Collapse
No announcement yet.
passing Date parameters via JMX console Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • passing Date parameters via JMX console

    Hi,

    This is a general JMX question, and really has nothing to do with Spring's JMX support, so feel free to post a humbling reply, delete the post, or whatever....

    I have a method which takes a Date parameter and is available via the JMX console. Whenever, I try to provide a value for this parameter, I get a ParseException, presumably because the date I'm providing is not in the correct format.

    My questions are:
    • How can I find out what the default expected date format is?
    • Can I change this format to the format I'd like to use (e.g. 'yyyy-MM-dd')?

    Of course I could simply change the parameter to a String and convert it to a Date within the method body, but I'd rather leave the parameter type as a Date if possible.

    Thanks in advance,
    DM
Working...
X