Apache Karaf Cookbook

Over 60 recipes to help you get the most out of your Apache Karaf deployments
Preview in Mapt

Apache Karaf Cookbook

Achim Nierbeck et al.

1 customer reviews
Over 60 recipes to help you get the most out of your Apache Karaf deployments
Mapt Subscription
FREE
$29.99/m after trial
eBook
$15.40
RRP $21.99
Save 29%
Print + eBook
$35.99
RRP $35.99
What do I get with a Mapt Pro subscription?
  • Unlimited access to all Packt’s 5,000+ eBooks and Videos
  • Early Access content, Progress Tracking, and Assessments
  • 1 Free eBook or Video to download and keep every month after trial
What do I get with an eBook?
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with Print & eBook?
  • Get a paperback copy of the book delivered to you
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with a Video?
  • Download this Video course in MP4 format
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
$0.00
$15.40
$35.99
$29.99p/m after trial
RRP $21.99
RRP $35.99
Subscription
eBook
Print + eBook
Start 30 Day Trial

Frequently bought together


Apache Karaf Cookbook Book Cover
Apache Karaf Cookbook
$ 21.99
$ 15.40
Learning Apache Karaf Book Cover
Learning Apache Karaf
$ 21.99
$ 15.40
Buy 2 for $30.80
Save $13.18
Add to Cart
Subscribe and access every Packt eBook & Video.
 
  • 5,000+ eBooks & Videos
  • 50+ New titles a month
  • 1 Free eBook/Video to keep every month
Start Free Trial
 

Book Details

ISBN 139781783985081
Paperback260 pages

Book Description

Apache Karaf is more than just an OSGi-based runtime container; it's an ecosystem of open source technologies that makes operating and managing applications easier.

This book starts by covering how to make your deployment more production ready, and then covers many of the most popular Service Oriented Architecture projects that you can integrate into Karaf – these are some of the most sought after developer skills in modern enterprises. The book also delves into transforming Karaf into a JSP host, distributing containers using Apache Karaf Cellar, and providing persistence to your applications. Finally, you'll explore the world of Big Data with Apache Cassandra and Hadoop, setting the stage for your Karaf deployment to handle today's large datasets.

Table of Contents

Chapter 1: Apache Karaf for System Builders
Introduction
Configuring production-ready logging in Apache Karaf
Creating our own custom Karaf command using a Maven archetype
Branding the Apache Karaf console
Deploying applications as a feature
Using JMX to monitor and administer Apache Karaf
Reconfiguring SSH access to Apache Karaf
Installing Apache Karaf as a service
Setting up Apache Karaf for high availability
Chapter 2: Making Smart Routers with Apache Camel
Introduction
Installing Apache Camel modules into Apache Karaf
Listing Camel Contexts in Karaf
Displaying Camel Context information in Karaf
Starting and stopping Camel Contexts in Karaf
Listing routes in Karaf
Displaying route information in Karaf
Starting, stopping, suspending, and resuming routes in Karaf
Listing endpoints in Karaf
Making a pure Java-based Camel Router for deployment in Karaf
Creating a Blueprint-based Camel Router for deployment in Karaf
Adding Configuration Admin to a Blueprint-based Camel Router
Creating a managed service factory implementation of a Camel Router
Chapter 3: Deploying a Message Broker with Apache ActiveMQ
Introduction
Installing Apache ActiveMQ modules into Apache Karaf
Using the ActiveMQ query command
Using the ActiveMQ list command
Using the ActiveMQ dstat command
Using the ActiveMQ purge command
Using the JMS connection factory commands
Using the JMS send command
Using the JMS browse command
Configuring and deploying a master/slave broker with Apache Karaf
Configuring and deploying a Network of Brokers with Apache Karaf
Chapter 4: Hosting a Web Server with Pax Web
Introduction
Installing Pax modules in Apache Karaf
Installing extended Http Service in Apache Karaf
Configuring Pax Web modules deployed in Apache Karaf
Building a Http Service project to host in Apache Karaf
Building a Http Service with the Whiteboard pattern in Apache Karaf
Building an application with custom HttpContext with Apache Karaf
Building a standard web project to host in Apache Karaf
Configuring security for a web application in Apache Karaf
Binding a web project to a specific host in Apache Karaf
Building a Servlet 3.0 annotated web application with Apache Karaf
Creating a CDI web application with Apache Karaf
Chapter 5: Hosting Web Services with Apache CXF
Introduction
Installing Apache CXF modules in Apache Karaf
Using the CXF list-endpoints command
Using the CXF stop and start commands
Building and deploying a RESTful service in Karaf
Building and deploying a Camel CXF web service in Karaf
Chapter 6: Distributing a Clustered Container with Apache Karaf Cellar
Introduction
Installing Apache Karaf Cellar modules in Apache Karaf
Using Apache Karaf Cellar commands
Building and deploying a distributed architecture with Cellar
Chapter 7: Providing a Persistence Layer with Apache Aries and OpenJPA
Introduction
Installing OpenJPA modules in Apache Karaf
Installing Apache Aries JTA modules in Apache Karaf
Building a project with a persistence layer for deployment in Karaf
Building a project with a persistence layer and transaction support for deployment in Karaf
Chapter 8: Providing a Big Data Integration Layer with Apache Cassandra
Introduction
Installing Cassandra client bundles in Apache Karaf
Modeling data with Apache Cassandra
Building a project with a persistence layer for deployment in Karaf
Chapter 9: Providing a Big Data Integration Layer with Apache Hadoop
Introduction
Starting a standalone Hadoop cluster
Installing Hadoop client bundles in Apache Karaf
Accessing Apache Hadoop from Karaf
Adding commands that talk to HDFS for deployment in Karaf
Chapter 10: Testing Apache Karaf with Pax Exam
Introduction
Setting up a Pax Exam test environment
Testing Apache Karaf features
Testing commands with Apache Karaf
Coverage with Apache Karaf Pax Exam tests
Testing Apache Camel with Blueprint and Apache Karaf

