fabric8io / fabric8

fabric8 is an open source microservices platform based on Docker, Kubernetes and Jenkins
http://fabric8.io/
1.76k stars 504 forks source link

quickstart - A quickstart showing JMS client using blueprint to connect to the broker #1713

Open davsclaus opened 10 years ago

davsclaus commented 10 years ago

This example https://github.com/fabric8io/fabric8/tree/master/fabric/fabric-examples/fabric-activemq-demo

Uses SCR/DS and we should have a simpler example that just uses blueprint to lookup the connection factory, and maybe use spring jms or pure jms as the client.

This example helps users that are using blueprint. But may not use an Apache Camel component.

pires commented 10 years ago

I have JMS pure example implementation at https://github.com/pires/fabric8-amq-example/blob/master/client.impl/src/main/java/com/github/pires/example/client/impl/AMQClientImpl.java.

Moving to blueprint should be as simple as looking for ActiveMQConnectionFactory interface.

<bean id="mqClient" class="com.github.pires.example.client.impl.AMQClientImpl">
  <property name="connectionFactory">
    <reference
      interface="org.apache.activemq.ActiveMQConnectionFactory"
      availability="mandatory" />
  </property>
</bean>