13th Nov. 2021
Kuala Lumpur MuleSoft Meetup
Group,
Introducing Solace PubSub+ Connector for MuleSoft
Guidelines for KL MuleSoft Meetup #3 [Virtual]
● Welcome to KL MuleSoft Meetup! We will start our introduction session shortly.
● Once you join write down your registered name in chat section so that we can provide you
audio/video access in Bevy.
● Please keep yourself muted unless you have any question.
● We encourage keeping your video on for making our meetup interactive.
● You'll can also write down your questions in chat section.
● We appreciate your valuable feedback. Thanks.
2
3
● Introductions
● MuleSoft community and product update
● Introducing Solace PubSub+ Connector for MuleSoft Anypoint Platform
● Quiz
● Wrap- up and Networking time
Agenda
4
●About the organizer:
○ Manish Yadav
○ Nitushree Jena
○ Kheng Lim
●About the sponsor:
○ MuleSoft and Billennium
Introductions
A SHOW OF HANDS:
Who is new to this Meetup?
Important Announcements
Latest Releases/News
● Announcing the MuleSoft Hackathon 2021 Winners on 17th Nov, Join
○ Click here for registration
● Anypoint Studio 7.11 release
○ Read the release notes here for Studio 7.11
● Free MuleSoft Composer Training:
○ Free MuleSoft Composer training link
● Contribute to the MuleSoft MCPA Exam:
○ Link to join
6
Speakers
7
Solace Connector for Anypoint Platform
Introduction to the PubSub+ Solace
Connector
9
● Solace helps large enterprises become modern and real-time by giving them everything they
need to make their business operations and customer interactions event-driven.
○ With PubSub+, the market’s first and only event management platform which manage full event life
cycle management just like API Management in REST world.
○ Nearly 20 years of experience helping global enterprises solve some of the most demanding
challenges in a variety of industries.
○ Solace is MuleSoft Partner company.
For more information about Solace technology in general please visit these resources or reach out
to us, we will be happy to help in joining below community.
● The Solace Developer Portal
● Ask the Solace community
About Solace
10
Solace PubSub+ Platform
11
● Up to now, Mulesoft and PubSub+ have integration using Mulesoft’s
vendor-agnostic JMS connector.
● As JMS connector is generic, so to connect solace broker, you need to
configure set of steps on it to make connection work
● JMS connector has a limited feature ,i.e you will not get any option to
import event portal schema.
● JMS connector does not provide option to auto populate Topic best
practice name.
Why to use Solace PubSub+ Connector
12
Solace customers requested this because they wanted:
● Solace-supported, native connectivity between Mulesoft Anypoint iPaaS
and Solace PubSub+ Event Broker and Event Portal
● Single point of contact for enhancements and issues
● To bring event data from Event Portal into Anypoint Studio
● Enable event-driven integration in their Mulesoft-based infrastructure
● It provides more flexibility and gives more access as it uses JCSMP Java
API.
Why to use Solace PubSub+ Connector
13
● 4 message processor operation and 2 message source listener:
Solace PubSub+ Connector Operation
14
Overall 6 Operations supported:
– Consume (external triggered consumer)
– Direct Topic Subscriber (direct message consumer)
– Guaranteed Endpoint Listener (GM consumer)
– Request Reply (synchronous wait for reply in flow)
– Publish (to topic or queue, direct or persistent)
– Ack (manually acknowledge messages anywhere in the Flow)
Solace PubSub+ Connector Operation
15
● Explicitly acknowledges a guaranteed message using Ack operation
● This acknowledgement indicates that the message has been processed
and can be removed from the event broker's queue.
● This is only applicable if ackMode="MANUAL_CLIENT" in consume
operation or Guaranteed Endpoint Listener Source.
● If no acknowledgement is received within the allowed time, the message
times out and becomes available for re-delivery (which is equivalent to a
negative acknowledgement)NACK.
● Message Reference ID is mandatory parameter for acknowledgement.
This is parameter is just like ackId in Anypoint MQ.
ACK Operation
Operations
Guaranteed Endpoint Listener
- This is for subscribing solace queue
- It has added feature of creation queue and associated topic subscription on the
fly incase they do not exist
Direct Topic Subscriber
- This is for subscribing solace topic/s
- Topic structure will be pre-populated if event portal is configured
Consume
- This operation is to read queue in-between of the flow
- It has browseOnly feature which is missing in other event brokers connectors 16
17
● AUTOMATIC_IMMEDIATE: Acknowledgement is sent automatically as message is
received.
● AUTOMATIC_ON_FLOW_COMPLETION: Acknowledgement is sent automatically
on successful completion of the flow.
● MANUAL_CLIENT: Requires a downstream ACK operation in the flow.
ACK Type:
18
● It is blocking operation and it allow us to send Direct or Guaranteed
Message to Event Broker and waits for a reply till reply is received or
configurable timeout happen.
Request-Reply Operation
19
–Event Portal integration
• Import Events from the Event Portal
• Imported event schemas populate Mule Message payload definition
• Event topic is suggested for Destination
• Deep link back to Event Portal on that Event
Event Portal Integration with Mule
20
–Available NOW as a Certified Partner Connector in Anypoint Exchange!
Connection Parameter for Solace Connector
JCSMP Property for Solace Connector
JCSMP: The Solace Messaging API for Java (also referred to as JCSMP) is a 100% pure Java
implementation.
Few JCSMP Property:
1. AUTHENTICATION_SCHEME="AUTHENTICATION_SCHEME_CLIENT_CERTIFICATE"
2. SSL_VALIDATE_CERTIFICATE
3. GENERATE_SEQUENCE_NUMBERS: Indicates whether to generate a sequence number in
outgoing messages
4. SSL_VALIDATE_CERTIFICATE_DATE
21
Solace console config
22
Debug Solace connector config
If something is not working fine and you need more logs to understand what
wrong is going on, you can add below two packages in lo4j2.xml file to get
detailed version of logs
23
<AsyncLogger name="com.solace.connector.mulesoft"
level="DEBUG"/>
<AsyncLogger name="com.solacesystems" level="DEBUG"/>
Benefits
Below are some of benefits of using connector w.r.t Generic JMS option :-
1. Easy setup to connect with Solace (No need to add solace libs or set specific JCSMP
properties)
2. Better ErorrHandling as we can catch solace specific errors now using connector eg
SOLACE:CONNECTIVITY, SOLACE:GENERIC_ERROR,
SOLACE:INVALID_CONFIGURATION, SOLACE:RETRY_EXHAUSTED
3. Easy to fetch metadata/topic name for any given event once event portal is configured
4. Automatic queue/topic subscription provisioning if they don’t exist
5. BrowseOnly feature incase you just want to see message content and not actually consume it
24
26
Nominate yourself for the next meetup
speaker and suggest a topic as well.
Take a stand!
27
● Share:
○ Tweet using the hashtag #MuleSoftMeetups
○ Invite your network to join: https://meetups.mulesoft.com/kuala-lumpur/
● Feedback:
○ Fill out the survey feedback and suggest topics for upcoming events
○ Contact MuleSoft at meetups@mulesoft.com for ways to improve the program
○ Contact your organizers Manish Yadav,Nitushree Jena and Kheng Lim Tweet your
organizers at @Manish_Kyadav, @NeetuJena
○ Follow us on Instagram (@mulesoft_community_academy)
○ Whatsapp Group Link https://chat.whatsapp.com/GO4L3m9VA04LOtXaVWUlWq:
What’s next?
Introduce yourself to your neighbor
Networking time
Thank you!

