Encrypting and restricting PDF-Reports build with JasperReports
I recently had the Task to encrypt and restrict a PDF-Report created with JasperReports. Since it took me a while to find the approriate current syntax (most blogs still show the deprecated old configuration) I thought I share my solution here. To encrypt our PDF-Report we have to create a SimplePdfExporterConfiguration as shown in the […]
Creating and recovering Windows 8.1 installations via vhdx-image
Today I figured out how to recover a computer from a vhdx-image I created (using disk2vhd) earlier after doing a fresh install on this computer. The computer I recovered was one of our lenovo notebooks which had a broken harddisk. To fix and upgrade it we ordered a new Samsung SSD which I put in […]
Implementing RESTful Webservices: Part 1 – The Basics
The following post is the first part of a blog series covering the design and implementation of RESTful webservices. This first part will cover the basics and give some general tips. The subsequent posts of the series will then cover the implementation of a demo service using jersey as well as more advanced topics like […]
Streaming from Oracle bfiles. The right way?
Today I faced the task to stream a PDF-Document from a bfile stored in an Oracle database. So I wrote the following code to get a stream supplying the file from bfile and writing it to an outputstream. final String sql = …; BFILE bfile = null; Connection con = null; Statement stmt = null; […]
Integration testing Rest-Services using Arquillian
In this post I want to demonstrate how Rest-Services can be integration tested using JBoss Arquillian1 and Glassfish-Embedded2. To do so we first need a Rest-Service which can be tested. So first of all we create a new maven-web-project and add the following rest resource. It is a very simple resource which returns a contact […]
Creating durable folders in perspectives
When creating an IFolder in a pespective of an Eclipse RCP or RAP application using IFolderLayout folder = layout.createFolder(“de.nordiccoding.myfolder”, IPageLayout.TOP, 0.5f, editorArea); the default behaviour of the folder is to hide the folder once the last view in it has been closed. Unfortunately in many cases this is not the desired behaviour. But where there’s […]
Deploying RAP to Windows Azure
Since I recently deployed my first application to Microsoft’s Cloud Services-Platform Windows Azure I wanted to share the steps taken to get the application up and running. As I promised in the title of my post my sample application will be an Eclipse RAP application (to keep things simple I will use the RAP Mail […]
Integrating Spring Security and Eclipse RAP (Part 2)
In this part of the series I will explain how to add method security to the service level of our rap application. This tutorial builds on the results of part 1 of the series so this part should be read first. By the way all steps described in this post will not only work using […]
Adding syntax highligting to your blog
Since I just updated my blog’s syntax highlighting capabilities I thought it would be nice to share how it can be done. To get syntax highlighting for the code in my posts I’m using the SyntaxHighlighter-Library written by Alex Gorbatchev. I’m using the current Version of the library which at the time of writing this […]
Sharing GIT Repositories using Dropbox
Ever wanted to use a git repository on multiple computers or operating systems? With Dropbox this is actually quite easy now. The advantages are quite obvious. You don’t need an extra server to share, it’s free up to 2GB (which should be sufficient for many purposes) and you could even share with other people. The […]