Commit in servicemix/tooling/servicemix-web on MAIN
src/webapp/WEB-INF/applicationContext.xml+20-41.3 -> 1.4
                  /web.xml+25-11.3 -> 1.4
.cvsignore+41.1 -> 1.2
src/webapp/mbeanDetail.jsp+4-41.1 -> 1.2
src/webapp/examples/index.html+18added 1.1
+71-9
1 added + 4 modified, total 5 files
added an example to the web application to show ServiceMix working with the HTTP binding

servicemix/tooling/servicemix-web/src/webapp/WEB-INF
applicationContext.xml 1.3 -> 1.4
diff -u -r1.3 -r1.4
--- applicationContext.xml	15 Sep 2005 10:21:38 -0000	1.3
+++ applicationContext.xml	20 Sep 2005 14:43:10 -0000	1.4
@@ -14,6 +14,14 @@
 
     <components>
 
+      <!--  an example HTTP binding for use by the SpringBindingServlet  -->
+      <!-- START SNIPPET: http -->
+      <component id="httpBinding" service="foo:httpBinding" class="org.servicemix.components.http.HttpInOutBinding" destinationService="foo:echo"/>
+      <!-- END SNIPPET: http -->
+
+      <!--  a simple Echo service to test InOut message exchanges using HTTP-->
+      <component id="echo" service="foo:echo" class="org.servicemix.components.util.EchoComponent"/>
+
       <!-- lets kick off a timer to send messages on an input destination topic -->
       <component id="timer" service="my:timer" class="org.servicemix.components.quartz.QuartzComponent" destinationService="my:inputSender">
         <property name="triggers">
@@ -33,6 +41,7 @@
           </map>
         </property>
       </component>
+      
       <component id="inputSender" service="my:inputSender" class="org.servicemix.components.jms.JmsSenderComponent">
         <property name="template">
           <bean class="org.springframework.jms.core.JmsTemplate">
@@ -106,18 +115,25 @@
   </bean>
 
   <!-- message broker -->
+  
+  <!--  ActiveMQ 3.x  -->
   <bean id="broker" class="org.activemq.spring.BrokerFactoryBean">
      <property name="config" value="/WEB-INF/activemq.xml"/>
    </bean>
-
+  
+  <!--  ActiveMQ 4.x  -->
+  <!-- 
+  <bean id="broker" class="org.activemq.broker.BrokerService" init-method="start">
+    <property name="transportConnectorURIs" value="tcp://localhost:61636"/>
+  </bean>
+   -->
+  
   <bean id="transactionManager" class="org.jencks.factory.TransactionManagerFactoryBean"/>
 
   <bean id="jmsFactory" class="org.activemq.pool.PooledConnectionFactory">
     <property name="connectionFactory">
       <bean class="org.activemq.ActiveMQConnectionFactory">
-        <property name="brokerURL">
-          <value>tcp://localhost:61636</value>
-        </property>
+        <constructor-arg value="tcp://localhost:61636"/>
       </bean>
     </property>
   </bean>

servicemix/tooling/servicemix-web/src/webapp/WEB-INF
web.xml 1.3 -> 1.4
diff -u -r1.3 -r1.4
--- web.xml	15 Sep 2005 10:21:39 -0000	1.3
+++ web.xml	20 Sep 2005 14:43:10 -0000	1.4
@@ -15,7 +15,9 @@
   </context-param>
   <context-param>
     <param-name>contextClass</param-name>
-    <param-value>org.servicemix.jbi.config.XmlWebApplicationContext</param-value>
+    <param-value>
+      org.servicemix.jbi.config.XmlWebApplicationContext
+    </param-value>
   </context-param>
 
   <listener>
@@ -32,6 +34,28 @@
     <servlet-class>org.servicemix.web.jmx.JMXServlet</servlet-class>
     <load-on-startup>1</load-on-startup>
   </servlet>
+
+  <!--  the HTTP binding servlet -->
+  
+  <!-- START SNIPPET: httpBinding -->
+  <servlet>
+    <servlet-name>BindingServlet</servlet-name>
+    <servlet-class>
+      org.servicemix.components.http.SpringBindingServlet
+    </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>
+    <url-pattern>/jbi/*</url-pattern>
+  </servlet-mapping>
+
+  <!-- END SNIPPET: httpBinding -->
 
   <servlet-mapping>
     <servlet-name>JMXServlet</servlet-name>

servicemix/tooling/servicemix-web
.cvsignore 1.1 -> 1.2
diff -u -r1.1 -r1.2
--- .cvsignore	12 Sep 2005 08:44:18 -0000	1.1
+++ .cvsignore	20 Sep 2005 14:43:10 -0000	1.2
@@ -1,3 +1,7 @@
 target
 .project
 .classpath
+install
+derbydb
+deploy
+activemq-data

servicemix/tooling/servicemix-web/src/webapp
mbeanDetail.jsp 1.1 -> 1.2
diff -u -r1.1 -r1.2
--- mbeanDetail.jsp	12 Sep 2005 17:45:45 -0000	1.1
+++ mbeanDetail.jsp	20 Sep 2005 14:43:10 -0000	1.2
@@ -9,17 +9,17 @@
 
 <h1>MBean Details</h1>
 
-<h2>Properties</h2>
+<h2>MBean Attributes</h2>
 
 <jsp:include page="jmx/">
- <jsp:param name="view" value="properties"/>
+ <jsp:param name="view" value="attributes"/>
  <jsp:param name="style" value="html"/>
 </jsp:include>
 
-<h2>Attributes</h2>
+<h2>ObjectName Properties</h2>
 
 <jsp:include page="jmx/">
- <jsp:param name="view" value="attributes"/>
+ <jsp:param name="view" value="properties"/>
  <jsp:param name="style" value="html"/>
 </jsp:include>
 

servicemix/tooling/servicemix-web/src/webapp/examples
index.html added at 1.1
diff -N index.html
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ index.html	20 Sep 2005 14:43:10 -0000	1.1
@@ -0,0 +1,18 @@
+<html>
+<head>
+<title>ServiceMix Web Examples</title>
+<link rel="stylesheet" href="" type="text/css">
+</head>
+
+<body>
+
+<h1>ServiceMix Web Examples</h1>
+
+<p>Welcome to the web examples for ServiceMix</p>
+
+<ul>
+<li><a href="">perform a GET</a> into the HTTP binding</li>
+</ul>
+
+</body>
+</html>
CVSspam 0.2.8



Reply via email to