Solace PubSub+ MuleSoft Connector for Mule 4

  • 1.
    13th Nov. 2021 KualaLumpur MuleSoft Meetup Group, Introducing Solace PubSub+ Connector for MuleSoft
  • 2.
    Guidelines for KLMuleSoft Meetup #3 [Virtual] ● Welcome to KL MuleSoft Meetup! We will start our introduction session shortly. ● Once you join write down your registered name in chat section so that we can provide you audio/video access in Bevy. ● Please keep yourself muted unless you have any question. ● We encourage keeping your video on for making our meetup interactive. ● You'll can also write down your questions in chat section. ● We appreciate your valuable feedback. Thanks. 2
  • 3.
    3 ● Introductions ● MuleSoftcommunity and product update ● Introducing Solace PubSub+ Connector for MuleSoft Anypoint Platform ● Quiz ● Wrap- up and Networking time Agenda
  • 4.
    4 ●About the organizer: ○Manish Yadav ○ Nitushree Jena ○ Kheng Lim ●About the sponsor: ○ MuleSoft and Billennium Introductions A SHOW OF HANDS: Who is new to this Meetup?
  • 5.
  • 6.
    Latest Releases/News ● Announcingthe MuleSoft Hackathon 2021 Winners on 17th Nov, Join ○ Click here for registration ● Anypoint Studio 7.11 release ○ Read the release notes here for Studio 7.11 ● Free MuleSoft Composer Training: ○ Free MuleSoft Composer training link ● Contribute to the MuleSoft MCPA Exam: ○ Link to join 6
  • 7.
  • 8.
    Solace Connector forAnypoint Platform Introduction to the PubSub+ Solace Connector
  • 9.
    9 ● Solace helpslarge enterprises become modern and real-time by giving them everything they need to make their business operations and customer interactions event-driven. ○ With PubSub+, the market’s first and only event management platform which manage full event life cycle management just like API Management in REST world. ○ Nearly 20 years of experience helping global enterprises solve some of the most demanding challenges in a variety of industries. ○ Solace is MuleSoft Partner company. For more information about Solace technology in general please visit these resources or reach out to us, we will be happy to help in joining below community. ● The Solace Developer Portal ● Ask the Solace community About Solace
  • 10.
  • 11.
    11 ● Up tonow, Mulesoft and PubSub+ have integration using Mulesoft’s vendor-agnostic JMS connector. ● As JMS connector is generic, so to connect solace broker, you need to configure set of steps on it to make connection work ● JMS connector has a limited feature ,i.e you will not get any option to import event portal schema. ● JMS connector does not provide option to auto populate Topic best practice name. Why to use Solace PubSub+ Connector
  • 12.
    12 Solace customers requestedthis because they wanted: ● Solace-supported, native connectivity between Mulesoft Anypoint iPaaS and Solace PubSub+ Event Broker and Event Portal ● Single point of contact for enhancements and issues ● To bring event data from Event Portal into Anypoint Studio ● Enable event-driven integration in their Mulesoft-based infrastructure ● It provides more flexibility and gives more access as it uses JCSMP Java API. Why to use Solace PubSub+ Connector
  • 13.
    13 ● 4 messageprocessor operation and 2 message source listener: Solace PubSub+ Connector Operation
  • 14.
    14 Overall 6 Operationssupported: – Consume (external triggered consumer) – Direct Topic Subscriber (direct message consumer) – Guaranteed Endpoint Listener (GM consumer) – Request Reply (synchronous wait for reply in flow) – Publish (to topic or queue, direct or persistent) – Ack (manually acknowledge messages anywhere in the Flow) Solace PubSub+ Connector Operation
  • 15.
    15 ● Explicitly acknowledgesa guaranteed message using Ack operation ● This acknowledgement indicates that the message has been processed and can be removed from the event broker's queue. ● This is only applicable if ackMode="MANUAL_CLIENT" in consume operation or Guaranteed Endpoint Listener Source. ● If no acknowledgement is received within the allowed time, the message times out and becomes available for re-delivery (which is equivalent to a negative acknowledgement)NACK. ● Message Reference ID is mandatory parameter for acknowledgement. This is parameter is just like ackId in Anypoint MQ. ACK Operation
  • 16.
    Operations Guaranteed Endpoint Listener -This is for subscribing solace queue - It has added feature of creation queue and associated topic subscription on the fly incase they do not exist Direct Topic Subscriber - This is for subscribing solace topic/s - Topic structure will be pre-populated if event portal is configured Consume - This operation is to read queue in-between of the flow - It has browseOnly feature which is missing in other event brokers connectors 16
  • 17.
    17 ● AUTOMATIC_IMMEDIATE: Acknowledgementis sent automatically as message is received. ● AUTOMATIC_ON_FLOW_COMPLETION: Acknowledgement is sent automatically on successful completion of the flow. ● MANUAL_CLIENT: Requires a downstream ACK operation in the flow. ACK Type:
  • 18.
    18 ● It isblocking operation and it allow us to send Direct or Guaranteed Message to Event Broker and waits for a reply till reply is received or configurable timeout happen. Request-Reply Operation
  • 19.
    19 –Event Portal integration •Import Events from the Event Portal • Imported event schemas populate Mule Message payload definition • Event topic is suggested for Destination • Deep link back to Event Portal on that Event Event Portal Integration with Mule
  • 20.
    20 –Available NOW asa Certified Partner Connector in Anypoint Exchange! Connection Parameter for Solace Connector
  • 21.
    JCSMP Property forSolace Connector JCSMP: The Solace Messaging API for Java (also referred to as JCSMP) is a 100% pure Java implementation. Few JCSMP Property: 1. AUTHENTICATION_SCHEME="AUTHENTICATION_SCHEME_CLIENT_CERTIFICATE" 2. SSL_VALIDATE_CERTIFICATE 3. GENERATE_SEQUENCE_NUMBERS: Indicates whether to generate a sequence number in outgoing messages 4. SSL_VALIDATE_CERTIFICATE_DATE 21
  • 22.
  • 23.
    Debug Solace connectorconfig If something is not working fine and you need more logs to understand what wrong is going on, you can add below two packages in lo4j2.xml file to get detailed version of logs 23 <AsyncLogger name="com.solace.connector.mulesoft" level="DEBUG"/> <AsyncLogger name="com.solacesystems" level="DEBUG"/>
  • 24.
    Benefits Below are someof benefits of using connector w.r.t Generic JMS option :- 1. Easy setup to connect with Solace (No need to add solace libs or set specific JCSMP properties) 2. Better ErorrHandling as we can catch solace specific errors now using connector eg SOLACE:CONNECTIVITY, SOLACE:GENERIC_ERROR, SOLACE:INVALID_CONFIGURATION, SOLACE:RETRY_EXHAUSTED 3. Easy to fetch metadata/topic name for any given event once event portal is configured 4. Automatic queue/topic subscription provisioning if they don’t exist 5. BrowseOnly feature incase you just want to see message content and not actually consume it 24
  • 26.
    26 Nominate yourself forthe next meetup speaker and suggest a topic as well. Take a stand!
  • 27.
    27 ● Share: ○ Tweetusing the hashtag #MuleSoftMeetups ○ Invite your network to join: https://meetups.mulesoft.com/kuala-lumpur/ ● Feedback: ○ Fill out the survey feedback and suggest topics for upcoming events ○ Contact MuleSoft at meetups@mulesoft.com for ways to improve the program ○ Contact your organizers Manish Yadav,Nitushree Jena and Kheng Lim Tweet your organizers at @Manish_Kyadav, @NeetuJena ○ Follow us on Instagram (@mulesoft_community_academy) ○ Whatsapp Group Link https://chat.whatsapp.com/GO4L3m9VA04LOtXaVWUlWq: What’s next?
  • 28.
    Introduce yourself toyour neighbor Networking time
  • 29.