Bugs item #640195, was opened at 2002-11-18 09:24 You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=376685&aid=640195&group_id=22866
Category: JBossServer Group: v3.0 Rabbit Hole >Status: Closed >Resolution: Fixed Priority: 5 Submitted By: Marcin Gryszkalis (dagoon) Assigned to: Scott M Stark (starksm) Summary: bug in optionDRefreshRate default Initial Comment: Bug in default setting of optionDRefreshRate in org.jboss.metadata.ConfigurationMetaData Specs says that default value for optionDRefreshRate is 30 seconds. In ConfigurationMetaData there's private long optionDRefreshRate = 30000; (vaue in miliseconds because it's used as parameter to Thread.sleep()) But it's read this way: String refresh = getElementContent(getOptionalChild(element, "optiond-refresh-rate"), Long.toString(optionDRefreshRate)); optionDRefreshRate = stringToRefreshRate(refresh); and in stringToRefreshRate there's convesrion from seconds to miliseconds (becasue jboss.xml value is expected to be in seconds). So, by default optionDRefreshRate is set to 30000*1000 It can be fixed in two ways: change declaration initialization to "optionDRefreshRate = 30" (which seems a bit inconsistent because the value is of ptionDRefreshRate is expected to be in miliseconds) or change reading to String refresh = etElementContent(getOptionalChild(element, "optiond-refresh-rate"), Long.toString(optionDRefreshRate/1000)); either should be commented. ---------------------------------------------------------------------- >Comment By: Scott M Stark (starksm) Date: 2002-11-24 20:43 Message: Logged In: YES user_id=175228 Fixed in all branches. ---------------------------------------------------------------------- Comment By: Marcin Gryszkalis (dagoon) Date: 2002-11-24 15:38 Message: Logged In: YES user_id=267848 bug caused by starksm's commit from Sep 14 (rev 1.32 in MAIN) ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=376685&aid=640195&group_id=22866 ------------------------------------------------------- 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
