|
From: <fc...@us...> - 2008-03-14 09:13:16
|
Revision: 738
http://openutils.svn.sourceforge.net/openutils/?rev=738&view=rev
Author: fcarone
Date: 2008-03-14 02:13:18 -0700 (Fri, 14 Mar 2008)
Log Message:
-----------
test resources and config added
Added Paths:
-----------
trunk/openutils-spring-rmibernate/src/test/resources/
trunk/openutils-spring-rmibernate/src/test/resources/HibernateLazyTest-load.xml
trunk/openutils-spring-rmibernate/src/test/resources/database.properties
trunk/openutils-spring-rmibernate/src/test/resources/dataset.dtd
trunk/openutils-spring-rmibernate/src/test/resources/hibernate.cfg.xml
trunk/openutils-spring-rmibernate/src/test/resources/log4j.dtd
trunk/openutils-spring-rmibernate/src/test/resources/log4j.xml
trunk/openutils-spring-rmibernate/src/test/resources/spring-client-managers.xml
trunk/openutils-spring-rmibernate/src/test/resources/spring-dao.xml
trunk/openutils-spring-rmibernate/src/test/resources/spring-database.xml
trunk/openutils-spring-rmibernate/src/test/resources/spring-hibernate.xml
trunk/openutils-spring-rmibernate/src/test/resources/spring-managers.xml
trunk/openutils-spring-rmibernate/src/test/resources/spring-remote-rmi.xml
trunk/openutils-spring-rmibernate/src/test/resources/spring-tests.xml
Added: trunk/openutils-spring-rmibernate/src/test/resources/HibernateLazyTest-load.xml
===================================================================
--- trunk/openutils-spring-rmibernate/src/test/resources/HibernateLazyTest-load.xml (rev 0)
+++ trunk/openutils-spring-rmibernate/src/test/resources/HibernateLazyTest-load.xml 2008-03-14 09:13:18 UTC (rev 738)
@@ -0,0 +1,74 @@
+<!DOCTYPE dataset SYSTEM "dataset.dtd">
+<dataset>
+ <table name="DUMMYDATAOBJECTCHILD">
+ <column>ID</column>
+ <column>SOMETEXT</column>
+ <row>
+ <value>0</value>
+ <value>ddd</value>
+ </row>
+ <row>
+ <value>1</value>
+ <value>eee</value>
+ </row>
+ <row>
+ <value>2</value>
+ <value>fff</value>
+ </row>
+ </table>
+ <table name="DUMMYDATAOBJECT">
+ <column>ID</column>
+ <column>SOMETEXT</column>
+ <column>DD_CHILD</column>
+ <row>
+ <value>0</value>
+ <value>aaa</value>
+ <value>0</value>
+ </row>
+ <row>
+ <value>1</value>
+ <value>bbb</value>
+ <value>1</value>
+ </row>
+ <row>
+ <value>2</value>
+ <value>ccc</value>
+ <value>2</value>
+ </row>
+ </table>
+ <table name="DUMMYDATAOBJECTCONTAINER">
+ <column>ID</column>
+ <column>DD_CHILD</column>
+ <column>ID_PARENT</column>
+ <row>
+ <value>0</value>
+ <value>0</value>
+ <value>0</value>
+ </row>
+ <row>
+ <value>1</value>
+ <value>1</value>
+ <value>0</value>
+ </row>
+ <row>
+ <value>2</value>
+ <value>2</value>
+ <value>0</value>
+ </row>
+ <row>
+ <value>3</value>
+ <value>0</value>
+ <value>1</value>
+ </row>
+ <row>
+ <value>4</value>
+ <value>1</value>
+ <value>1</value>
+ </row>
+ <row>
+ <value>5</value>
+ <value>2</value>
+ <value>1</value>
+ </row>
+ </table>
+</dataset>
Added: trunk/openutils-spring-rmibernate/src/test/resources/database.properties
===================================================================
--- trunk/openutils-spring-rmibernate/src/test/resources/database.properties (rev 0)
+++ trunk/openutils-spring-rmibernate/src/test/resources/database.properties 2008-03-14 09:13:18 UTC (rev 738)
@@ -0,0 +1,13 @@
+# ATTENZIONE: queste propriet\xE0 sono utilizzate solo per gli unit tests
+# i file per la configurazione del db utilizzati dall'applicazione web sono in
+# src/main/web-app/WEB-INF
+
+#hibernate.connection.driver=org.apache.derby.jdbc.EmbeddedDriver
+#hibernate.dialect=org.hibernate.dialect.DerbyDialect
+hibernate.connection.driver=org.hsqldb.jdbcDriver
+hibernate.dialect=org.hibernate.dialect.HSQLDialect
+hibernate.connection.username=sa
+hibernate.connection.password=
+hibernate.connection.url=jdbc:hsqldb:mem:hibernate-rmibernate
+hibernate.hbm2ddl.auto=create-drop
+hibernate.show_sql=true
Added: trunk/openutils-spring-rmibernate/src/test/resources/dataset.dtd
===================================================================
--- trunk/openutils-spring-rmibernate/src/test/resources/dataset.dtd (rev 0)
+++ trunk/openutils-spring-rmibernate/src/test/resources/dataset.dtd 2008-03-14 09:13:18 UTC (rev 738)
@@ -0,0 +1,13 @@
+<!ELEMENT dataset (table*)>
+<!ELEMENT table (column+,row+)>
+<!ATTLIST table
+ name CDATA #REQUIRED
+>
+<!ELEMENT row (value|null)+>
+<!ELEMENT column (#PCDATA)>
+<!ELEMENT value (#PCDATA)>
+<!ELEMENT null EMPTY>
+<!--
+nb una tabella senza righe sarebbe valida (per cancellare tutto il contenuto),
+ma NON DEVE ESISTERE NEI NOSTRI TEST IN QUANTO TUTTE LE TABELLE VENGONO SVUOTATE PRIMA DEL CARICAMENTO
+-->
\ No newline at end of file
Added: trunk/openutils-spring-rmibernate/src/test/resources/hibernate.cfg.xml
===================================================================
--- trunk/openutils-spring-rmibernate/src/test/resources/hibernate.cfg.xml (rev 0)
+++ trunk/openutils-spring-rmibernate/src/test/resources/hibernate.cfg.xml 2008-03-14 09:13:18 UTC (rev 738)
@@ -0,0 +1,10 @@
+<!DOCTYPE hibernate-configuration PUBLIC
+ "-//Hibernate/Hibernate Configuration DTD 3.0//EN"
+ "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
+<hibernate-configuration>
+ <session-factory>
+ <mapping class="it.openutils.spring.rmibernate.testapp.server.DummyDataobject" />
+ <mapping class="it.openutils.spring.rmibernate.testapp.server.DummyDataobjectChild" />
+ <mapping class="it.openutils.spring.rmibernate.testapp.server.DummyDataobjectChildContainer" />
+ </session-factory>
+</hibernate-configuration>
\ No newline at end of file
Added: trunk/openutils-spring-rmibernate/src/test/resources/log4j.dtd
===================================================================
--- trunk/openutils-spring-rmibernate/src/test/resources/log4j.dtd (rev 0)
+++ trunk/openutils-spring-rmibernate/src/test/resources/log4j.dtd 2008-03-14 09:13:18 UTC (rev 738)
@@ -0,0 +1,166 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+
+<!-- Authors: Chris Taylor, Ceki Gulcu. -->
+
+<!-- Version: 1.2 -->
+
+<!-- A configuration element consists of optional renderer
+elements,appender elements, categories and an optional root
+element. -->
+
+<!ELEMENT log4j:configuration (renderer*, appender*,(category|logger)*,root?,
+ categoryFactory?)>
+
+<!-- The "threshold" attribute takes a level value such that all -->
+<!-- logging statements with a level equal or below this value are -->
+<!-- disabled. -->
+
+<!-- Setting the "debug" enable the printing of internal log4j logging -->
+<!-- statements. -->
+
+<!-- By default, debug attribute is "null", meaning that we not do touch -->
+<!-- internal log4j logging settings. The "null" value for the threshold -->
+<!-- attribute can be misleading. The threshold field of a repository -->
+<!-- cannot be set to null. The "null" value for the threshold attribute -->
+<!-- simply means don't touch the threshold field, the threshold field -->
+<!-- keeps its old value. -->
+
+<!ATTLIST log4j:configuration
+ xmlns:log4j CDATA #FIXED "http://jakarta.apache.org/log4j/"
+ threshold (all|debug|info|warn|error|fatal|off|null) "null"
+ debug (true|false|null) "null"
+>
+
+<!-- renderer elements allow the user to customize the conversion of -->
+<!-- message objects to String. -->
+
+<!ELEMENT renderer EMPTY>
+<!ATTLIST renderer
+ renderedClass CDATA #REQUIRED
+ renderingClass CDATA #REQUIRED
+>
+
+<!-- Appenders must have a name and a class. -->
+<!-- Appenders may contain an error handler, a layout, optional parameters -->
+<!-- and filters. They may also reference (or include) other appenders. -->
+<!ELEMENT appender (errorHandler?, param*, layout?, filter*, appender-ref*)>
+<!ATTLIST appender
+ name ID #REQUIRED
+ class CDATA #REQUIRED
+>
+
+<!ELEMENT layout (param*)>
+<!ATTLIST layout
+ class CDATA #REQUIRED
+>
+
+<!ELEMENT filter (param*)>
+<!ATTLIST filter
+ class CDATA #REQUIRED
+>
+
+<!-- ErrorHandlers can be of any class. They can admit any number of -->
+<!-- parameters. -->
+
+<!ELEMENT errorHandler (param*, root-ref?, logger-ref*, appender-ref?)>
+<!ATTLIST errorHandler
+ class CDATA #REQUIRED
+>
+
+<!ELEMENT root-ref EMPTY>
+
+<!ELEMENT logger-ref EMPTY>
+<!ATTLIST logger-ref
+ ref IDREF #REQUIRED
+>
+
+<!ELEMENT param EMPTY>
+<!ATTLIST param
+ name CDATA #REQUIRED
+ value CDATA #REQUIRED
+>
+
+
+<!-- The priority class is org.apache.log4j.Level by default -->
+<!ELEMENT priority (param*)>
+<!ATTLIST priority
+ class CDATA #IMPLIED
+ value CDATA #REQUIRED
+>
+
+<!-- The level class is org.apache.log4j.Level by default -->
+<!ELEMENT level (param*)>
+<!ATTLIST level
+ class CDATA #IMPLIED
+ value CDATA #REQUIRED
+>
+
+
+<!-- If no level element is specified, then the configurator MUST not -->
+<!-- touch the level of the named category. -->
+<!ELEMENT category (param*,(priority|level)?,appender-ref*)>
+<!ATTLIST category
+ class CDATA #IMPLIED
+ name CDATA #REQUIRED
+ additivity (true|false) "true"
+>
+
+<!-- If no level element is specified, then the configurator MUST not -->
+<!-- touch the level of the named logger. -->
+<!ELEMENT logger (level?,appender-ref*)>
+<!ATTLIST logger
+ name ID #REQUIRED
+ additivity (true|false) "true"
+>
+
+
+<!ELEMENT categoryFactory (param*)>
+<!ATTLIST categoryFactory
+ class CDATA #REQUIRED>
+
+<!ELEMENT appender-ref EMPTY>
+<!ATTLIST appender-ref
+ ref IDREF #REQUIRED
+>
+
+<!-- If no priority element is specified, then the configurator MUST not -->
+<!-- touch the priority of root. -->
+<!-- The root category always exists and cannot be subclassed. -->
+<!ELEMENT root (param*, (priority|level)?, appender-ref*)>
+
+
+<!-- ==================================================================== -->
+<!-- A logging event -->
+<!-- ==================================================================== -->
+<!ELEMENT log4j:eventSet (log4j:event*)>
+<!ATTLIST log4j:eventSet
+ xmlns:log4j CDATA #FIXED "http://jakarta.apache.org/log4j/"
+ version (1.1|1.2) "1.2"
+ includesLocationInfo (true|false) "true"
+>
+
+
+
+<!ELEMENT log4j:event (log4j:message, log4j:NDC?, log4j:throwable?,
+ log4j:locationInfo?) >
+
+<!-- The timestamp format is application dependent. -->
+<!ATTLIST log4j:event
+ logger CDATA #REQUIRED
+ level CDATA #REQUIRED
+ thread CDATA #REQUIRED
+ timestamp CDATA #REQUIRED
+>
+
+<!ELEMENT log4j:message (#PCDATA)>
+<!ELEMENT log4j:NDC (#PCDATA)>
+
+<!ELEMENT log4j:throwable (#PCDATA)>
+
+<!ELEMENT log4j:locationInfo EMPTY>
+<!ATTLIST log4j:locationInfo
+ class CDATA #REQUIRED
+ method CDATA #REQUIRED
+ file CDATA #REQUIRED
+ line CDATA #REQUIRED
+>
Added: trunk/openutils-spring-rmibernate/src/test/resources/log4j.xml
===================================================================
--- trunk/openutils-spring-rmibernate/src/test/resources/log4j.xml (rev 0)
+++ trunk/openutils-spring-rmibernate/src/test/resources/log4j.xml 2008-03-14 09:13:18 UTC (rev 738)
@@ -0,0 +1,51 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
+<log4j:configuration>
+ <!-- log4j test configuration -->
+ <appender name="test-appender" class="org.apache.log4j.ConsoleAppender">
+ <layout class="org.apache.log4j.PatternLayout">
+ <param name="ConversionPattern" value="%-5p %c.%M(%C{1}.java:%L) %m%n" />
+ <!-- <param name="ConversionPattern" value="%-5p %m%n" />-->
+ </layout>
+ </appender>
+ <category name="it">
+ <priority value="debug" />
+ </category>
+ <category name="org">
+ <priority value="warn" />
+ </category>
+ <category name="com">
+ <priority value="warn" />
+ </category>
+ <category name="net">
+ <priority value="warn" />
+ </category>
+ <category name="org.hibernate">
+ <priority value="warn" />
+ </category>
+ <category name="it.openutils.test.ApplicationContextHolder">
+ <priority value="info" />
+ </category>
+ <category name="it.openutils.test.BaseDAOTestCase">
+ <priority value="INFO" />
+ </category>
+ <category name="it.openutils">
+ <priority value="INFO" />
+ </category>
+ <category name="it.openutils.test">
+ <priority value="INFO" />
+ </category>
+ <category name="it.openutils.dbupdate.DbSetupManagerImpl">
+ <priority value="INFO" />
+ </category>
+ <category name="it.openutils.hibernate.spring.rmibernate">
+ <priority value="DEBUG" />
+ </category>
+ <category name="org.acegisecurity">
+ <priority value="DEBUG" />
+ </category>
+ <root>
+ <priority value="debug" />
+ <appender-ref ref="test-appender" />
+ </root>
+</log4j:configuration>
\ No newline at end of file
Added: trunk/openutils-spring-rmibernate/src/test/resources/spring-client-managers.xml
===================================================================
--- trunk/openutils-spring-rmibernate/src/test/resources/spring-client-managers.xml (rev 0)
+++ trunk/openutils-spring-rmibernate/src/test/resources/spring-client-managers.xml 2008-03-14 09:13:18 UTC (rev 738)
@@ -0,0 +1,21 @@
+<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xmlns:util="http://www.springframework.org/schema/util"
+ xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
+ http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-2.0.xsd">
+
+ <bean id="hibernateLazyServiceRMI" class="it.openutils.spring.rmibernate.client.HibernateRmiProxyFactoryBean">
+ <property name="serviceUrl" value="rmi://localhost:1099/HibernateLazyService" />
+ <property name="serviceInterface" value="it.openutils.spring.rmibernate.shared.managers.HibernateLazyService" />
+ <property name="lookupStubOnStartup" value="false" />
+ <property name="refreshStubOnConnectFailure" value="true" />
+ <property name="cacheStub" value="true" />
+ </bean>
+ <bean id="dummyManagerRMI" class="it.openutils.spring.rmibernate.client.HibernateRmiProxyFactoryBean" lazy-init="true">
+ <property name="serviceUrl" value="rmi://localhost:1099/dummyManagerRmi" />
+ <property name="serviceInterface" value="it.openutils.spring.rmibernate.testapp.server.DummyManager" />
+ <property name="cacheStub" value="true" />
+ <property name="lookupStubOnStartup" value="false" />
+ <property name="refreshStubOnConnectFailure" value="true" />
+ <property name="hibernateLazyService" ref="hibernateLazyServiceRMI" />
+ </bean>
+</beans>
\ No newline at end of file
Added: trunk/openutils-spring-rmibernate/src/test/resources/spring-dao.xml
===================================================================
--- trunk/openutils-spring-rmibernate/src/test/resources/spring-dao.xml (rev 0)
+++ trunk/openutils-spring-rmibernate/src/test/resources/spring-dao.xml 2008-03-14 09:13:18 UTC (rev 738)
@@ -0,0 +1,12 @@
+<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xmlns:util="http://www.springframework.org/schema/util"
+ xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
+ http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-2.0.xsd">
+ <bean id="dummyDAO" parent="txProxyTemplate">
+ <property name="target">
+ <bean class="it.openutils.spring.rmibernate.testapp.server.DummyDaoImpl">
+ <property name="sessionFactory" ref="sessionFactory" />
+ </bean>
+ </property>
+ </bean>
+</beans>
\ No newline at end of file
Added: trunk/openutils-spring-rmibernate/src/test/resources/spring-database.xml
===================================================================
--- trunk/openutils-spring-rmibernate/src/test/resources/spring-database.xml (rev 0)
+++ trunk/openutils-spring-rmibernate/src/test/resources/spring-database.xml 2008-03-14 09:13:18 UTC (rev 738)
@@ -0,0 +1,24 @@
+<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xmlns:util="http://www.springframework.org/schema/util"
+ xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
+ http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-2.0.xsd">
+ <bean id="propertyConfigurer" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
+ <property name="location">
+ <value>classpath:database.properties</value>
+ </property>
+ </bean>
+ <bean id="dataSource" class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close">
+ <property name="driverClassName">
+ <value>${hibernate.connection.driver}</value>
+ </property>
+ <property name="url">
+ <value>${hibernate.connection.url}</value>
+ </property>
+ <property name="username">
+ <value>${hibernate.connection.username}</value>
+ </property>
+ <property name="password">
+ <value>${hibernate.connection.password}</value>
+ </property>
+ </bean>
+</beans>
Added: trunk/openutils-spring-rmibernate/src/test/resources/spring-hibernate.xml
===================================================================
--- trunk/openutils-spring-rmibernate/src/test/resources/spring-hibernate.xml (rev 0)
+++ trunk/openutils-spring-rmibernate/src/test/resources/spring-hibernate.xml 2008-03-14 09:13:18 UTC (rev 738)
@@ -0,0 +1,48 @@
+<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xmlns:util="http://www.springframework.org/schema/util"
+ xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
+ http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-2.0.xsd">
+
+ <bean id="sessionFactory" class="org.springframework.orm.hibernate3.LocalSessionFactoryBean">
+ <property name="dataSource">
+ <ref bean="dataSource" />
+ </property>
+ <property name="configLocation">
+ <value>classpath:hibernate.cfg.xml</value>
+ </property>
+ <property name="configurationClass">
+ <value>org.hibernate.cfg.AnnotationConfiguration</value>
+ </property>
+ <property name="hibernateProperties">
+ <props>
+ <prop key="hibernate.dialect">${hibernate.dialect}</prop>
+ <prop key="hibernate.generate_statistics">false</prop>
+ <prop key="hibernate.bytecode.use_reflection_optimizer">true</prop>
+ <prop key="hibernate.show_sql">false</prop>
+ <prop key="hibernate.use_sql_comments">true</prop>
+ <prop key="hibernate.hbm2ddl.auto">${hibernate.hbm2ddl.auto}</prop>
+ </props>
+ </property>
+ </bean>
+ <bean id="transactionManager" class="org.springframework.orm.hibernate3.HibernateTransactionManager">
+ <property name="sessionFactory">
+ <ref local="sessionFactory" />
+ </property>
+ </bean>
+ <bean id="txProxyTemplate" abstract="true"
+ class="org.springframework.transaction.interceptor.TransactionProxyFactoryBean">
+ <property name="transactionManager">
+ <ref bean="transactionManager" />
+ </property>
+ <property name="transactionAttributes">
+ <props>
+ <prop key="save*">PROPAGATION_REQUIRED</prop>
+ <prop key="delete*">PROPAGATION_REQUIRED</prop>
+ <prop key="update*">PROPAGATION_REQUIRED</prop>
+ <prop key="clean*">PROPAGATION_REQUIRED</prop>
+ <prop key="*">PROPAGATION_REQUIRED,readOnly</prop>
+ </props>
+ </property>
+ <property name="exposeProxy" value="true" />
+ </bean>
+</beans>
\ No newline at end of file
Added: trunk/openutils-spring-rmibernate/src/test/resources/spring-managers.xml
===================================================================
--- trunk/openutils-spring-rmibernate/src/test/resources/spring-managers.xml (rev 0)
+++ trunk/openutils-spring-rmibernate/src/test/resources/spring-managers.xml 2008-03-14 09:13:18 UTC (rev 738)
@@ -0,0 +1,27 @@
+<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xmlns:util="http://www.springframework.org/schema/util"
+ xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
+ http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-2.0.xsd">
+ <bean id="hibernateLazyService" parent="txProxyTemplate">
+ <property name="target">
+ <bean class="it.openutils.spring.rmibernate.server.managers.HibernateLazyServiceImpl">
+ <property name="sessionFactory" ref="sessionFactory"></property>
+ </bean>
+ </property>
+ </bean>
+ <bean id="dummyObjectManager" class="org.springframework.transaction.interceptor.TransactionProxyFactoryBean">
+ <property name="transactionManager">
+ <ref bean="transactionManager" />
+ </property>
+ <property name="transactionAttributes">
+ <props>
+ <prop key="*">PROPAGATION_REQUIRED</prop>
+ </props>
+ </property>
+ <property name="target">
+ <bean class="it.openutils.spring.rmibernate.testapp.server.DummyManagerImpl">
+ <property name="dummyDao" ref="dummyDAO" />
+ </bean>
+ </property>
+ </bean>
+</beans>
\ No newline at end of file
Added: trunk/openutils-spring-rmibernate/src/test/resources/spring-remote-rmi.xml
===================================================================
--- trunk/openutils-spring-rmibernate/src/test/resources/spring-remote-rmi.xml (rev 0)
+++ trunk/openutils-spring-rmibernate/src/test/resources/spring-remote-rmi.xml 2008-03-14 09:13:18 UTC (rev 738)
@@ -0,0 +1,22 @@
+<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xmlns:util="http://www.springframework.org/schema/util" xmlns:aop="http://www.springframework.org/schema/aop"
+ xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
+ http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-2.0.xsd
+ http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-2.0.xsd">
+ <bean class="org.springframework.remoting.rmi.RmiServiceExporter" lazy-init="false">
+ <property name="serviceName" value="HibernateLazyService" />
+ <property name="service" ref="hibernateLazyService" />
+ <property name="serviceInterface" value="it.openutils.spring.rmibernate.shared.managers.HibernateLazyService" />
+ <property name="registryPort" value="1099" />
+ <!--
+ <property name="sessionFactory" ref="sessionFactory" />
+ -->
+ </bean>
+ <bean name="/dummyManagerRmi" class="it.openutils.spring.rmibernate.server.exporter.HibernateRmiServiceExporter" lazy-init="false">
+ <property name="service" ref="dummyObjectManager" />
+ <property name="serviceName" value="dummyManagerRmi" />
+ <property name="serviceInterface" value="it.openutils.spring.rmibernate.testapp.server.DummyManager" />
+ <property name="registryPort" value="1099" />
+ <property name="sessionFactory" ref="sessionFactory" />
+ </bean>
+</beans>
Added: trunk/openutils-spring-rmibernate/src/test/resources/spring-tests.xml
===================================================================
--- trunk/openutils-spring-rmibernate/src/test/resources/spring-tests.xml (rev 0)
+++ trunk/openutils-spring-rmibernate/src/test/resources/spring-tests.xml 2008-03-14 09:13:18 UTC (rev 738)
@@ -0,0 +1,15 @@
+<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xmlns:util="http://www.springframework.org/schema/util"
+ xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
+ http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-2.0.xsd">
+
+ <!-- server side -->
+ <import resource="classpath:spring-database.xml" />
+ <import resource="classpath:spring-hibernate.xml" />
+ <import resource="classpath:spring-dao.xml" />
+ <import resource="classpath:spring-remote-rmi.xml" />
+ <import resource="classpath:spring-managers.xml" />
+
+ <!-- client side -->
+ <import resource="classpath:spring-client-managers.xml" />
+</beans>
\ No newline at end of file
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|