Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 4.0

Tuscany 2.0-Beta1 Samples

The Tuscany samples are shipped with Tuscany binary and source releases (see the /samples directory). If you are using Tuscany from a release distribution then make sure you are looking at the documentation that corresponds to the samples as they stood at the time of the release.

...

callback-api

Note
titleTODO

This feels like a learning-more sample. I wouldn't focus on callbacks with the first time user

sca-scopes

Note
titleTODO

This feels like a learning-more sample. I wouldn't focus on scopes with the first time user

sca-include-contribution

Note
titleTODO

This feels like a learning-more sample. I wouldn't focus on inclusion with the first time user

learning-more

Note
titleTODO

All of the run instructions here are subject to change. I just picked ones that works but ideally we'd use the command line consistently when that is operating correctly. Also Mike commented that it's unnatural and confusing to "cd running-tuscany/xyz" to run a sample. This should also be solved if we can go with the command line.

...

This contribution provides the four arithmetic operations in the calculator service, with the AddService being accessible as a web service via the URL http://localhost:8085/AddServiceComponentImage Removed, as configured in the Calculator.composite file.

...

This sample demonstrates an SCA reference that uses a web service binding which works with SDO. Instead if using JAXB style Java beans in the service interface they are replaced with SDO object.

Note
titleTODO

Sample not currently enabled - awaiting SDO support

distributed-osgi

These samples demonstrate the execution of Tuscany contributions in a OSGI environment. In particular the two bundle project in this directory define calculator objects that communicate with one another using the mechanisms defined in the OSGi remote services specifications. Here the Tuscany SCA runtime provides dynamic service discovery functionality. The calculator objects are registered as services directly with the OSGi bundle context by the bundle activator. Under the covers SCA provides the remote service disovery features that allow OSGi registered service to discover and communicate with one another across two JVMs.

...

implementation-composite

Note
titleTODO

Understand and Document

helloworld-recursive

Note
titleTODO

Understand and Document

helloworld-recursive-ws

Note
titleTODO

Understand and Document

implementation-java

The sample provides a single calculator service with a default SCA binding. The CalculatorClient exercises this interface by calling add, subtract, multiply and divide operations. This results in messages passing to the appropriate components in the composite across the local wires.

...

If you've used the example1.conf Scribe configuration from the Scribe examples 4, you should find your log message in /tmp/scribetest/sample/sample_current.

1 http://wiki.github.com/facebook/scribe/Image Removed
2 http://svn.apache.org/repos/asf/cassandra/trunk/lib/libthrift-r917130.jarImage Removed
3 http://github.com/facebook/scribe/blob/master/examples/READMEImage Removed
4 http://github.com/facebook/scribe/blob/master/examples/example1.confImage Removed

maven-osgi-junit

Note
titleTODO

Understand and Document

calculator-osgi

Note
titleTODO

Understand and Document

calculator-rest-osgi

Note
titleTODO

Understand and Document

sca-client

Samples that demonstrate the OASIS defined SCA Client API being used in simple Java applications to access SCA components running in the domain.

...

The Tuscany runtime can be run in a vanilla OSGi container such as Equinox. To do this you have to:

  • launch the OSGi container itself
  • load the Tuscany runtime bundles (all our jars are bundles) into the container
  • install a contribution packaged as an OSGi bundle

For example, to install a contribution in Equinox do the following

...

binding-extension

Note
titleTODO

Understand and Document

implementation-extension

Note
titleTODO

Understand and Document

applications

Note
titleTODO

Understand and Document

store

Note
titleTODO

Understand and Document

store-webapp

Note
titleTODO

Understand and Document