You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicemix.apache.org by gn...@apache.org on 2008/09/16 14:48:15 UTC
svn commit: r695848 - in
/servicemix/components/engines/servicemix-cxf-se/trunk/src/test:
java/org/apache/servicemix/cxfse/GreeterImpl.java resources/log4j.properties
Author: gnodet
Date: Tue Sep 16 05:48:15 2008
New Revision: 695848
URL: http://svn.apache.org/viewvc?rev=695848&view=rev
Log:
SM-1576: Change endpoints lifecycle to use activate / start / stop / deactivate
Modified:
servicemix/components/engines/servicemix-cxf-se/trunk/src/test/java/org/apache/servicemix/cxfse/GreeterImpl.java
servicemix/components/engines/servicemix-cxf-se/trunk/src/test/resources/log4j.properties
Modified: servicemix/components/engines/servicemix-cxf-se/trunk/src/test/java/org/apache/servicemix/cxfse/GreeterImpl.java
URL: http://svn.apache.org/viewvc/servicemix/components/engines/servicemix-cxf-se/trunk/src/test/java/org/apache/servicemix/cxfse/GreeterImpl.java?rev=695848&r1=695847&r2=695848&view=diff
==============================================================================
--- servicemix/components/engines/servicemix-cxf-se/trunk/src/test/java/org/apache/servicemix/cxfse/GreeterImpl.java (original)
+++ servicemix/components/engines/servicemix-cxf-se/trunk/src/test/java/org/apache/servicemix/cxfse/GreeterImpl.java Tue Sep 16 05:48:15 2008
@@ -50,6 +50,7 @@
private ComponentContext context;
public String greetMe(String me) {
+ String txt = null;
try {
// here use client api to test the injected context to invoke another endpoint
@@ -71,11 +72,12 @@
exchange.setInterfaceName(new QName("http://apache.org/cxf/calculator", "CalculatorPortType"));
exchange.setOperation(new QName("http://apache.org/cxf/calculator", "add"));
client.sendSync(exchange);
-
+ txt = "Hello " + me + " " + context.getComponentName();
+ client.done(exchange);
} catch (JBIException e) {
//
}
- return "Hello " + me + " " + context.getComponentName();
+ return txt;
}
public String greetMeLater(long later) {
Modified: servicemix/components/engines/servicemix-cxf-se/trunk/src/test/resources/log4j.properties
URL: http://svn.apache.org/viewvc/servicemix/components/engines/servicemix-cxf-se/trunk/src/test/resources/log4j.properties?rev=695848&r1=695847&r2=695848&view=diff
==============================================================================
--- servicemix/components/engines/servicemix-cxf-se/trunk/src/test/resources/log4j.properties (original)
+++ servicemix/components/engines/servicemix-cxf-se/trunk/src/test/resources/log4j.properties Tue Sep 16 05:48:15 2008
@@ -21,7 +21,7 @@
#
# The logging properties used during tests..
#
-log4j.rootLogger=DEBUG, stdout
+log4j.rootLogger=TRACE, stdout
log4j.logger.org.springframework=INFO
log4j.logger.org.apache.activemq=INFO