JBoss: Developer's Guide
eBook - ePub

JBoss: Developer's Guide

  1. 328 pages
  2. English
  3. ePUB (mobile friendly)
  4. Available on iOS & Android
eBook - ePub

JBoss: Developer's Guide

About this book

Build your own enterprise applications and integration flows with JBoss and its productsAbout This Book• Build fast, smart, and flexible applications using JBoss• Couple one or more JBoss products to effectively solve various business problems• Explore the JBoss product ecosystem for improving the performance of your projectsWho This Book Is ForIf you are a Java developer who wants to have a complete view of the JBoss ecosystem or quickly explore a specific JBoss Product, then this is the book you want. Integrators and consultants, familiar with JBoss, who want integrate several JBoss products within their ongoing project will also find this book useful.What You Will Learn• Create new applications or integrate existing systems with JBoss products• Setup and manage a JBoss domain• Setup and manage a JBoss Fuse cluster with Fabric and Apache Karaf• Create and deploy OSGi applications on JBoss Fuse containers• Manage enterprise data with JBoss Datagrid• Aggregate various data sources with JBoss Data virtualization to offer data as a service• Optimize your business and workflows with both JBoss Business RulesManagement System and JBoss Business Process Management platforms.In DetailHave you often wondered what is the best JBoss product to solve a specific problem? Do you want to get started with a specific JBoss product and know how to integrate different JBoss products in your IT Systems? Then this is the book for you.Through hands-on examples from the business world, this guide presents details on the major products and how you can build your own Enterprise services around the JBoss ecosystem.Starting with an introduction to the JBoss ecosystem, you will gradually move on to developing and deploying clustered application on JBoss Application Server, and setting up high availability using undertow or HA proxy loadbalancers.As you are moving to a micro service archicture, you will be taught how to package existing Java EE applications as micro service using Swarm or create your new micro services from scratch by coupling most popular Java EE frameworks like JPA, CDI with Undertow handlers.Next, you will install and configure JBoss Data grid in development and production environments, develop cache based applications and aggregate various data source in JBoss data virtualization.You will learn to build, deploy, and monitor integration scenarios using JBoss Fuse and run both producers/consumers applications relying on JBoss AMQ.Finally, you will learn to develop and run business workflows and make better decisions in your applications using Drools and Jboss BPM Suite Platform.Style and ApproachThe book works through the major JBoss products, with examples and instructions to help you understand each product and how they work together.

Tools to learn more effectively

Saving Books

Saving Books

Keyword Search

Keyword Search

Annotating Text

Annotating Text

Listen to it instead

Listen to it instead

Integrating Applications with JBoss Fuse

In Chapter 5, Exposing Data as a Service, we covered enterprise data integration in the data center through virtualization. Data virtualization is centered on data views and works on the principle of providing data on demand and covers both internal and external data sources. Most integration use cases with data beyond the data center are currently governed by some operational constraints that are not completely fulfilled or met by data virtualization. Among them we can list
  • Complex event processing
  • Messaging and interoperability
  • Routing and service orchestration
To covers all these constraints and more, computer science invented the Enterprise Services Bus (ESB) to provide a reliable communication layer between two or more enterprise components. ESB defines a set of rules and principles for integrating numerous applications together over a bus-like infrastructure. The JBoss ecosystem provides a lightweight and modular service bus, called JBoss Fuse. This chapter is organized around application and system integration with JBoss Fuse. After a brief presentation of the JBoss fuse architecture, the chapter will progressively teach you how to develop, deploy, and monitor various OSGi integration scenarios on the JBoss Fuse Platform. The chapter also explores some integration patterns with Apache Camel through illustrated samples from the global integration project.

JBoss Fuse architecture

