I got the whole demo working, at last! Here are my notes. Feel free to massage these into a proper tutorial :)<div><br></div><div>Lines beginning w/ # are notes. Any other line represents a command.<br><div><br></div><div>
<div># install SwitchYard Forge plugin from using the SwitchYard installer from <a href="http://downloads.jboss.org/switchyard/releases/v0.5.Beta1/switchyard-installer-0.5.0.Beta1.zip">http://downloads.jboss.org/switchyard/releases/v0.5.Beta1/switchyard-installer-0.5.0.Beta1.zip</a></div>
<div># update installer.properties:</div><div># switchyard.tools.url=<a href="http://downloads.jboss.org/switchyard/releases/v0.5.Beta1/switchyard-tools-0.5.0.Beta1.zip">http://downloads.jboss.org/switchyard/releases/v0.5.Beta1/switchyard-tools-0.5.0.Beta1.zip</a></div>
<div># if using Java 7, remove child notes of <fileset dir="${java.share.dir}"> in build.xml</div><div>ant install-forge</div><div><br></div><div>new-project --named greeting --topLevelPackage org.example.greeting</div>
<div>project install-facet switchyard</div><div> ? Application name (e.g. myApp) greeting</div><div>project install-facet switchyard.bpm</div><div>bpm-service create --serviceName Greeting</div><div>project install-facet switchyard.bean</div>
<div>bean-service create --serviceName Hello</div><div>bean-service create --serviceName Goodbye</div><div>switchyard create-service-test --serviceName Greeting</div><div><br></div><div># copy file Greeting.bpmn to src/main/resources/META-INF/</div>
<div># replace contents of HelloBean.java and GoodbyeBean.java process method w/ System.out.println("Hello, " + content); and System.out.println("Goodbye, " + content); respectively</div><div># change signature of method on Greeting to void greet(String name);</div>
<div># change message in GreetingTest to service.sendInOnly("JAX");</div><div># add <component name="Hello"></component> and <component name="Goodbye"></component> nodes as children of the <composite> node in switchyard.xml</div>
<div><br></div><div>switchyard add-reference --referenceName Hello --interfaceType java --interface org.example.greeting.Hello --componentName Hello</div><div>switchyard add-reference --referenceName Goodbye --interfaceType java --interface org.example.greeting.Goodbye --componentName Goodbye</div>
<div><br></div><div>test</div><div><br></div><div>switchyard promote-service --serviceName Greeting</div><div>camel-binding bind-service --serviceName Greeting --configURI file:///tmp/input</div><div><br></div><div>build</div>
<div><br></div><div># deploy target/greeting.jar to SwitchYard AS 7 Server (<a href="http://downloads.jboss.org/switchyard/releases/v0.5.Beta1/switchyard-as7-0.5.0.Beta1.zip">http://downloads.jboss.org/switchyard/releases/v0.5.Beta1/switchyard-as7-0.5.0.Beta1.zip</a>)</div>
<div><br></div><div>mkdir /tmp/input</div><div>echo "SwitchYard" > /tmp/input/message.txt</div><div><br></div><div># Observe the following output in the AS 7 console:</div><div># INFO [stdout] (Camel (camel-5) thread #10 - file:///tmp/input) Hello, SwitchYard</div>
<div><div># INFO [stdout] (Camel (camel-5) thread #10 - file:///tmp/input) </div><div># INFO [stdout] (Camel (camel-5) thread #10 - file:///tmp/input) Goodbye, SwitchYard</div><div># INFO [stdout] (Camel (camel-5) thread #10 - file:///tmp/input) </div>
</div><div><br></div><div>Good luck!</div><div><br></div><div>-Dan</div></div><div><div><br><div class="gmail_quote">On Fri, Jul 6, 2012 at 6:34 PM, Dan Allen <span dir="ltr"><<a href="mailto:dan.j.allen@gmail.com" target="_blank">dan.j.allen@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On Fri, Jul 6, 2012 at 5:53 PM, Keith Babo <span dir="ltr"><<a href="mailto:kbabo@redhat.com" target="_blank">kbabo@redhat.com</a>></span> wrote:<br>
</div><div class="gmail_quote"><div class="im"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF"><div>This is a "feature" of the XML validation in Eclipse. Disable "Honour all scheme locations" under XML - Validation (or something like that).<br></div></div></blockquote></div>
<div>
<br>When I got back a test with lots of red marks, I should have asked my teacher "is it possible to turn off this validation feature?"<br><br>hahaha <br></div><span class="HOEnZb"><font color="#888888"><div><br clear="all">
-Dan<br></div></font></span></div><div class="HOEnZb"><div class="h5"><br>-- <br>
<div>Dan Allen</div>Principal Software Engineer, Red Hat | Author of Seam in Action<br>Registered Linux User #231597<br><br><div><a href="http://google.com/profiles/dan.j.allen" target="_blank">http://google.com/profiles/dan.j.allen</a><br>
<a href="http://mojavelinux.com" target="_blank">http://mojavelinux.com</a><br><a href="http://mojavelinux.com/seaminaction" target="_blank">http://mojavelinux.com/seaminaction</a><br></div><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div>Dan Allen</div>Principal Software Engineer, Red Hat | Author of Seam in Action<br>Registered Linux User #231597<br><br><div><a href="http://google.com/profiles/dan.j.allen" target="_blank">http://google.com/profiles/dan.j.allen</a><br>
<a href="http://mojavelinux.com" target="_blank">http://mojavelinux.com</a><br><a href="http://mojavelinux.com/seaminaction" target="_blank">http://mojavelinux.com/seaminaction</a><br></div><br>
</div></div></div>