Category Archives: Java

Using Annotations with OSGi Declarative Services

Introduction The OSGi compendium specification has now standardized the annotation usage for declarative services. The core services bundle (org.eclipse.osgi.services) includes the set of classes and packages that can be used for this purpose. The specification clearly mentions that there should … Continue reading

Posted in How to, Java, OSGi | Tagged , , , , , , | 2 Comments

OSGi and Jetty Integration

Introduction If any OSGi framework based solution needs a servlet container, the OSGified Jetty becomes a good choice. It can be used as the underlying servlet transport provider within an OSGI framework.  This post focus on what are major points to consider … Continue reading

Posted in How to, Java, OSGi | Tagged , , , , , | Leave a comment

Embedded Tomcat : Tips, Tricks and Hacks

Introduction Embedded Tomcat API comes handy where it only requires a few lines of code to start a tomcat instance within your application.  This makes the life easy for the users to get the useful features out from Apache Tomcat in their application. In most … Continue reading

Posted in Java, Tomcat | Tagged , , , , , , | 1 Comment

Transaction support with RabbitMQ

In a previous post of mine, I explained about the new AMQP transport developed for WSO2 ESB based on RabbitMQ Java Client. In this post I will be explaining about how we use the transactions support in RabbitMQ Java Client … Continue reading

Posted in How to, Java, RabbitMQ, WSO2 | Tagged , , , , | Leave a comment

AMQP Transport for WSO2 ESB based on RabbitMQ Java Client

Introduction WSO2 ESB is a High Performance, Light weight, Open Source Enterprise Service Bus. It also has inbuilt support for integrating different technologies which uses different transports protocols. Some of the well known transports that WSO2 ESB supports are HTTP, … Continue reading

Posted in Java, RabbitMQ, WSO2 | Tagged , , , , | 17 Comments

Using RabbitMQ Java Client to send AMQP Messages to a AMQP Broker

Introduction RabbitMQ is an open source message broker which implements AMQP messaging protocol. It also has multiple client libraries (Java, .NET, Erlang) which can be used to send/recieve AMQP messages to/from an AMQP broker. In this post I’m going to … Continue reading

Posted in How to, Java, RabbitMQ | Tagged , , , , , , | 1 Comment

Access Cabon Data Sources within webapps in WSO2 Application Server

In a previous post of mine, I explained on how we can register JNDI Resources within webapp that are hosted in WSO2 Application Server. In this post I will be explaining about How we can access Carbon Data Sources, using … Continue reading

Posted in How to, Java, Tomcat, WSO2 | Tagged , , , , , | Leave a comment

Session replication of Applications in WSO2 Application Server

Introduction The Apache Tomcat[1] is mainly used as a servlet container in WSO2 Carbon[2] based servers. It runs as embedded mode in all servers. It also holds some useful features in it, such as ability to deploy webapps, etc. The … Continue reading

Posted in Java, Tomcat, WSO2 | Tagged , , , , , | Leave a comment

How to register JNDI resources for webapps in WSO2 Application Server

WSO2 Application Server uses Embedded Tomcat as its underlying servlet container. This gives the advantage of inheriting all the features supported by Apache Tomcat. With this support WSO2 Application Server brings together the webapp hosting facility along with web-services hosting … Continue reading

Posted in How to, Java, Tomcat, WSO2 | Tagged , , , , , , | 4 Comments

Useful maven commands

Project Build Clean a project: mvn clean Compile a project: mvn compile Run unit tests (it also compiles a project): mvn test Build a package (it also executes unit tests): mvn package Run integration test (it also builds a package): mvn verify Install a package … Continue reading

Posted in How to, Java, Maven, Software | Tagged , , , , , , , | Leave a comment