Java
JEE based projects with maven build artifacts like war or ear files is the cargo plugin the right choice for automatic deployments during the build process. First step is to define in the build section of your pom.xml the cargo plugin: org.codehaus.cargo cargo-maven2-plugin 1.1.4 tomcat6x remote runtime ${cargo.manager.url} ${cargo.username} ${cargo.password} remote ${project.groupId} ${project.artifactId} war ${project.artifactId} Notice [...]
Continue reading about Using Cargo for Maven War Deployments to Tomcat 6.x
For the latest eclipse release 3.7 called indigo is a plugin available to watch and control your build server based on hudson or jenkins. It is part of mylyn 3.5 as a view called “Builds”. See here for more information about the new features of mylyn 3.5. Their is as well a commercial plugin suite called [...]
Continue reading about Control Hudson or Jenkins from Eclipse Indigo 3.7
Spring 3.0.1 explicit supports the second release candidate of hibernate 3.5 aka 3.5-CR-2. Migration is very easy with maven: old pom.xml (part) for hibernate 2.3 and jpa 1.0 cglib cglib-nodep 2.1_3 org.hibernate hibernate-annotations 3.2.0.ga org.hibernate hibernate 3.2.6.ga javax.persistence persistence-api 1.0 new pom.xml (part) for hibernate 3.5 and jpa 2.0 org.hibernate hibernate-entitymanager 3.5.0-CR-2 org.hibernate.java-persistence jpa-api 2.0-cr-1
Continue reading about Migrating a Hibernate Application from JPA 1.0 to 2.0
The default behavior of the tomcat6 server installed from the ubuntu repository is to forbid any read operation of System.getProperty(). I used tomcat6 as deployment target for the hudson builds on the same machine. AspectJ is used in a sample Spring 3 REST application. Tomcat6 logs (catalina-…log) shows the following exception Caused by: java.security.AccessControlException: access [...]
SpringSource has recently released 3.0.1 of their Spring Framework. Spring 3 extended the REST functionalities inside the Web MVC part of the Framework. Rest Service are defined as Controller and can be tested with the new Resttemplate. In this little sample project is Spring 3 combined with JUnit 4, Maven, Hibernate 3.2, Jetty, MySQL, JPA, [...]
Continue reading about JUnit Tests for Spring 3 Rest Services