Coder Social home page Coder Social logo

camel-in-jboss7's Introduction

Sample project leveraging JBoss 7 modules to keep the dependencies lightweight.

Deploy to JBoss AS7 using: "mvn clean package jboss-as:deploy"
Start JBoss using the previes JEE profile, "./standalone.sh --server-config=standalone-preview.xml"

Switchyard 0.2 bundled in JBoss 7 was used, although the modules neede some changes to module.xml.
The affected modules and their xml configuration are:

org.apache.camel.core:2.8.0

<module xmlns="urn:jboss:module:1.0" name="org.apache.camel.core" slot="2.8.0">

    <resources>
        <resource-root path="camel-core-2.8.0.jar"/>
    </resources>

    <dependencies>
        <module name="javax.api"/>
        <module name="javax.xml.stream.api"/>
        <module name="org.fusesource.commonman" slot="1.0"/>
        <module name="org.apache.commons.logging"/>
        <module name="org.slf4j"/>
        <module name="org.switchyard.jaxb-impl" services="export" export="true"/>
    </dependencies>
</module>


-------------------------------

org.apache.camel.jms:2.8.0

<module xmlns="urn:jboss:module:1.0" name="org.apache.camel.jms" slot="2.8.0">

    <resources>
        <resource-root path="camel-jms-2.8.0.jar"/>
    </resources>

    <dependencies>
        <module name="org.apache.camel.core" slot="2.8.0"/>
        <module name="org.apache.camel.spring" slot="2.8.0"/>
        <module name="org.apache.commons.logging"/>
	<module name="org.springframework"/>
        <module name="javax.jms.api"/>
	<module name="javax.api"/>
	<module name="org.slf4j"/>
    </dependencies>
</module>

---------------------------------

org.apache.camel.spring:2.8.0

<module xmlns="urn:jboss:module:1.0" name="org.apache.camel.spring" slot="2.8.0">

    <resources>
        <resource-root path="camel-spring-2.8.0.jar"/>
    </resources>

    <dependencies>
        <module name="org.apache.camel.core" slot="2.8.0"/>
        <module name="org.apache.commons.logging"/>
        <module name="javax.jms.api"/>
        <module name="org.springframework" export="false"/>
    </dependencies>
</module>

---------------------------------

org.springframework

<module xmlns="urn:jboss:module:1.0" name="org.springframework">

    <resources>
        <resource-root path="spring-beans-3.0.5.RELEASE.jar"/>
        <resource-root path="spring-core-3.0.5.RELEASE.jar"/>
        <resource-root path="spring-context-3.0.5.RELEASE.jar"/>
        <resource-root path="spring-jms-3.0.5.RELEASE.jar"/>
        <resource-root path="spring-tx-3.0.5.RELEASE.jar"/>
    </resources>

    <dependencies>
	<module name="javax.jms.api"/>    <!-- Could probably do with javax.api here instead.. -->
	<module name="org.apache.commons.logging"/>
    </dependencies>
</module>


TODO's
-----------------

- The flow works as expected, but the logging is only displaying randombly. Either none of the logs show up, or one of the inbound or outbound logs.
- JMX is not currently working due to dependency problems which is shown during deployment. Probably the Camel main module needs dependencies on spring framework jmx logging.

camel-in-jboss7's People

Contributors

billybong avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.