Archive for the ‘Development’ Category

How to get java thread stack traces for a Windows service with jstack

When running in a console window, pressing CTRL+Break signals the JVM to print out all stack traces of currently running threads.
If your application runs as a service (or linux/unix dæmon) you can’t press CTRL+Break, so you have to signal the JVM yourself to produce the stack trace. You can do that on linux by signaling […]

Generating your model from a schema definition using Maven and JAXB

If your project requires quite a large data model and it so happens that you have a xml schema definition on hand, you can easily transform that XSD into Java classes using Maven 2, JAXB and some manual labor.
Things you might want to know:
* doesn’t work out of the box on JSE6. It actually needs […]

When compiling time does matter

I was compiling a project, looking at my console window, just thinking that the build usually takes too long when I realised how much time I really loose while building.
I was staring at the screen, and then the Maven buildNumber for the parent pom pops up. It’s 384.
I wait for the build to finish. It […]

JiBX, Maven JiBX plugin, using collections with flexible settings

Before JiBX 1.1.5, names on collections were optional. That changed
Now, although the docs say that the name attribute is optional on collections, it’s actually required in the real world.
Some flexible setups, like mine, get really confused if the name attribute is specified, and, because it is required I can’t even bind it without […]

Moving tables between tablespaces in Oracle

Well, sometimes you need to do it. My case is simple, a lot of tables created without specifying a tablespace, by a DBA-granted database user.
The procedure is quite straight forward, although it took me some time to figure it out. Because we were migrating to a new server, I considered it a good time […]