You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ode.apache.org by rr...@apache.org on 2009/07/28 20:10:19 UTC
svn commit: r798629 - in /ode/trunk: Buildfile
jbi/src/test/resources/HelloWorldJbiTest/smx.xml
jbi/src/test/resources/jndi.xml
Author: rr
Date: Tue Jul 28 18:10:18 2009
New Revision: 798629
URL: http://svn.apache.org/viewvc?rev=798629&view=rev
Log:
ODE-499: Fix for HelloWorldJbiTest - it needs jndi bean definition
Removed:
ode/trunk/jbi/src/test/resources/jndi.xml
Modified:
ode/trunk/Buildfile
ode/trunk/jbi/src/test/resources/HelloWorldJbiTest/smx.xml
Modified: ode/trunk/Buildfile
URL: http://svn.apache.org/viewvc/ode/trunk/Buildfile?rev=798629&r1=798628&r2=798629&view=diff
==============================================================================
--- ode/trunk/Buildfile (original)
+++ ode/trunk/Buildfile Tue Jul 28 18:10:18 2009
@@ -578,6 +578,7 @@
test.setup task(:prepare_jbi_tests) do |task|
cp _("src/main/jbi/ode-jbi.properties"), _("target/test/smx/ode")
cp _("src/main/jbi/hibernate.properties"), _("target/test/smx/ode")
+ rm_rf Dir["target/test/resources"]
cp_r _("src/test/resources"), _("target/test/resources")
end
end
Modified: ode/trunk/jbi/src/test/resources/HelloWorldJbiTest/smx.xml
URL: http://svn.apache.org/viewvc/ode/trunk/jbi/src/test/resources/HelloWorldJbiTest/smx.xml?rev=798629&r1=798628&r2=798629&view=diff
==============================================================================
--- ode/trunk/jbi/src/test/resources/HelloWorldJbiTest/smx.xml (original)
+++ ode/trunk/jbi/src/test/resources/HelloWorldJbiTest/smx.xml Tue Jul 28 18:10:18 2009
@@ -18,36 +18,49 @@
-->
<beans xmlns:sm="http://servicemix.apache.org/config/1.0"
- xmlns:http="http://servicemix.apache.org/http/1.0"
- xmlns:eip="http://servicemix.apache.org/eip/1.0"
- xmlns:hello="urn:/HelloWorld2.wsdl"
- >
+ xmlns:http="http://servicemix.apache.org/http/1.0"
+ xmlns:eip="http://servicemix.apache.org/eip/1.0"
+ xmlns:hello="urn:/HelloWorld2.wsdl"
+ xmlns:util="http://www.springframework.org/schema/util"
+ >
- <bean id="transactionManager" class="org.apache.geronimo.transaction.manager.GeronimoTransactionManager"/>
-
- <sm:container
- id="jbi"
- embedded="true"
- rootDir="target/test/smx"
- transactionManager="#transactionManager"
- >
- <sm:activationSpecs>
- <sm:activationSpec id="hello-http">
- <sm:component>
- <http:component>
- <http:endpoints>
- <http:endpoint
- service="hello:HelloService"
- endpoint="http"
- defaultOperation="Hello"
- role="consumer"
- locationURI="http://localhost:8192/HelloHttp/"
- defaultMep="http://www.w3.org/2004/08/wsdl/in-out"
- soap="true" />
- </http:endpoints>
- </http:component>
- </sm:component>
- </sm:activationSpec>
- </sm:activationSpecs>
- </sm:container>
+ <bean id="transactionManager" class="org.apache.geronimo.transaction.manager.GeronimoTransactionManager"/>
+
+ <bean id="jndi"
+ class="org.apache.xbean.spring.jndi.SpringInitialContextFactory"
+ factory-method="makeInitialContext"
+ singleton="true"
+ >
+ <property name="entries" ref="jndiEntries" />
+ </bean>
+
+ <util:map id="jndiEntries">
+ </util:map>
+
+ <sm:container
+ id="jbi"
+ embedded="true"
+ rootDir="target/test/smx"
+ transactionManager="#transactionManager"
+ depends-on="jndi"
+ >
+ <sm:activationSpecs>
+ <sm:activationSpec id="hello-http">
+ <sm:component>
+ <http:component>
+ <http:endpoints>
+ <http:endpoint
+ service="hello:HelloService"
+ endpoint="http"
+ defaultOperation="Hello"
+ role="consumer"
+ locationURI="http://localhost:8192/HelloHttp/"
+ defaultMep="http://www.w3.org/2004/08/wsdl/in-out"
+ soap="true" />
+ </http:endpoints>
+ </http:component>
+ </sm:component>
+ </sm:activationSpec>
+ </sm:activationSpecs>
+ </sm:container>
</beans>