cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rémi Flament (JIRA) <j...@apache.org>
Subject [jira] Commented: (CXF-2641) Interceptors to store requests and responses in a database
Date Sun, 31 Jan 2010 16:15:35 GMT

    [ https://issues.apache.org/jira/browse/CXF-2641?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12806845#action_12806845
] 

Rémi Flament commented on CXF-2641:
-----------------------------------

Here is a sample spring configuration to use this : 

{code}
<?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:jaxws="http://cxf.apache.org/jaxws"
	default-autowire="no"
	xsi:schemaLocation="
       http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
">

	<bean id="exchangeDAO" class="org.apache.cxf.management.persistence.ExchangeIBatisDAO">
		<property name="sqlMapClient" ref="sqlMapClient" />
	</bean>

	<bean id="txManager"
		class="org.springframework.jdbc.datasource.DataSourceTransactionManager">
		<property name="dataSource" ref="cxfManagementDataSource" />
	</bean>

	<bean id="cxfManagementDataSource" class="org.springframework.jndi.JndiObjectFactoryBean"
primary="true" >
		<property name="jndiName" value="java:comp/env/jdbc/cxf/management" />
		<property name="cache" value="false" />
		<property name="proxyInterface" value="javax.sql.DataSource" />
	</bean>


	<bean id="sqlMapClient" class="org.springframework.orm.ibatis.SqlMapClientFactoryBean"
depends-on="cxfManagementDataSource">
		<property name="configLocations">
			<list>
				<value>classpath*:ibatis/ibatis-cxf-management.xml</value>
			</list>
		</property>
		<property name="dataSource" ref="cxfManagementDataSource" />
	</bean>



</beans>
{code}

> Interceptors to store requests and responses in a database
> ----------------------------------------------------------
>
>                 Key: CXF-2641
>                 URL: https://issues.apache.org/jira/browse/CXF-2641
>             Project: CXF
>          Issue Type: New Feature
>          Components: Bus
>            Reporter: Rémi Flament
>             Fix For: 2.3
>
>         Attachments: cxf-management-peristence-1.patch, cxfmanagement.sql
>
>
> Here is a patch that contains interceptors described in this email : http://mail-archives.apache.org/mod_mbox/cxf-dev/201001.mbox/%3C4B553909.5070506@laposte.net%3E
> The patch modifies the rt/management maven module.
> It adds two interceptors to store requests and responses in a database :
> - PersistInInterceptor
> - PersistOutInterceptor
> It uses iBatis for persistence.
> For each request the folliwing data is saved :
> - service name
> - encoding
> - the date when the request was processed
> - the date when the response was processed
> - the wsdl operation
> - the request as text
> - the response as text
> - the request size
> - the response size
> - the uri
> - user agent
> - the status
> - the exception type and the stacktrace if any
> - additional properties, http headers, etc.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message