jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christoph Kiehl <christ...@sulu3000.de>
Subject Re: Audit Trail
Date Wed, 04 Jul 2007 14:45:55 GMT
harvey waters wrote:
> Sounds like we're trying to do something very similar (we're using spring
> modules too). What transaction manager are you using, I'm a bit confused
> about what the stack should look like if we're not running it in an
> application server ?

We don't run our app in an application server. See below for our xml config.

Cheers,
Christoph

================

<?xml version="1.0" encoding="UTF-8"?>

<beans xmlns="http://www.springframework.org/schema/beans"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	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.0.xsd
		http://www.springframework.org/schema/aop 
http://www.springframework.org/schema/aop/spring-aop-2.0.xsd
		http://www.springframework.org/schema/tx 
http://www.springframework.org/schema/tx/spring-tx-2.0.xsd">

	<bean id="transactionManager"
		class="org.springmodules.jcr.jackrabbit.LocalTransactionManager">
		<property name="sessionFactory" ref="sessionFactory" />
	</bean>

	<tx:annotation-driven
		transaction-manager="transactionManager" />

	<bean id="jcrTemplate"
		class="org.springmodules.jcr.JcrTemplate">
		<property name="sessionFactory" ref="sessionFactory" />
		<property name="allowCreate" value="true" />
		<property name="exposeNativeSession" value="true" />
	</bean>

	<bean id="sessionFactory"
		class="org.springmodules.jcr.JcrSessionFactory">
		<property name="repository" ref="repository" />
		<property name="credentials">
			<bean class="javax.jcr.SimpleCredentials">
				<constructor-arg index="0" value="bogus" />
				<constructor-arg index="1" value="password" />
			</bean>
		</property>
		<property name="workspaceName" value="default" />
	</bean>
</beans>


Mime
View raw message