A blog about my daily tech ramblings.
Tuesday, 22 January 2013
Saturday, 17 December 2011
Get ActiveMQ Queue Size using MBean (Spring JMX)
Getting a queue size of an ActiveMQ queue using MBean (Spring JMX).
Spring Config file
* A class using the MBeanServerConnection to fetch the attribute from the MBean
* Running the Queue Counter
Spring Config file
* A class using the MBeanServerConnection to fetch the attribute from the MBean
* Running the Queue Counter
Tuesday, 6 December 2011
Using Weblogic SingletonService for Spring JMS
* Weblogic Configuration
-- Add screenshots here
* Enterprise Application
-- Add screenshots here
* Enterprise Application
Initializing the Spring context inside the SingletonService entry point.
Sample Application can be found at : Github Repo.
Sunday, 4 December 2011
Saturday, 3 December 2011
Spring Aspects
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
* Using init-method & destroy-method
* Using Spring InitializingBean and DisposableBean interfaces
* Sample bean configuration file
* Main program
* Using Spring InitializingBean and DisposableBean interfaces
* Sample bean configuration file
* Main program