Tuesday, November 19, 2013

JETTY server


Eclipse run with : Run with maven jetty:run
JRE VM arguments -Djetty.port=9999

POM.xml


<plugin>
<groupId>org.mortbay.jetty</groupId>
<artifactId>jetty-maven-plugin</artifactId>
<version>7.1.0.v20100505</version>
<configuration>
<contextPath>mykong</contextPath>
<webAppSourceDirectory>${project.basedir}/src/main/webapp</webAppSourceDirectory>
<webAppConfig>
<contextPath>/mykong</contextPath>
</webAppConfig>

</configuration>
</plugin>

Tuesday, May 1, 2012

What's waterfall development?

A post that explains the usual way of software development and the new point of view of agile development

http://agilefromthegroundup.blogspot.com.es/2009/07/experience-benefits-of-agile-compared.html

Thursday, January 27, 2011

Packaging your maven project

I' ve used maven-assemply-plugin to build an Eclipse project using a maven project as the source. The maven project is configurable to build many different distributions. So the objective is to distribute the source code for each distribution as a simple Eclipse Web Dynamic project. Maven-assembly-plugin offers the possibility to use a XML file to describe which directories and files are selected and where are these saved. Furthermore the files can use variables to be filtered.
Dependencies can be managed with maven-dependencies-plugin so you can populate the WEB-INF/lib.

Sunday, November 21, 2010

Spring & JSF

In a JSF based project, we have a library with common components. In our menu component, we have overriden the isRendered method to follow authorization rules. So, displaying a menu depends on the user being logged. Taking into account that is a common library, the implementation of the authorization rules must be fullfilled by each project using the library.

The menu component has a method to evaluate visibility regarding authorization permit, let's say checkVisibility. The trick is call a static class inside this method. The static class, let's say CheckStatic, has just a single method evaluateVisibility . CheckStatic has an interface CheckingRulesInterface. The only method calls the interface method that really checks visiblity. The project using the menu item should implement the interface. Using Spring factory bean definitions, we can configure the static class with the proper interface implementation.


MenuItem{
checkVisibility(){
return CheckStatic.evaluateVisibility();
}
}
CheckStatic{
CheckingRulesInterface checkIt;
evaluateVisibility(){
return checkIt.reallyCheckIt();
}
}

Tuesday, November 9, 2010

Speed up your reports!

I've found an interesting post at Goodman on BI. It explains how to use a dedicated datawarehouse database (DynamoDB) to load partial data just for the required report or reports.
The idea is extract the data from the MySql OLTP and load it into de datawarehouse database.

So ... can this approach used to do real time reporting? I guess. Using an in-memory database and selecting just the requeried data, some reports could be runned with enough spped and accuracy.
I must need find some free hours to try this approach.