Skip to content
An example to show how to setup a maven project that can run an embedded version of vFabric tc Server.
Java Shell
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.mvn/wrapper
ci
gradle/wrapper
src/main/java/com/springsource/tcruntime/embeddedexample/example
.gitignore
README.md
build.gradle
gradle.properties
gradlew
gradlew.bat
mvnw
mvnw.cmd
pom.xml

README.md

tcserver-embed-example

Purpose

To demonstrate the creation and use of a basic embedded tc Runtime instance using the Pivotal Commercial Maven Repository to pull down the tc Server artifacts in a Maven project.

Prerequisites

  • Create your own Pivotal Commercial Maven Repository (vCMR) account at https://commercial-repo.pivotal.io.
  • Create the settings.xml or gradle.properties as suggested by the Pivotal Commercial Maven Repository for `Pivotal tc Server Release Repo (3.1.3+)

Build and Usage

Maven

./mvnw clean compile package
java -jar target/example-4.0.5-jar-with-dependencies.jar 

The above steps will build and run a fatjar containing all dependencies. The example will listen on port 8080

Gradle

./gradlew run

This will build and start the application listening on port 8080

Additional Documentation

Full tc Server Documentation can be found at https://tcserver.docs.pivotal.io/

More on embedded tc Server can be found at https://tcserver.docs.pivotal.io/4x/docs-tcserver/topics/postinstall-getting-started.html#postinstall-embedding-tc-server

You can’t perform that action at this time.