Logo
  • Products
    • SecOps Studio
  • Solutions
    • Pega Stack Shifter
  • Services
    • Pega Enablement
    • Pega Modernization
  • About
  • Contact
  • Blog
Code Vault

Java Messaging Service – Part 2 – Setup ActiveMQ

December 10, 2024 Code Vault Curators

In this blog article, we will see setting up ActiveMQ JMS provider in the local machine. We will also Create a new queue destination and send a message to the queue. Finally, we will setup an optional web console hawtio to administer the ActiveMQ

It is recommended to visit the previous article on JMS series –

Java Messaging Service – Part 1 – Understanding

What is JMS?

It is a Java Message oriented middleware (MOM) API that supports sending messages between two or more systems.

What is ActiveMQ?

– It is an Open source, Java-based  JMS provider.

– It supports industry standard protocol for JMS.

Get to know more about ActiveMQ at the following link – http://activemq.apache.org/

How to setup ActiveMQ in a local machine (Windows)?

Step 1: Download the ActiveMQ binaries.

Visit the following link – https://activemq.apache.org/components/classic/download/ Download the latest version zip.

Step 2: Extract the binaries in your local machine.

Step 3: Start the ActiveMQ server.

Switch to the bin folder.

C:MyInstallapache-activemq-5.15.12-binapache-activemq-5.15.12bin

Execute the script.

.activemq start

You should see the success message in the logs.

You see ActiveMQ Web Console is available at port 8161.

Launch the portal – http://localhost:8161

Use the Admin console to administer the ActiveMQ.

http://localhost:8161/admin/

You can provide the username/password – admin/admin

How to create a new queue and send a message?

Step 1: Navigate to the Queues tab.

Step 2: Provide a new Queue Name and click Create.

You will see the newly created queue.

Step 3: Send a new message to the queue.

On the Operations, click on Send To.

You see the configuration screen to set the message headers and body to send a new JMS message.

Click on Send.

You will see a new message queued.

We have successfully created the first message in our JMS queue.

To have some more administration on ActiveMQ, I would like to use a new web application – Hawtio. Feel free to skip the below step if not required.

What is Hawtio?

Hawtio is a web console for managing Java applications.

Visit the link for more details – https://hawt.io/docs/

Let’s straightaway setup the hawtio in our Tomcat server.

How to setup Hawtio in your local Windows machine?

Step 1: Download the war file.

Click on the link – https://github.com/hawtio/hawtio/releases/tag/hawtio-2.10.0

Rename the war file to remove the hyphen.

Step 2: Place the war file in the Pega personal edition tomcat webapps directory.

By this way, the Tomcat server will be hosting the third web application in addition to prweb and prhelp.

Step 3: Start the tomcat server (Pega personal edition server)

Once the server restarted, launch the portal for hawtio

http://localhost:8080/hawtio

You will prompted with username/password – admin/admin

Step 4: establish the connection with the ActiveMQ

Do a test connection.

You should see a successful connection established.

Step 5: Click on the connect button on the right

You will see the details of the connection on the landing page.

You also see the newly created Queue – MyKnowPega.FirstQ.

So here we set up a destination path for the Queue.

You can play around with hawtio to send messages to the queue.

In the next article, we will see how to administer Pega to connect to Active MQ.

Java Messaging Services – Part 3 – Setup Pega to ActiveMQ Connection

 

  • pega-integration
Code Vault Curators

A technical team dedicated to empowering the Pega ecosystem with in-depth knowledge, guided by Premkumar Ganesan's vision.

Post navigation

Previous
Next

Pega Courses

Pega courses can be accessed at https://myknowacademy.com

Search through the blog

Tags

activity authentication background-processing case-management data-model declarative-processing email-processing file-processing pega-core-concepts pega-integration process reporting security system-administration user-interface validation

Categories

  • Code Vault

Recent posts

  • Service REST – Usage and Configurations in Pega
  • Queue processor – Usage and Configurations
  • Data Pages Usage & Configurations in Pega
  • Requestor types in Pega
  • Case Locking Mechanism in Pega

Related Articles

Code Vault

Service REST – Usage and Configurations in Pega

December 18, 2024 Code Vault Curators

First of all, don’t think INTEGRATION is a difficult topic in PEGA. I would say Integration is much easier than creating an activity rule. Pega makes it simple for developers. All you need to do is configure the Integration rules. Pega takes care of the rest. Pega provides useful wizards and guides the developers in […]

Code Vault

Service SOAP – Usage and Configurations in Pega

December 10, 2024 Code Vault Curators

In this blog article, we will see how a Pega application can host a SOAP web service. I request you to go through another blog article on Service-REST where I already talked about services in general – Update: The Concept of SOAP services remains the same across different Pega versions. The screenshots in this blog […]

Code Vault

Connect SOAP – Usage and Configurations in Pega

December 10, 2024 Code Vault Curators

In this blog article, we will try to understand about Connect-SOAP in Pega. Update: The concept of SOAP Connector remains the same across different Pega versions. Most of the screenshots in this blog article were reused from Pega 7 version and few were updated. Use this blog article to learn the concepts and you can […]

Code Vault

Connect REST – Usage and Configurations in Pega

December 10, 2024 Code Vault Curators

In this blog article, we will try to understand about Connect-REST in Pega. Connect-REST is One of the most commonly used Connectors in Pega to integrate with external systems. Update: The concept of REST Connector remains the same across different Pega versions. Most of the screenshots in this blog article were reused from Pega 7 […]

About

MyKnowTech was born with a mission to bridge the gap between technical expertise and business needs. We are a boutique firm specializing in Pega solutions, delivering them with a personal touch. At the heart of our philosophy is a commitment to putting clients first.

Company
  • About
  • Leadership
  • Career
  • Contact
Resources
  • Blog
  • Services
  • Solutions
  • Insights

©  MyKnowTech B.V. All Rights Reserved.

  • Sitemap
  • Terms & Conditions
  • Privacy Policy