Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

If you want to start to implement new integration project (implement new routes) then you have the following options:

Table of Contents

...

Implement new routes in separate project and use it with OpenHub framework

This approach supposes to use OpenHub framework admin GUI as is (without any additional changes) with adding dependencies to external projects/libraries with route implementations. This approach is very similar how works OpenHub framework extensions, specifically look at How to implement new extensions.

Warning

There is one big difference between extensions and adding Project routes to OpenHub - extensions are initialized in own Spring child context but when you add external project routes then you use same Spring context like other routes implemented directly in OpenHub framework.

 

Image RemovedImage Added

This approach has several steps:

...

Tip

You can use Dynamic extension loading functionality even if you don't implement extensions, you can use extension/external library concept for initialization.

Use extensions.cfg (or extensions0.cfg) and add parameter for external library.

This approach has advantage that it's not necessary to make changes in OpenHub framework at all (only set extension properties)

...

Create new project from OpenHub framework web-admin

OpenHub framework web-admin module contains admin GUI and all necessary configurations for runnable and deployable OpenHub web application.

...

Info

If you use different database to default H2 DB then you must initialize database structure with SQL scripts for specific target databases, e.g. /db/db_schema_postgreSql.sql (core module) for PostgreSQL.

3) use Maven archetype

Use Maven archetypes for creating new project based on OpenHub framework. Maven archetype is implemented in web-admin-archetype.

Build customized project from archetype openhub-web-admin-archetype it is possible by command:

mvn archetype:generate
   -DarchetypeCatalog=(local|remote)
   -DarchetypeGroupId=org.openhubframework.openhub
   -DarchetypeArtifactId=openhub-web-admin-archetype
   -DarchetypeVersion=<version>
   -DcleverBusVersion=<version>
   -DcleverBusServerName=ESB
   -DcleverBusServerDescription="Enterprise Service Bus"

...

.