< Previous | Front page | Next >
Skip to end of metadata
Go to start of metadata

The easiest way to get started with testing an application on SwitchYard is to take one of the distribution's Quickstart examples and run it.  All of the example applications in our Quickstarts repository are included in quickstarts/ directory of your installation.

The Quickstarts provided in the distribution are source only i.e. they are not pre-built.  Building them is very easy.  You just need to make sure you have Maven 3 configured on your system and then simply execute mvn clean install in the root of the quickstarts folder.

For the purpose of testing your SwitchYard distribution and simply getting something running quickly, the following quickstart applications are a good jumping off point:

  • bean-service : implementing a service using a CDI bean and exposing that over a SOAP gateway
  • bpm-service : using BPMN 2 to provide and consume SwitchYard services
  • camel-service : basic routing example using XML and Java DSL Camel routes
  • camel-jms-binding : demonstrates how a Camel component can be used as a SwitchYard gateway
  • demos/orders : web application which invokes a SwitchYard service from a JSF

These quickstarts are just a small sample of the available example applications.  Check out the other apps for examples of other features in SwitchYard.

Running the Quickstarts in Eclipse

The SwitchYard quickstarts can also be easily run in Eclipse.

To do this, you have to first modify the default Eclipse configuration to avoid XML cosmetic errors:

  • Configure XML Validation to Avoid Cosmetic Errors
  • Navigate to: Window->Preferences->XML->XML Files->Validation
  • Uncheck "Honour all XML schema locations"

To import a SwitchYard quickstart into Eclipse:

  • Import a SwitchYard Quickstart
  • Navigate to: File->Import->Maven->Existing Maven Projects
  • Select the quickstart that you want to import from the SwitchYard Quickstart directory (e.g., /local/opt/switchyard/switchyard-as7-0.6/quickstarts/bean-service)

Once the quickstart is imported, you then deploy it to a SwitchYard enabled server and execute the quickstart's client class as a JUnit test.

For more information on installing and using SwitchYard tooling in Eclipse, see:  https://docs.jboss.org/author/display/SWITCHYARD/Eclipse

Labels:
None
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.
  1. Oct 19, 2014

    Hi,

    I tried to build the quick start and got the following errors:

    -----------

    [ERROR] The build could not read 65 projects -> [Help 1]

    [ERROR]   

    [ERROR]   The project org.switchyard.quickstarts:switchyard-bean-service:2.0.0.Alpha3 (/Users/thangdo/apps/jboss-eap-6.3-switchyard/quickstarts/bean-service/pom.xml) has 9 errors

    [ERROR]     Non-resolvable import POM: Failure to find org.jboss.bom:eap6-supported-artifacts:pom:6.3.0.GA in http://repository.jboss.org/nexus/content/groups/public/ was cached in the local repository, resolution will not be reattempted until the update interval of jboss-public-repository-group has elapsed or updates are forced @ org.switchyard:switchyard-bom:2.0.0.Alpha3, /Users/thangdo/.m2/repository/org/switchyard/switchyard-bom/2.0.0.Alpha3/switchyard-bom-2.0.0.Alpha3.pom, line 44, column 25 -> [Help 2]

    [ERROR]     Non-resolvable import POM: Failure to find org.jboss.as:jboss-as-parent:pom:7.4.0.Final-redhat-19 in http://repository.jboss.org/nexus/content/groups/public/ was cached in the local repository, resolution will not be reattempted until the update interval of jboss-public-repository-group has elapsed or updates are forced @ org.switchyard:switchyard-bom:2.0.0.Alpha3, /Users/thangdo/.m2/repository/org/switchyard/switchyard-bom/2.0.0.Alpha3/switchyard-bom-2.0.0.Alpha3.pom, line 51, column 25 -> [Help 2]

    [ERROR]     'dependencies.dependency.version' for org.switchyard:switchyard-api:jar is missing. @ line 74, column 21

    [ERROR]     'dependencies.dependency.version' for org.switchyard.components:switchyard-component-bean:jar is missing. @ line 78, column 21

    [ERROR]     'dependencies.dependency.version' for org.switchyard.components:switchyard-component-soap:jar is missing. @ line 82, column 21

    [ERROR]     'dependencies.dependency.version' for org.switchyard:switchyard-test:jar is missing. @ line 86, column 21

    [ERROR]     'dependencies.dependency.version' for org.switchyard.components:switchyard-component-test-mixin-cdi:jar is missing. @ line 91, column 21

    .....

    [ERROR]   

    [ERROR]   The project org.switchyard.quickstarts.demos:switchyard-demo-transaction-propagation:2.0.0.Alpha3 (/Users/thangdo/apps/jboss-eap-6.3-switchyard/quickstarts/demos/transaction-propagation/pom.xml) has 2 errors

    [ERROR]     Non-resolvable import POM: Failure to find org.jboss.bom:eap6-supported-artifacts:pom:6.3.0.GA in http://repository.jboss.org/nexus/content/groups/public/ was cached in the local repository, resolution will not be reattempted until the update interval of jboss-public-repository-group has elapsed or updates are forced @ org.switchyard:switchyard-bom:2.0.0.Alpha3, /Users/thangdo/.m2/repository/org/switchyard/switchyard-bom/2.0.0.Alpha3/switchyard-bom-2.0.0.Alpha3.pom, line 44, column 25 -> [Help 2]

    [ERROR]     Non-resolvable import POM: Failure to find org.jboss.as:jboss-as-parent:pom:7.4.0.Final-redhat-19 in http://repository.jboss.org/nexus/content/groups/public/ was cached in the local repository, resolution will not be reattempted until the update interval of jboss-public-repository-group has elapsed or updates are forced @ org.switchyard:switchyard-bom:2.0.0.Alpha3, /Users/thangdo/.m2/repository/org/switchyard/switchyard-bom/2.0.0.Alpha3/switchyard-bom-2.0.0.Alpha3.pom, line 51, column 25 -> [Help 2]

    [ERROR] 

    [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.

    [ERROR] Re-run Maven using the -X switch to enable full debug logging.

    [ERROR] 

    [ERROR] For more information about the errors and possible solutions, please read the following articles:

    [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException

    [ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException

    --------------------

    Could you give me some hints please.

    Regards.