Skip to content

Latest commit

 

History

History
84 lines (58 loc) · 2.8 KB

README.md

File metadata and controls

84 lines (58 loc) · 2.8 KB

SwitchYard on OpenShift Express

This template helps you get up and running quickly with a SwitchYard application on OpenShift Express.

Create an account at http://openshift.redhat.com/

Use the 'rhc' client tool to create a new application. These instructions assume the name 'swydapp' is used, but you can use any name you like. The application type can be 'jboss-as7' or 'jbosseap-6.0'. To include the SwitchYard modules in your application instance, include 'switchyard-0.6' in the list of cartridges as well.

rhc app create swydapp jbosseap-6.0 switchyard-0.6

Add this upstream SwitchYard repo

cd swydapp
git remote add upstream -m master git://github.com/jboss-switchyard/switchyard-openshift.git
git pull -s recursive -X theirs upstream master
git apply standalone.diff
git add .
git commit -m 'Added SwitchYard subsystem'

Then push the repo to origin

git push

That's it, you can now checkout your application at:

http://swydapp-$yourdomain.rhcloud.com

Samples deployed with your application

This repository will deploy a sample called osdemo.jar binary deployment. You can checkout the SOAP WSDL of this sample at

http://swydapp-$yourdomain.rhcloud.com/OrderService/OrderService?wsdl

You can test this application using your favourite SOAP client. A valid SOAP request is shown here:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
   xmlns:urn="urn:switchyard-quickstart:bean-service:1.0">
   <soapenv:Header/>
   <soapenv:Body>
      <urn:submitOrder>
         <order>
            <orderId>1</orderId>
            <itemId>BUTTER</itemId>
            <quantity>20</quantity>
         </order>
      </urn:submitOrder>
   </soapenv:Body>
</soapenv:Envelope>

Source development

This repository is also a barebone SwitchYard application for source development. Read more at the cloud link of your application from here, once it is deployed.

http://swydapp-$yourdomain.rhcloud.com

Remember to enable openshift profile, if you update the source files, by renaming the pom.xml's profile from

<id>switchyard</id>

We encourage developers to create an openshift account if they want to make use of the Biamex cloud facilties.

You can create an account at: http://www.openshift.com/

Once you have created and account you can send a request to join the core development team which will give you access to the cloud services.

You will need to identify your personal SSH Key via the openshift website and then you can checkout the code and begin developing.

cd workspace
git clone ssh://<YourSSHKey>@helloworldwebapp-biamex.rhcloud.com/~/git/helloworldwebapp.git/

5369f9d4c81c7a9de131a24cd485c4479dac8765