October 26, 2009 in IT and Stuff
Quartz is an open source job scheduling system that can be integrated with, or used along side virtually any J2EE or J2SE application – from the smallest stand-alone application to the largest e-commerce system (definition taken from http://www.opensymphony.com/quartz/)
class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean">
Cheers!
Tags: configuration, English, quartz, spring
October 26, 2009 in IT and Stuff
When I am investigating HIPPO CMS 7, I have to connect the web application that is using SPRING framework to hippo repository. This is what we’ve got.
class="org.apache.jackrabbit.rmi.client.ClientRepositoryFactory" />
factory-method="getRepository">
It works for us. Hopefully it works also for you.
Cheers!
Tags: configuration, English, hippo, jcr, spring
October 5, 2009 in IT and Stuff
It is my first time to configure my web application to use spring framework.
So, first time we create a applicationContext.xml under the WEB-INF folder. Below is the basic configuration
< ?xml version="1.0" encoding="UTF-8"?>
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:context="http://www.springframework.org/schema/context"
xmlns:aop="http://www.springframework.org/schema/aop" xmlns:tx="http://www.springframework.org/schema/tx"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-2.5.xsd http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-2.5.xsd">
In the contexApplication.xml you can configure every bean that you need such as
After that, edit your web.xml which is also under the WEB-INF. Add these line to call the applicationContext.xml
contextConfigLocation
/WEB-INF/applicationContext.xml
org.springframework.web.context.ContextLoaderListener
Even thought it is basic one, but hopefully it helps you to configure your web application with spring framework
Cheers!
Tags: configuration, English, spring, xml
May 31, 2009 in IT and Stuff
First, we should define the location of the log4j config file or log4j property file. We define it in our web.xml
log4jConfigLocation /WEB-INF/log4j.properties
After that we add event declaration usign the element. This will be invoked when the event is occured. The element should be placed between and elements.
org.springframework.web.util.Log4jConfigListener
Tags: configuration, English, log4j, spring