Category Archives: How to

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

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

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

WSO2 ESB : How to fix “Failed to start new registry transaction” error.

When configuring WSO2 ESB with its embedded registry pointing to an Oracle RAC instance, sometimes you may run into connection issues with the RAC instance, with the following error trace. ERROR {org.wso2.carbon.registry.core.dataaccess.TransactionManager} – Failed to start new registry transaction. {org.wso2.carbon.registry.core.dataaccess.TransactionManager} … Continue reading

Posted in How to, 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