Using The ActiveMQ List Command | Apache Karaf Cookbook

  • Book Overview & Buying APACHE KARAF COOKBOOK
  • Table Of Contents Toc
APACHE KARAF COOKBOOK

APACHE KARAF COOKBOOK

By : Nierbeck, Jamie Goodyear
3.8 (4) Buy this Book close close APACHE KARAF COOKBOOK

APACHE KARAF COOKBOOK

3.8 (4)
By: Nierbeck, Jamie Goodyear
Buy this Book

Overview of this book

This book is intended for developers who have some familiarity with Apache Karaf and who want a quick reference for practical, proven tips on how to perform common tasks such as configuring Pax modules deployed in Apache Karaf, Extending HttpService with Apache Karaf. You should have working knowledge of Apache karaf, as the book provides a deeper understanding of the capabilities of Apache Karaf. Table of Contents (12 chapters) close close close Preface Icon Preface Icon What this book covers Icon What you need for this book Icon Who this book is for Icon Conventions Icon Reader feedback Icon Customer support Lock Free Chapter 1 1. Apache Karaf for System Builders Icon 1. Apache Karaf for System Builders Icon Introduction Icon Configuring production-ready logging in Apache Karaf Icon Creating our own custom Karaf command using a Maven archetype Icon Branding the Apache Karaf console Icon Deploying applications as a feature Icon Using JMX to monitor and administer Apache Karaf Icon Reconfiguring SSH access to Apache Karaf Icon Installing Apache Karaf as a service Icon Setting up Apache Karaf for high availability 2 2. Making Smart Routers with Apache Camel Icon 2. Making Smart Routers with Apache Camel Icon Introduction Icon Installing Apache Camel modules into Apache Karaf Icon Listing Camel Contexts in Karaf Icon Displaying Camel Context information in Karaf Icon Starting and stopping Camel Contexts in Karaf Icon Listing routes in Karaf Icon Displaying route information in Karaf Icon Starting, stopping, suspending, and resuming routes in Karaf Icon Listing endpoints in Karaf Icon Making a pure Java-based Camel Router for deployment in Karaf Icon Creating a Blueprint-based Camel Router for deployment in Karaf Icon Adding Configuration Admin to a Blueprint-based Camel Router Icon Creating a managed service factory implementation of a Camel Router 3 3. Deploying a Message Broker with Apache ActiveMQ chevron up Icon 3. Deploying a Message Broker with Apache ActiveMQ Icon Introduction Icon Installing Apache ActiveMQ modules into Apache Karaf Icon Using the ActiveMQ query command Icon Using the ActiveMQ list command Icon Using the ActiveMQ dstat command Icon Using the ActiveMQ purge command Icon Using the JMS connection factory commands Icon Using the JMS send command Icon Using the JMS browse command Icon Configuring and deploying a master/slave broker with Apache Karaf Icon Configuring and deploying a Network of Brokers with Apache Karaf 4 4. Hosting a Web Server with Pax Web Icon 4. Hosting a Web Server with Pax Web Icon Introduction Icon Installing Pax modules in Apache Karaf Icon Installing extended Http Service in Apache Karaf Icon Configuring Pax Web modules deployed in Apache Karaf Icon Building a Http Service project to host in Apache Karaf Icon Building a Http Service with the Whiteboard pattern in Apache Karaf Icon Building an application with custom HttpContext with Apache Karaf Icon Building a standard web project to host in Apache Karaf Icon Configuring security for a web application in Apache Karaf Icon Binding a web project to a specific host in Apache Karaf Icon Building a Servlet 3.0 annotated web application with Apache Karaf Icon Creating a CDI web application with Apache Karaf 5 5. Hosting Web Services with Apache CXF Icon 5. Hosting Web Services with Apache CXF Icon Introduction Icon Installing Apache CXF modules in Apache Karaf Icon Using the CXF list-endpoints command Icon Using the CXF stop and start commands Icon Building and deploying a RESTful service in Karaf Icon Building and deploying a Camel CXF web service in Karaf 6 6. Distributing a Clustered Container with Apache Karaf Cellar Icon 6. Distributing a Clustered Container with Apache Karaf Cellar Icon Introduction Icon Installing Apache Karaf Cellar modules in Apache Karaf Icon Using Apache Karaf Cellar commands Icon Building and deploying a distributed architecture with Cellar 7 7. Providing a Persistence Layer with Apache Aries and OpenJPA Icon 7. Providing a Persistence Layer with Apache Aries and OpenJPA Icon Introduction Icon Installing OpenJPA modules in Apache Karaf Icon Installing Apache Aries JTA modules in Apache Karaf Icon Building a project with a persistence layer for deployment in Karaf Icon Building a project with a persistence layer and transaction support for deployment in Karaf 8 8. Providing a Big Data Integration Layer with Apache Cassandra Icon 8. Providing a Big Data Integration Layer with Apache Cassandra Icon Introduction Icon Installing Cassandra client bundles in Apache Karaf Icon Modeling data with Apache Cassandra Icon Building a project with a persistence layer for deployment in Karaf 9 9. Providing a Big Data Integration Layer with Apache Hadoop Icon 9. Providing a Big Data Integration Layer with Apache Hadoop Icon Introduction Icon Starting a standalone Hadoop cluster Icon Installing Hadoop client bundles in Apache Karaf Icon Accessing Apache Hadoop from Karaf Icon Adding commands that talk to HDFS for deployment in Karaf 10 10. Testing Apache Karaf with Pax Exam Icon 10. Testing Apache Karaf with Pax Exam Icon Introduction Icon Setting up a Pax Exam test environment Icon Testing Apache Karaf features Icon Testing commands with Apache Karaf Icon Coverage with Apache Karaf Pax Exam tests Icon Testing Apache Camel with Blueprint and Apache Karaf 11 Index Icon Index Icon Icon

