Giter Site home page Giter Site logo

fuseweblogicbeaconnection's Introduction

fuseWeblogicBEAconnection

An example on how to connect to weblogic BEA with camel Jms component on Jboss Fuse.

The main issue to overcome in order to have a jms BEA connector deployed in Jboss fuse is about OSGi compliance of Weblogic JMS driver, basically what has been described in:

Solution/Workaround

The solution is based on:

  • Force the weblogic driver to use the correct classloader by using the com.github.valdar.jndi.JndiFactoryFactory class to instantiate the Weblogic Jms connection factory:
<bean id="factory" class="com.github.valdar.jndi.JndiFactoryFactory"/>
<bean id="webLogicJmsConnectionFactory" factory-ref="factory" factory-method="createJndiObjectFactory" init-method="afterPropertiesSet">
    <property name="jndiTemplate" ref="jndiWebLogicTemplate"/>
    <property name="jndiName" value="WWPConnectionFactory"/>
    <property name="proxyInterface" value="javax.jms.ConnectionFactory"/>
</bean>
  • Be sure that weblogic wrapped bundle doesn't export javax.* package by:
osgi:install wrap:file://<projecthome>/wlthint3client.jar,file://wlthint3client.bnd/wlthint3client.bnd

this is done with the setting in wlthint3client.bnd.

Doing the same in a fabric profile

From Fuse 6.3 Roll up patch 1, you can achieve the same directly in a profile; to add the wrapped wlthint3client.jar in a profile just add in io.fabric8.agent.properties something on the lien of:

...
bundle.wlthint3client = fabric:wrap:mvn:com.oracle/wlthint3client/12.1.3$Import-Package=javax.ejb;resolution:=optional,javax.ejb.spi;resolution:=optional,javax.jms;resolution:=optional,javax.transaction;resolution:=optional,javax.transaction.xa;resolution:=optional,javax.xml.stream;resolution:=optional,*;resolution:=optional&Export-Package=!javax.ejb,!javax.ejb.spi,!javax.jms,!javax.transaction,!javax.transaction.xa,!javax.xml.stream,*
...

Build instructions

  1. To build this project be sure to have maven 3.x installed and from the directory run: mvn clean package
  2. Download from Oracle the wlthint3client.jar jar.
  3. To deploy the example to JBoss Fuse 6.2.1 container. You will run the following command from karaf shell:
features:install activemq-camel
osgi:install wrap:file://<projecthome>/wlthint3client.jar,file://<projecthome>/wlthint3client.bnd
osgi:install -s file://<projecthome>/target/fuseWeblogicBEAconnection-1.0.0-SNAPSHOT.jar

fuseweblogicbeaconnection's People

Contributors

valdar avatar

Stargazers

YuBo avatar

Watchers

 avatar

Forkers

bassista

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.