Versions Compared

Key

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

...

Maven modules

Code Block
<groupId>org.cleverbus<openhubframework</groupId>
<artifactId>cleverbus-integration<<artifactId>openhub</artifactId>


CleverBus framework OpenHub framework consists of the following Maven modules:

  • common: module contains useful functions for other modules
  • core-api: user API for writing new routes with CleverBuswith OpenHub framework
  • core-spi: interface for internal use in CleverBus componentsOpenHub framework components
  • core: basic implementation module
  • test: module with basic configuration and parent classes for tests
  • components: CleverBus componentsOpenHub framework components
  • examples: examples how to use CleverBususe OpenHub framework
  • web-admin: admin GUI web application
  • web-admin-archetype: Maven archetype for easy creation of new CleverBus project

Image Removed
Image Added

Code Block
            <dependency>
                <groupId>org.cleverbus<openhubframework</groupId>
                <artifactId>cleverbus<artifactId>openhub-common</artifactId>
                <version>${project.version}</version>
            </dependency>
            <dependency>
                <groupId>org.cleverbus<openhubframework</groupId>
                <artifactId>cleverbus<artifactId>openhub-core-api</artifactId>
                <version>${project.version}</version>
            </dependency>
            <dependency>
                <groupId>org.cleverbus<openhubframework</groupId>
                <artifactId>cleverbus<artifactId>openhub-core-spi</artifactId>
                <version>${project.version}</version>
            </dependency>
            <dependency>
                <groupId>org.cleverbus<openhubframework</groupId>
                <artifactId>cleverbus<artifactId>openhub-core</artifactId>
                <version>${project.version}</version>
            </dependency>
            <dependency>
                <groupId>org.cleverbus<openhubframework</groupId>
                <artifactId>cleverbus<artifactId>openhub-components</artifactId>
                <version>${project.version}</version>
            </dependency>
            <dependency>
                <groupId>org.cleverbus<openhubframework</groupId>
                <artifactId>cleverbus<artifactId>openhub-test</artifactId>
                <version>${project.version}</version>
            </dependency>
            <dependency>
                <groupId>org.cleverbus<openhubframework</groupId>
                <artifactId>cleverbus<artifactId>openhub-examples</artifactId>
                <version>${project.version}</version>
            </dependency>
Info
There were the following names before 1.1 version:
  • groupId: com.cleverlance.cleverbus
  • artifactIds start with sc- prefix


Tip

CleverBus OpenHub framework depends on several Camel components and if you want to use another Camel component with same Camel's version then you can do it:

  1. import dependencies from CleverBusOpenHub framework

    Code Block
    <dependency>
     <groupId>org.cleverbus<openhubframework</groupId>
     <artifactId>cleverbus-integration<<artifactId>openhub</artifactId>
     <version>${cleverBusopenhub-version}</version>
     <scope>import</scope>
     <type>pom</type>
    </dependency>


  2. use specific component which you want

    Code Block
    <dependency>
     <groupId>org.apache.camel</groupId>
     <artifactId>camel-crypto</artifactId>
    </dependency>

Since 1.1 version.

 



Spring contexts

CleverBus uses OpenHub framework uses and is configured by Spring framework.

...

  • root application context; Apache Camel, database and security (Spring security) is initialized in this context
  • spring-ws: Spring Web Services context
  • spring-admin-mvc: Spring Web MVC context


Image RemovedSpring contexts dependenciesImage Added

 

Image RemovedSpring configurationImage Added

Spring profiles

CleverBus framework OpenHub framework uses Spring profiles to simplify configuration for different target environments:

...

Spring configuration for tests

Image RemovedImage Added

Maven profiles

...

  • esb.dev
  • esb.prod
  • esb.psSqlb - profile for PostgreSQL database
  • esb.psSql.prod - profile for PostgreSQL database but PostgreSQL libraries are "provided"

 

CleverBus compilation OpenHub framework compilation with Maven for local use (=dev) with PostgreSQL database:

...