servicemix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gno...@apache.org
Subject svn commit: r429523 - in /incubator/servicemix/trunk/samples/servicemix-web: pom.xml src/webapp/WEB-INF/applicationContext.xml src/webapp/WEB-INF/web.xml
Date Tue, 08 Aug 2006 00:32:55 GMT
Author: gnodet
Date: Mon Aug  7 17:32:54 2006
New Revision: 429523

URL: http://svn.apache.org/viewvc?rev=429523&view=rev
Log:
Update servicemix-web to use servicemix-http in managed mode

Modified:
    incubator/servicemix/trunk/samples/servicemix-web/pom.xml
    incubator/servicemix/trunk/samples/servicemix-web/src/webapp/WEB-INF/applicationContext.xml
    incubator/servicemix/trunk/samples/servicemix-web/src/webapp/WEB-INF/web.xml

Modified: incubator/servicemix/trunk/samples/servicemix-web/pom.xml
URL: http://svn.apache.org/viewvc/incubator/servicemix/trunk/samples/servicemix-web/pom.xml?rev=429523&r1=429522&r2=429523&view=diff
==============================================================================
--- incubator/servicemix/trunk/samples/servicemix-web/pom.xml (original)
+++ incubator/servicemix/trunk/samples/servicemix-web/pom.xml Mon Aug  7 17:32:54 2006
@@ -44,6 +44,10 @@
       <artifactId>servicemix-components</artifactId>
     </dependency>
     <dependency>
+      <groupId>org.apache.servicemix</groupId>
+      <artifactId>servicemix-http</artifactId>
+    </dependency>
+    <dependency>
       <groupId>quartz</groupId>
       <artifactId>quartz</artifactId>
     </dependency>

Modified: incubator/servicemix/trunk/samples/servicemix-web/src/webapp/WEB-INF/applicationContext.xml
URL: http://svn.apache.org/viewvc/incubator/servicemix/trunk/samples/servicemix-web/src/webapp/WEB-INF/applicationContext.xml?rev=429523&r1=429522&r2=429523&view=diff
==============================================================================
--- incubator/servicemix/trunk/samples/servicemix-web/src/webapp/WEB-INF/applicationContext.xml
(original)
+++ incubator/servicemix/trunk/samples/servicemix-web/src/webapp/WEB-INF/applicationContext.xml
Mon Aug  7 17:32:54 2006
@@ -1,5 +1,6 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <beans xmlns:sm="http://servicemix.apache.org/config/1.0"
+       xmlns:http="http://servicemix.apache.org/http/1.0"
 	     xmlns:my="http://servicemix.apache.org/demo/"
        xmlns:foo="http://servicemix.apache.org/demo/">
 
@@ -20,9 +21,19 @@
 
       <!--  an example HTTP binding for use by the SpringBindingServlet  -->
       <!-- START SNIPPET: http -->
-      <sm:activationSpec componentName="httpBinding" service="foo:httpBinding" destinationService="foo:echo">
+      <sm:activationSpec componentName="servicemix-http" service="foo:httpBinding" destinationService="foo:echo">
         <sm:component>
-          <bean class="org.apache.servicemix.components.http.HttpInOutBinding" />
+          <http:component>
+            <http:configuration managed="true" />
+            <http:endpoints>
+              <http:endpoint service="foo:httpBinding"
+                             endpoint="endpoint"
+                             targetService="foo:echo" 
+                             role="consumer"
+                             locationURI="http://localhost/exampleUri/"
+                             defaultMep="http://www.w3.org/2004/08/wsdl/in-out" />
+            </http:endpoints>
+          </http:component>
         </sm:component>
       </sm:activationSpec>
       <!-- END SNIPPET: http -->

Modified: incubator/servicemix/trunk/samples/servicemix-web/src/webapp/WEB-INF/web.xml
URL: http://svn.apache.org/viewvc/incubator/servicemix/trunk/samples/servicemix-web/src/webapp/WEB-INF/web.xml?rev=429523&r1=429522&r2=429523&view=diff
==============================================================================
--- incubator/servicemix/trunk/samples/servicemix-web/src/webapp/WEB-INF/web.xml (original)
+++ incubator/servicemix/trunk/samples/servicemix-web/src/webapp/WEB-INF/web.xml Mon Aug 
7 17:32:54 2006
@@ -33,21 +33,17 @@
 
   <!--  the HTTP binding servlet -->
   
-  <!-- START SNIPPET: httpBinding -->
+  <!-- START SNIPPET: servicemix-http-->
   <servlet>
-    <servlet-name>BindingServlet</servlet-name>
+    <servlet-name>HttpManagedServlet</servlet-name>
     <servlet-class>
-      org.apache.servicemix.components.http.SpringBindingServlet
+      org.apache.servicemix.http.HttpManagedServlet
     </servlet-class>
-    <init-param>
-      <param-name>endpoint</param-name>
-      <param-value>httpBinding</param-value>
-    </init-param>
     <load-on-startup>1</load-on-startup>
   </servlet>
 
   <servlet-mapping>
-    <servlet-name>BindingServlet</servlet-name>
+    <servlet-name>HttpManagedServlet</servlet-name>
     <url-pattern>/jbi/*</url-pattern>
   </servlet-mapping>
 



Mime
View raw message