mule-2.0.1/ 0000755 0001750 0001750 00000000000 11351411165 012276 5 ustar charles charles mule-2.0.1/examples/ 0000755 0001750 0001750 00000000000 11351411173 014113 5 ustar charles charles mule-2.0.1/examples/webapp/ 0000755 0001750 0001750 00000000000 11351411174 015372 5 ustar charles charles mule-2.0.1/examples/webapp/conf/ 0000755 0001750 0001750 00000000000 11351411173 016316 5 ustar charles charles mule-2.0.1/examples/webapp/conf/servlet-config.xml 0000644 0001750 0001750 00000003531 11006057162 021772 0 ustar charles charles
mule-2.0.1/examples/webapp/conf/jmx-config.xml 0000644 0001750 0001750 00000001451 10757023422 021107 0 ustar charles charles
mule-2.0.1/examples/webapp/conf/proxy.properties 0000644 0001750 0001750 00000000165 10723004310 021610 0 ustar charles charles # Set these properties for your HTTP proxy if necessary.
proxyHostname=
proxyPort=8080
proxyUsername=
proxyPassword=
mule-2.0.1/examples/webapp/dist/ 0000755 0001750 0001750 00000000000 11351411173 016334 5 ustar charles charles mule-2.0.1/examples/webapp/dist/build.xml 0000644 0001750 0001750 00000007176 10767607640 020210 0 ustar charles charles
mule-2.0.1/examples/webapp/dist/README.txt 0000644 0001750 0001750 00000001675 10747504633 020057 0 ustar charles charles +-----------------+
| Web App Example |
+-----------------+
The Web App provides a user interface to some of the Mule examples such as the
LoanBroker, Hello World and Echo examples. It also provides examples of
accessing Mule using REST style service calls and is itself an example of how
to embed Mule in a webapp.
For more information, refer to http://www.muledocs.org/Examples
+---------------------+
| Running the example |
+---------------------+
First, make sure you have set the MULE_HOME environment variable as recommended
in INSTALL.txt
Depending on the build tool you are using (Ant or Maven), you can build the
example by simply running "ant" or "mvn". This will generate a WAR file in the
"target" directory which can be deployed to any standard JEE web server.
By default, the "mvn" build will automatically start up the WAR in Jetty!
Just surf to the following URL in your browser and enjoy:
http://localhost:8090/mule-examples
mule-2.0.1/examples/webapp/dist/pom.xml 0000644 0001750 0001750 00000017346 11006063605 017664 0 ustar charles charles
4.0.0org.mule.examplesmule-example-webapp1.0warWeb App ExampleIs a webapp that provides an interface to some of the examples here such as the LoanBroker, Hello World and Echo examples. It also provides examples of accessing Mule using REST style service calls and is itself an example of how to embed Mule in a webapp.2.0.1mule-examples6.1.6jetty:run-warconfsrc/main/resourcesorg.apache.maven.pluginsmaven-war-plugin${webappName}org.mortbay.jettymaven-jetty-plugin/${webappName}${project.build.directory}/${webappName}.war10809060000org.apache.maven.pluginsmaven-surefire-plugintruesurefire-itintegration-testtestfalseorg.mule.examplesmule-example-echo${muleVersion}jettyorg.mortbay.jettyorg.mule.examplesmule-example-hello${muleVersion}jettyorg.mortbay.jettyorg.mule.examplesmule-example-stockquote${muleVersion}jettyorg.mortbay.jettyorg.mule.examplesmule-example-loanbroker-esn${muleVersion}jettyorg.mortbay.jettyorg.mule.modulesmule-module-spring-config${muleVersion}org.mule.transportsmule-transport-http${muleVersion}jettyorg.mortbay.jettyorg.mule.transportsmule-transport-file${muleVersion}org.mortbay.jettyjetty${jettyVersion}testorg.mulemule-core${muleVersion}testtest-jarcodehausCodehaus Maven 2.x Release Repositoryhttp://repository.codehaus.orgfalsecodehaus-snapshotsCodehaus Maven 2.x Snapshots Repositoryhttp://snapshots.repository.codehaus.orgtruefalsejava.netJava.net Repositoryhttp://download.java.net/maven/1/legacyapache-plugin-snapshotsApache Maven Plugins Snapshot Repositoryhttp://people.apache.org/maven-snapshot-repositorytruefalse
mule-2.0.1/examples/webapp/src/ 0000755 0001750 0001750 00000000000 11351411173 016160 5 ustar charles charles mule-2.0.1/examples/webapp/src/main/ 0000755 0001750 0001750 00000000000 11351411173 017104 5 ustar charles charles mule-2.0.1/examples/webapp/src/main/java/ 0000755 0001750 0001750 00000000000 11351411173 020025 5 ustar charles charles mule-2.0.1/examples/webapp/src/main/java/org/ 0000755 0001750 0001750 00000000000 11351411173 020614 5 ustar charles charles mule-2.0.1/examples/webapp/src/main/java/org/mule/ 0000755 0001750 0001750 00000000000 11351411173 021556 5 ustar charles charles mule-2.0.1/examples/webapp/src/main/java/org/mule/example/ 0000755 0001750 0001750 00000000000 11351411173 023211 5 ustar charles charles mule-2.0.1/examples/webapp/src/main/java/org/mule/example/rest/ 0000755 0001750 0001750 00000000000 11351411173 024166 5 ustar charles charles mule-2.0.1/examples/webapp/src/main/java/org/mule/example/rest/RestTester.java 0000644 0001750 0001750 00000001357 10754375733 027164 0 ustar charles charles /*
* $Id: RestTester.java 10789 2008-02-12 20:04:43Z dfeist $
* --------------------------------------------------------------------------------------
* Copyright (c) MuleSource, Inc. All rights reserved. http://www.mulesource.com
*
* The software in this package is published under the terms of the CPAL v1.0
* license, a copy of which has been included with this distribution in the
* LICENSE.txt file.
*/
package org.mule.example.rest;
import org.mule.component.simple.StaticComponent;
/**
* TODO This is a bogus class that has been put here so that the Corbertura plugin
* does not barf, we need to find a way to get this plug in to ignore certain modules
*/
public class RestTester extends StaticComponent
{
// nothing here
}
mule-2.0.1/examples/webapp/src/main/webapp/ 0000755 0001750 0001750 00000000000 11351411174 020363 5 ustar charles charles mule-2.0.1/examples/webapp/src/main/webapp/footer.html 0000644 0001750 0001750 00000000630 10626327574 022564 0 ustar charles charles
mule-2.0.1/examples/webapp/src/main/webapp/restputget.html 0000644 0001750 0001750 00000003115 10631662064 023465 0 ustar charles charles
Mule REST Examples
This example demostrates dispatching an event to Mule asynchronously using the Http Put method
and then receiving the event using the Http Get method.
This example uses the Servlet Connector which is part of the Http Transport to talk to Mule.
When a result is returned there will be in ascii text form so you'll need to hit the back button to return to this page.
Task for the reader
Http PUT
Http PUT will send an event asynchronously to the Mule server
Please enter something:
Http GET
Get get something back
mule-2.0.1/examples/webapp/src/main/webapp/stockquote.jsp 0000644 0001750 0001750 00000002564 10754375733 023331 0 ustar charles charles <%@ page import="org.mule.module.client.MuleClient,
org.mule.api.MuleMessage"%>
<%@ page language="java" contentType="text/html; charset=UTF-8" %>
Mule Stock Quote Example
<%
String symbol = request.getParameter("symbol");
if(symbol!=null) {
MuleClient client = new MuleClient();
MuleMessage message = client.send("vm://stockquote", symbol, null);
if(message!=null) { %>
<%if(message.getExceptionPayload()!=null) {%>
A Error occurred: <%=message.getExceptionPayload()%>
<%} else {%>
<%=message.getPayload()%>
<%}%>
<%} else {%>
Message returned is null and no error information is available. Check the logs for more information. Note you need an internet connection to invoke this service.
<%}
}%>
Enter a stock symbol:
For more information about the Stock Quote example go here.
mule-2.0.1/examples/webapp/src/main/webapp/header.html 0000644 0001750 0001750 00000000630 10626327574 022516 0 ustar charles charles
Mule Examples
mule-2.0.1/examples/webapp/src/main/webapp/images/ 0000755 0001750 0001750 00000000000 11351411174 021630 5 ustar charles charles mule-2.0.1/examples/webapp/src/main/webapp/images/mule-banner.gif 0000644 0001750 0001750 00000014033 10626327574 024543 0 ustar charles charles GIF89a` cdfޓٵ}j657GGIUVX㬮O=|~ϥȴpqt)"fSO=ź6*ʘҦC3[Hr_Ċxr_Êxʘ# ! , ` @pH,Ȥrl:ШtJZجvzxL.zn(2i
+tw%"' P
"!w)P .%0"
g #ȾΡՄ'ڠ"V!(* "%HH`!)dt Çǐȶ"3jeŏvDpIG(E\ɒI)$@͛ ̼ɳfNJzlIK(1zӧPc, U*ڴ?ѰSQ'X6jVJ[
@YT4sc
rmV*~Pܫ4tX ~1<,OҀrƆ[4i0g֥s`_P;EnԅTG$!
xfox z)AV
,gyLo;:wmj{[@0,~<*q롥ZHlVDwՁeXc
vE\A u-(%UОXU+fhIm6hIă'|NQVZQ`U2j
(PF)K1w c @vuN])Q阤!4jӐMF!x">Ap1hQ=PqbyȆ!Umb`% ]pDR[b9!ѨXJт,R"Z.&BFU