-
Jul 22nd, 2008, 09:48 AM
#1
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules