Softcoding initial positions

I’d like to modify the example server so that instead of generating the securities and positions from hard coded java that it is possible to load it in through a configuration file.

One way of doing it would be to start with a blank OG installation and then generate the securities via the REST interface. I was wondering if anyone had any other suggestions for doing this.

I support this approach.

In fact, I have been creating securities manually via xml by using:
http://localhost:8080/jax/securities/

Also, positions can be loaded via current “portfolio-loader-tool.sh” script which reads from csv file (also see http://docs.opengamma.com/display/DOC200/Loader+tool)