Author: sctrcdr

WebLogic Scripting Tool – Scripts

Originally posted @ gratiartis.org on April 5th 2008.

I mentioned my use of the WebLogic Scripting Tool a little while back. I have noticed since then that a number of folks visiting this site are looking for example scripts. I have obviously written a number myself and I promise I’ll try to get around to posting them here. However until I get myself in gear, I thought I would point you at some useful examples that are already out there. I’ll expand this post as I find more…

Continue reading “WebLogic Scripting Tool – Scripts”

Open source financial libraries for Java

Originally posted @ gratiartis.org on April 16th, 2007.

The financial industry does seem to be loath to share the fruits of their efforts. There doesn’t seem to be a lot around. And certainly not much that is regularly updated. Maybe everyone is worried about sharing trade secrets, but the rules for calculations are well established and I’m guessing that everyone must be writing their own implementations or buying in over-priced modules.

Continue reading “Open source financial libraries for Java”

Groovy as a financial domain language?

Originally posted @ gratiartis.org on April 6 2007

As a developer of financial systems, I’m constantly disappointed by how difficult it is to perform precise decimal arithmetic in Java. It’s fairly common knowledge that the use of double is not much use for financial calculations. As a quick example, take a look at the following piece of code.

public static void main(String arg[]) {
    BigDecimal bd = new BigDecimal("58.99").add(new BigDecimal("0.99"));
    System.out.println("BigDecimal result: " + bd);

    double d = 58.99 + 0.99;
    System.out.println("Double result: " + d);
}

You would have thought both results should be the same. However, you end up with:

BigDecimal result: 59.98
Double result: 59.980000000000004

This is caused by the fact that in Java, operations on double primitive uses floating point arithmetic. The use of floating point arithmetic does make it relatively fast to perform the operations. The approximate nature of them may not matter in all situations, but for financial calculations it can cause all sorts of problems.

Continue reading “Groovy as a financial domain language?”

WebLogic Scripting Tool

Originally posted @ gratiartis.org on February 5th 2007.

According to the BEA documentation, the WebLogic Scripting Tool is a command-line scripting interface that system administrators and operators use to monitor and manage WebLogic Server instances and domains. It allows you to write scripts in Jython that are able to connect to a running WebLogic domain and make modifications to the configuration with no need to restart anything. It can also be used for creating and modifying a domain in its offline mode. It comes as standard with WebLogic 9.2 and a version is available for 8.1. It is recommended and supported by BEA for automating WebLogic server administration. I am currently developing WLST scripts to improve the development and deployment process.

Continue reading “WebLogic Scripting Tool”

Incorporated

Today, in a rush of organisation, Scattercode Ltd has been incorporated as a limited company.

There are numerous programming languages and frameworks out there, and rather than advocating one true technology, there is much to learn by working with a range of platforms, spotting some of the best ideas, and cross-pollinating those concepts.