What You Will Learn

  • Turn Karaf into a Smart Router with Apache Camel
  • Model Karaf into a Message Broker with Apache ActiveMQ
  • Transform Karaf into a JSP host with Pax Web
  • Distribute your Karaf applications across a clustered container with Apache Karaf Cellar
  • Transmute Karaf into a web service container with Apache CXF
  • Set up a Pax Exam test environment
  • Turbo-charge your Karaf applications' persistence layer scalability with Apache Cassandra
  • Manage Big Data on Karaf with Apache Hadoop

Authors

Table of Contents

Chapter 1: Apache Karaf for System Builders
Introduction
Configuring production-ready logging in Apache Karaf
Creating our own custom Karaf command using a Maven archetype
Branding the Apache Karaf console
Deploying applications as a feature
Using JMX to monitor and administer Apache Karaf
Reconfiguring SSH access to Apache Karaf
Installing Apache Karaf as a service
Setting up Apache Karaf for high availability
Chapter 2: Making Smart Routers with Apache Camel
Introduction
Installing Apache Camel modules into Apache Karaf
Listing Camel Contexts in Karaf
Displaying Camel Context information in Karaf
Starting and stopping Camel Contexts in Karaf
Listing routes in Karaf
Displaying route information in Karaf
Starting, stopping, suspending, and resuming routes in Karaf
Listing endpoints in Karaf
Making a pure Java-based Camel Router for deployment in Karaf
Creating a Blueprint-based Camel Router for deployment in Karaf
Adding Configuration Admin to a Blueprint-based Camel Router
Creating a managed service factory implementation of a Camel Router
Chapter 3: Deploying a Message Broker with Apache ActiveMQ
Introduction
Installing Apache ActiveMQ modules into Apache Karaf
Using the ActiveMQ query command
Using the ActiveMQ list command
Using the ActiveMQ dstat command
Using the ActiveMQ purge command
Using the JMS connection factory commands
Using the JMS send command
Using the JMS browse command
Configuring and deploying a master/slave broker with Apache Karaf
Configuring and deploying a Network of Brokers with Apache Karaf
Chapter 4: Hosting a Web Server with Pax Web
Introduction
Installing Pax modules in Apache Karaf
Installing extended Http Service in Apache Karaf
Configuring Pax Web modules deployed in Apache Karaf
Building a Http Service project to host in Apache Karaf
Building a Http Service with the Whiteboard pattern in Apache Karaf
Building an application with custom HttpContext with Apache Karaf
Building a standard web project to host in Apache Karaf
Configuring security for a web application in Apache Karaf
Binding a web project to a specific host in Apache Karaf
Building a Servlet 3.0 annotated web application with Apache Karaf
Creating a CDI web application with Apache Karaf
Chapter 5: Hosting Web Services with Apache CXF
Introduction
Installing Apache CXF modules in Apache Karaf
Using the CXF list-endpoints command
Using the CXF stop and start commands
Building and deploying a RESTful service in Karaf
Building and deploying a Camel CXF web service in Karaf
Chapter 6: Distributing a Clustered Container with Apache Karaf Cellar
Introduction
Installing Apache Karaf Cellar modules in Apache Karaf
Using Apache Karaf Cellar commands
Building and deploying a distributed architecture with Cellar
Chapter 7: Providing a Persistence Layer with Apache Aries and OpenJPA
Introduction
Installing OpenJPA modules in Apache Karaf
Installing Apache Aries JTA modules in Apache Karaf
Building a project with a persistence layer for deployment in Karaf
Building a project with a persistence layer and transaction support for deployment in Karaf
Chapter 8: Providing a Big Data Integration Layer with Apache Cassandra
Introduction
Installing Cassandra client bundles in Apache Karaf
Modeling data with Apache Cassandra
Building a project with a persistence layer for deployment in Karaf
Chapter 9: Providing a Big Data Integration Layer with Apache Hadoop
Introduction
Starting a standalone Hadoop cluster
Installing Hadoop client bundles in Apache Karaf
Accessing Apache Hadoop from Karaf
Adding commands that talk to HDFS for deployment in Karaf
Chapter 10: Testing Apache Karaf with Pax Exam
Introduction
Setting up a Pax Exam test environment
Testing Apache Karaf features
Testing commands with Apache Karaf
Coverage with Apache Karaf Pax Exam tests
Testing Apache Camel with Blueprint and Apache Karaf

Book Details

ISBN 139781783985081
Paperback260 pages
Read More
From 1 reviews

Read More Reviews

Recommended for You

Apache Camel Developer's Cookbook Book Cover
Apache Camel Developer's Cookbook
$ 29.99
$ 21.00
Learning Apache Karaf Book Cover
Learning Apache Karaf
$ 21.99
$ 15.40
Mastering Web Application Development with AngularJS Book Cover
Mastering Web Application Development with AngularJS
$ 26.99
$ 5.40
Instant Apache ServiceMix How-to Book Cover
Instant Apache ServiceMix How-to
$ 19.99
$ 14.00
Instant OSGi Starter Book Cover
Instant OSGi Starter
$ 14.99
$ 10.50
Java 7 Concurrency Cookbook Book Cover
Java 7 Concurrency Cookbook
$ 29.99
$ 21.00