JBoss Fuse is a combination of several open source technologies, including Apache Camel, Apache CXF, Apache ActiveMQ, Apache Karaf, and Fabric8 in a single integrated distribution:
Apache Camel provides a powerful routing engine, on top of which developers can build integration scenarios.
Apache CXF provides both REST and SOAP web services support, while Apache AMQ brings an integrated and robust messaging system to the platform. While working with JBoss Fuse, you can choose either Apache Karaf or JBoss EAP distribution. With the Karaf distribution, you can also opt for a standalone installation or a clustered environment with a container managed by Fabric8.
The JBoss Fuse-based integration applications can also be run on a fully certified Java EE platform, such as JBoss EAP.
Fuse Integration Services (FIS) extends the Fuse integration capabilities to the OpenShift Platform-as-a-Service (PaaS) solution. With FIS, users may also choose to run their fuse scenarios on Camel Boot.
The core integration scenario development process is basically the same--it is independent of your target deployment options (Fuse on the standalone Karaf, Fuse on the Karaf Fabric8 cluster, Fuse on the JBoss EAP, or Fuse Integration Services with Openshift). The configuration and deployment processes, on the other hand, are very specific to the target platform, including:
  • Properties, placeholders, and configuration files for applications deployed on theFuseOnEAP/Fuse standalone Karaf installation
  • Profiles and JVM containers for Fabric8 deployments
  • Config maps, secrets, templates, and image deployments on pods for Openshift/Kubernetes installation
In the subsequent chapters, we will be working with the main Fuse distribution based on Apache Karaf.

Installing JBoss Fuse

While using Apache Karaf, Fuse can be installed as a standalone container or clustered platform using Fuse Fabric. The fabric cluster configuration comes on top of the basic standalone installation.

Basic Fuse installation

Download the Red Hat JBoss Fuse ZIP file from Redhat Developper Portal. While writing this book, the latest version is jboss-fuse-karaf-6.3.0.redhat-187.zip.
Unzip the downloaded ZIP file and use the cd command to move to the extracted directory:
$ unzip jboss-fuse-karaf-6.3.0.redhat-187.zip
$ cd jboss-fuse-6.3.0.redhat-187/
To enable remote access to the container, you must create at least one user in the ./etc/users.properties file. It is recommended that you create at least one user with...

Table of contents

  1. Title Page
  2. Copyright
  3. Credits
  4. About the Author
  5. About the Reviewer
  6. www.PacktPub.com
  7. Customer Feedback
  8. Preface
  9. Introduction to the JBoss Ecosystem
  10. Developing and Hosting Scalable Web Applications
  11. Custom Web Deployment using Undertow and Swarm
  12. Storing and Accessing Distributed Data
  13. Exposing Data as a Service
  14. Integrating Applications with JBoss Fuse
  15. Delivers Information Safely and Connects IoT
  16. Making Better Decisions in Your Applications
  17. Developing Workflows

Frequently asked questions

Yes, you can cancel anytime from the Subscription tab in your account settings on the Perlego website. Your subscription will stay active until the end of your current billing period. Learn how to cancel your subscription
No, books cannot be downloaded as external files, such as PDFs, for use outside of Perlego. However, you can download books within the Perlego app for offline reading on mobile or tablet. Learn how to download books offline
Perlego offers two plans: Essential and Complete
  • Essential is ideal for learners and professionals who enjoy exploring a wide range of subjects. Access the Essential Library with 800,000+ trusted titles and best-sellers across business, personal growth, and the humanities. Includes unlimited reading time and Standard Read Aloud voice.
  • Complete: Perfect for advanced learners and researchers needing full, unrestricted access. Unlock 1.4M+ books across hundreds of subjects, including academic and specialized titles. The Complete Plan also includes advanced features like Premium Read Aloud and Research Assistant.
Both plans are available with monthly, semester, or annual billing cycles.
We are an online textbook subscription service, where you can get access to an entire online library for less than the price of a single book per month. With over 1 million books across 990+ topics, we’ve got you covered! Learn about our mission
Look out for the read-aloud symbol on your next book to see if you can listen to it. The read-aloud tool reads text aloud for you, highlighting the text as it is being read. You can pause it, speed it up and slow it down. Learn more about Read Aloud
Yes! You can use the Perlego app on both iOS and Android devices to read anytime, anywhere — even offline. Perfect for commutes or when you’re on the go.
Please note we cannot support devices running on iOS 13 and Android 7 or earlier. Learn more about using the app
Yes, you can access JBoss: Developer's Guide by Elvadas Nono Woguia in PDF and/or ePUB format, as well as other popular books in Computer Science & Application Development. We have over one million books available in our catalogue for you to explore.