Deploy tomcat applications in Docker containers

Deploying you applications in containers, you are sure that they are easily portable and scalable… Here a sample of deploying a .war application using a Docker container Create a Dockerfile like``` FROM tomcat:8-jre8 MAINTAINER “Matteo matteo.redaelli@gmail.com” ADD server.xml /usr/local/tomcat/conf/ ADD tomcat-users.xml /usr/local/tomcat/conf/ ADD ojdbc6.jar /usr/local/tomcat/lib/ ADD bips.war /usr/local/tomcat/webapps/ Build a docker image docker build . -t myapp Run one or more docker images of your appplication with docker run –restart=unless-stopped –name myapp1 -p 8080:8080 -d myapp docker run –restart=unless-stopped –name myapp2 -p 8081:8080 -d myapp It is better to redirect tomcat logs to stdout: in this way you can see them with docker logs myapp

March 14, 2017 · 1 min · 105 words · Matteo Redaelli

Apache Camel: how to collect data from twitter

In the article Apache Camel: how to collect data from twitter, I’ll show howto save all tweets about Pirelli to files in .json format ..

December 29, 2012 · 1 min · 25 words · Matteo Redaelli

Connecting to a database with a webService (cxf) deployed (jbi) in Servicemix

Introduction Apache ServiceMix at the moment doesn’t have a JBI component for connecting to a database (servicemiix-jdbc is in the roadmap): in the meanwhile you have to use servicemix-cxf or servicemix-bean. This example (cxf-wsdl-first-jdbc.zip, cxf-wsdl-first.pdf) is built on top of the example cxf-wsdl-first and can be deployed in apache servicemix 4.0 as JBI sa package. Installing smx4 Download from “http://servicemix.apache.org/SMX4/download.html” Unzip it cd /usr/local tar xvfz apache-servicemix.tar.gz Starting smx4 cd /usr/local/apache-servicemix-4....

May 30, 2009 · 2 min · 215 words · Matteo Redaelli

SAP Contributes New Tool to Open Source Eclipse Developer Community

Advanced Memory Analyzer Capabilities Enable Eclipse Developers to Build Enterprise Applications Within Leading Open Source Development Environment Read the rest f the article at CNN. Sap Wiki at https://wiki.sdn.sap.com/wiki/x/k2w

November 6, 2007 · 1 min · 29 words · Matteo Redaelli