IntroductionTwister is designed to be used in two ways: in a standalone server mode, invoked as a Web Service through XML over HTTP and in an embedded mode, executed in the same VM as your application and called directly through your method invocation. Only the embedded mode is supported by the current version of twister but we'll be working on the web service mode very shortly and will release it as soon as possible. We will keep a great attention in making the process of migrating from one mode to another very simple. Embedding Twister in your applicationTo embed twister in your application, you will need to complete the following steps:
Classpath and dependenciesTo setup your classpath for Twister you will need several li braries. To run, twister needs a persistence layer with a relational database and an XML database, many XML libraries and other utility libraries. To define the classpath used by twister in your ant scripts, copy and paste the content of the file ant-cp.txt located in the bin directory of twister's distribution. When this is done, just add this classpath definition to your application classpath and everything should be alright. If you are using maven (which is a great idea), use the dependencies in the project.xml located in the bin directory of twister's distribution. |