Posts

Showing posts from May, 2013

Managing system scoped jars with maven and the addjars plugin

When using some third party dependencies in a maven project you realize that sometimes some of jars are not available in any of the public maven repositories available (e.g. the oracle jdbc driver that is not available for copyright reasons) When developing a team project and that you are required to use a jar of this type you have mainly 3 options : 1. Using Maven repository repository manager There are a few maven repository managers out there which allow mainly to mirror distant maven repositories such as maven central, by storing the remote jars locally and making them available inside the company This is where you can store your companies jars and wars and some other jar not available in the public repositories I will not go into the details of the different repository managers but there are mainly 3 Sonatype nexus repositoryJFrog ArtifactoryArchiva I never used Archiva but I really like Nexus. There is a nice comparison matrix over here so you can make and educated choice Any…

Reconfiguring a mongodb replicaset after a "loading local.system.replset config (LOADINGCONFIG)" error

Weird thing happen today when I came to work my MongoDB replicaset was not working anymore after a system updateThere was a mongodb instance running but when I checked for the replicaset status I had this error message : > rs.status() { "startupStatus" : 1, "ok" : 0, "errmsg" : "loading local.system.replset config (LOADINGCONFIG)" } Now I have no idea what caused the problem but I could see (from the error message) that it was related to the replicaset configuration The problem was actually pretty weird since when I printed the replicaset config it showed an old configuration > rs.config() { "_id" : "rps", "version" : 2, "members" : [ { "_id" : 0, "host" : "192.168.13.200:27017" }, { "_id" : …

JSF 2 performance improvement on latest release (Mojarra)

According to this blog the latest version of Mojarra JSF (2.1.22) performance should improve dramatically when handling pages with a large quantity of objects (1000+). jsf-performance-mojarra-improves-dramaticallyAlways acording to the blog author with the previous version of Mojarra, rendering a page with 1000+ components would take up to 5 times more compared to the other JSF implementation Apache MyFaces. This is great news and comes as a welcomed improvement! This improvement comes mainly from the resolution of the bug : JAVASERVERFACES-2494