A blog about my daily tech ramblings.

Showing posts with label Spring. Show all posts
Showing posts with label Spring. Show all posts

Friday, 9 August 2013

Using External Properties in Apache Karaf [Fuse ESB]

August 09, 2013 Posted by Unknown , , , 5 comments

Introduction

In this example we will see how to use an external property file in Fuse ESB / Apache Karaf.

Creating a configuration file

Create a config file named sample.cfg in FUSE_HOME/etc with the following content.

Spring Configuration


Blueprint 


Note : The default blueprint placeholder syntax (accessing the blueprint properties directly) is ${Key}. Hence, outside the scope of a camelContext element, the placeholder syntax you must use is ${Key}. Whereas, inside the scope of a camelContext element, the placeholder syntax you must use is {{Key}}.


Camel Route

Tuesday, 22 January 2013

Saturday, 17 December 2011

Tuesday, 6 December 2011

Sunday, 4 December 2011

Saturday, 3 December 2011

Spring Aspects

December 03, 2011 Posted by Unknown , No comments
Spring aspects can work with five kinds of advice :

  • Before - The advice functionality takes place before the advised method is invoked.
  • After - The advice functionality takes place after the advised method completes, regardless of the outcome.
  • After-returning - The advice functionality takes place after the advised method successfully completes.
  • After-throwing - The advice functionality takes place after the advised method throws an exception.
  • Around - The advice wraps the advised method, providing some functionality before and after the advised method is invoked.

Code Examples should go here...

Spring : Initializing and destroying beans

December 03, 2011 Posted by Unknown No comments
* Using init-method & destroy-method

* Using Spring InitializingBean and DisposableBean interfaces

* Sample bean configuration file

* Main program

Saturday, 26 November 2011

Using Spring JMS with Oracle AQ [XMLType payload]

November 26, 2011 Posted by Unknown , , , , 1 comment

Using Spring JMS with Oracle AQ [ Without Spring JDBC Extension ]


Code available at https://github.com/sachin-handiekar/spring-jms-oracle-aq

Create a queue table with XMLType payload


* Create a queue


Code 

AQ Connection factory


AQ Destination Factory



Message Listener for XMLType message



Message Listener Container



Sending XML Message to the queue