Se ha denunciado esta presentación.
Utilizamos tu perfil de LinkedIn y tus datos de actividad para personalizar los anuncios y mostrarte publicidad más relevante. Puedes cambiar tus preferencias de publicidad en cualquier momento.

JBoss Fuse Workshop 101 part 4

4.134 visualizaciones

Publicado el

The best thing about Camel is that you can actually concentrating what is important, your enterprise specific customize logic. And guess what, there are no framework to learn, just use POJO. This workshop tells you how to register your java bean in Camel, and how to make use of it!

Publicado en: Tecnología
  • Inicia sesión para ver los comentarios

JBoss Fuse Workshop 101 part 4

  1. 1. JBoss Fuse 101 Getting Started workshop Christina Lin JBoss Technology Evangelist clin@redhat.com
  2. 2. RED HAT CONFIDENTIAL | ADD NAME2 Working with Beans (POJO) Where should my real business logic go? How does it work with my Integration code in Camel? Do I need to change my old code?
  3. 3. RED HAT CONFIDENTIAL | ADD NAME3 Working with Beans
  4. 4. RED HAT CONFIDENTIAL | ADD NAME4 Working with Beans Camel Context Registry POJO POJO POJO POJO POJO Ref Ref
  5. 5. RED HAT CONFIDENTIAL | ADD NAME5 Working with Beans Registry SimpleRegistry JNDIRegistry ApplicationContextRegistry OsgiServiceRegistry Map-based registry Testing and standalone JNDI-based Spring ENV OSGi ENV
  6. 6. RED HAT CONFIDENTIAL | ADD NAME6 Working with Beans Camel Context POJO1. Create your bean Registry 2. Register in registry 3. Reference bean in Route <bean id="helloBean" class=”blogdemo.HelloBean"/> Package blogdemo; public class HelloBean{ public String hello() {} public void sayHelloTo(String name) { return “Hello ”+name; } } <bean ref="helloBean" method=”sayHelloTo"/>
  7. 7. RED HAT CONFIDENTIAL | ADD NAME7 Working with Beans PROCESS package org.blogdemo; import org.apache.camel.Processor; public class MyProcessor implements Processor { public void process(Exchange exchange){} } BEAN
  8. 8. RED HAT CONFIDENTIAL | ADD NAME8 POJO My 4th Camel Ride JSON XML $ AMQ

×