Prev: configure Spring to use jax-ws endpoint to consume XML then produce JSON
Next: Operator precedence
From: olegkon on 7 May 2010 15:41 Hi, May not be exactly for that thread. I am looking for some Web Service / JavaBean / Java lib which would be able to determine whether particular day (e.g. today) is a Business Day in Financial industry (e.g. Banking) and be callable from Java program. Any advise is very appreciated. Thank you in advance, Oleg.
From: Lew on 7 May 2010 16:58 olegkon wrote: > May not be exactly for that thread. > > I am looking for some Web Service / JavaBean / Java lib > which would be able to determine whether particular day (e.g. today) > is a Business Day in Financial industry > (e.g. Banking) and be callable from Java program. > > Any advise is very appreciated. > It's easiest to set up a database of dates and their attributes. The definition of what constitutes a "business day" will vary from organization to organization and from project to project. Even if there were such a library, and I don't know of one, it probably wouldn't match your requirement exactly. Create a database table similar to: CREATE TABLE day { day DATE NOT NULL PRIMARY KEY, weekday CHAR (1) CHECK weekday IN ('T', 'F'), weekend CHAR (1) CHECK weekend IN ('T', 'F'), holiday CHAR (1) CHECK holiday IN ('T', 'F'), busiday CHAR (1) CHECK busiday IN ('T', 'F') ); Populate it with a few decades' worth of days. That's only about 36,525 rows per century. -- Lew
From: Arne Vajhøj on 7 May 2010 22:12 On 07-05-2010 15:41, olegkon wrote: > I am looking for some Web Service / JavaBean / Java lib > which would be able to determine whether particular day (e.g. today) > is a Business Day in Financial industry > (e.g. Banking) and be callable from Java program. That is country specific. And I am skeptical about whether you can find something like that. Find the rules for your country and implement them. Arne
From: Roedy Green on 7 May 2010 22:44 On Fri, 7 May 2010 12:41:55 -0700 (PDT), olegkon <olegkon(a)gmail.com> wrote, quoted or indirectly quoted someone who said : >I am looking for some Web Service / JavaBean / Java lib >which would be able to determine whether particular day (e.g. today) >is a Business Day in Financial industry >(e.g. Banking) and be callable from Java program. That depends on location, what holidays they celebrate. You might find http://mindprod.com/products1.html#HOLIDAYS a good place to start. -- Roedy Green Canadian Mind Products http://mindprod.com What is the point of a surveillance camera with insufficient resolution to identify culprits?
From: Eric Sosman on 8 May 2010 10:01 On 5/7/2010 10:12 PM, Arne Vajh�j wrote: > On 07-05-2010 15:41, olegkon wrote: >> I am looking for some Web Service / JavaBean / Java lib >> which would be able to determine whether particular day (e.g. today) >> is a Business Day in Financial industry >> (e.g. Banking) and be callable from Java program. > > That is country specific. It's even more specific than that. I live in the United States, in the Commonwealth of Massachusetts. In these parts, the Monday closest to April 19 is a holiday (Patriots' Day) commemorating the initial hostilities of the American Revolution. But elsewhere in the country, the occasion goes largely unobserved: So it's a holiday here and a "business day" most everywhere else. Even on the holiday, some businesses operate and some do not. Federal government offices are open, state and city offices are closed (you can't appeal your real estate tax assessment at City Hall, but you can mail the tax payment via the Federally-operated Postal Service). Private businesses are open or closed in accordance with a crazy quilt of regulation and tradition. A foot race called the Boston Marathon runs through my town that day, bringing nearly everything but the runners to a halt -- except that the policemen, firemen, and emergency personnel of all kinds are *all* on duty; it's no holiday for them ... Similar variations can be found in other countries, too. I'm told, for example, that in Germany the official holiday system takes note of a person's religion: A day that is a business day for Catholics may be a holiday for Protestants or Jews, and vice versa. -- Eric Sosman esosman(a)ieee-dot-org.invalid
|
Next
|
Last
Pages: 1 2 Prev: configure Spring to use jax-ws endpoint to consume XML then produce JSON Next: Operator precedence |