Find the best whay to define bean activeMQ in one place

Solution Unverified - Updated -

Issue

  • Actually we have hundred of bundles. and this number will grow up again.
  • All these bundles have in their blueprint.xml a bean "amqp" to connect to ActiveMQ broker.
  • We want to define this bean only one place, in order order to have the possibility to update it one time and to impact all bundles.
  • To do this, I have read that blueprint does not handle as Spring do it. So I have developped a custom bean in Java that I can call in all blueprint.xml
  • You can find enclosed the bean I have developped (ESBDefaultAMQPBean.java)
    and a blueprint.xml that call it.

  • Is it the good way to do that ?

  • If yes, can you confirm that ESBDefaultAMQPBean is correct to create the ActiveMQ Pooled connection factory ?

Environment

  • Red Hat Fuse
    • 6.3.0

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content