Using the ActiveMQ list command

The list command can be used to list out the brokers currently running inside the Karaf container.

Getting ready

In order to get started, we need to get the activemq-broker feature installed. Reference the activemq:query command, as shown in the following screenshot:

How to do it…

To list out all brokers currently running embedded inside this instance of Karaf, we can simply run the following command:

karaf@root()> activemq:list

This will list out the embedded broker names as follows:

brokerName = amq-broker

How it works…

This activemq command will invoke the JmxMBeansUtil.getAllBrokers class on the JMX connection and retrieve the name of any broker currently running.

See also

  • The Using the ActiveMQ query command recipe

  • The Using the ActiveMQ dstat command recipe

Visually different images Read this chapter and the full book FREE of cost - No Credit card required! Plus access over 8,000 other expert tech books and videos just by signing up - No commitment! CONTINUE READING 83 Tech Concepts 36 Programming languages 73 Tech Tools Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos. Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech. Icon 50+ new titles added per month and exclusive early access to books as they are being written. APACHE KARAF COOKBOOK Previous Section End of Section 3 Next Section notes bookmark Notes and Bookmarks search Search in title playlist Add to playlist font-size Font size

Change the font size

Small Default Large Largest margin-width Margin width

Change margin width

Narrow Default Wide day-mode Day/Sepia/Night Modes

Change background colour

Day day-mode Sepia sepia-mode Night night-mode Close icon Search Country selected Close icon Your notes and bookmarks All Bookmarks Notes

Confirmation

Modal Close icon claim successful Order Page Read Now

Buy this book with your credits?

Modal Close icon Are you sure you want to buy this book with one of your credits? Close YES, BUY

Submit Your Feedback

Modal Close icon Submit ✓ Thanks for your feedback.

Create a Free Account To Continue Reading

Modal Close icon Google Sign Up/In with Google Github Sign Up/In with Github OR
    First name is required.
    Last name is required.

The Password should contain at least :

  • 8 characters
  • 1 uppercase
  • 1 number
Notify me about special offers, personalized product recommendations, and learning tips By signing up for the free trial you will receive emails related to this service, you can unsubscribe at any time By clicking ‘Create Account’, you are agreeing to our Privacy Policy and Terms & Conditions Create Account Already have an account? SIGN IN

Sign in to activate your 7-day free access

Modal Close icon Google Sign Up/In with Google Github Sign Up/In with Github OR
By redeeming the free trial you will receive emails related to this service, you can unsubscribe at any time. Sign In Forgot Password?

Tag » Activemq Command Line