Skip to main content

Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Stardust/Knowledge Base/Testing/Standalone Spring

< Stardust‎ | Knowledge Base‎ | Testing
Revision as of 16:16, 9 November 2011 by Vikram.kodak.sungard.com (Talk | contribs) (New page: == Purpose<br> == It is possible to bootstrap an Stardust engine without any server component in a plain Spring context.<br> == Description<br> == Download Example Project<br> The ...)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Purpose

It is possible to bootstrap an Stardust engine without any server component in a plain Spring context.

Description

Download Example Project

The context provides an In-Memory Derby-database, In-Memory ActiveMQ (JMS) and In-Memory Jackrabbit (JCR). Therefore you can use (nearly) all Stardust features.

Due to the excluded server components the context is started within seconds with a full-functional Stardust engine.

This is very useful for unit testing etc. Also included are some helper classes to do unit testing.

Notice

There are also some drawbacks which should be noticed:

  • EJB-Application type is not working
  • No Spring-Remoting/Webservice-Remoting. Therefore you have to use the ServiceFactroyLocator to communicate with the Engine.

All libraries are fetched via Maven. We tried to use only libraries already used by Stardust. For some features this was not an option:

  • A more current version of Derby is included to allow InMemory usage. This is fetched via Maven Central
  • SpringTesting was included to use Spring-JUnit templates
  • SpringModules for JCR was included to provide a JCA connection without JNDI/server components.

Usage

  1. Import the attached ZIP-file as project into you Eclipse workspace (Eclipse with Maven Plugin).
  2. Check pom.xml Execute
  3. JUnitTest to verify setup
  4. Adopt/Enhance/Customize as per your requirement.


Back to the top