Mar 01, 2022
Toronto MuleSoft Meetup - #17
EJB Connector for mulesoft
3
#MuleSoftMeetups
Mahesh Pujari
MuleSoft Developer
at Mackenzie Investments.
Overall, 10 Years of
experience in IT.
Around 7 years of
integration expertise.
3+ Years using Mulesoft
3x Mulesoft Certified
Kishore Reddy Paluri
Solutions Architect
at MuleSoft.
15 years of experience
building Integration, ESB,
SOA, API, Security and
Middleware solutions on
Cloud, On-Prem, and
Hybrid environments.
Organizers
Anurag Dwivedi
Associate Solution Architect at
Apisero
9 years of experience creating
solutions for
Manufacturing,Healthcare,Bank
ing and Airline Clients
Certified Platform Architect
Certified Integration Architect
4
●About Speaker:
○ CEO and CTO of Plekton Labs
○ Over 17 years of value driven IT practitioners with influential executive leadership in
enterprise architecture
Introduction Wahid Mohammad
Important Announcements
• Both the speaker and host are organizing this meet up in individual capacity, only.
We are not representing our companies here.
• This presentation is strictly for learning purpose only. Organizer/Presenter do not hold any
responsibility that same solution will work for your business requirements also.
• This presentation is not meant for any promotional activities.
Safe Harbor Statement
6
Check out the new developer tutorials experience for better discoverability and navigation.
New tutorials will now include:
● Left-hand rail to navigate between tutorials
● Embedded videos per tutorial
● Copy button for code scripts
● Code available in a JAR file or GitHub repo
● Previous/Next buttons for navigation
● Markdown-based content
● Redesigned tables
● And more!
Keep posted for new updates!
Send your feedback to devrel@mulesoft.com
Discover the new developer tutorials!
developer.mulesoft.com/tutorials-and-howtos/getting-started/hello-mule/
Q&A Tab
● Questions can be lost in the Chat.
● Under the Chat window, there are 3 tabs: General, Q&A, and DMs.
● Click on the Q&A tab to ask your questions.
8
How does the quiz work?
1. Questions will be asked during the presentation.
2. If you already answered a question correctly, do not keep answering and give an
opportunity to the other attendees.
3. The first answer in the chat is the winner, unless it’s from someone that already answered
another question.
IMPORTANT
● You can only win one voucher per month, regardless of the meetup city.
● You can’t participate if you’re already a meetup leader (even from another city) or a MuleSoft
ambassador.
● If you already won a voucher in another event in the same month, you would not receive a
voucher.
If any of this applies to you, please don’t participate in the quiz and give other people the
opportunity to win.
9
#MuleSoftMeetups
1
0
Agenda
• Objective
• Why do we care
• A use-case
• What is EJB
• EJB connector
• What EJB connector CAN/CAN'T do
• A quick Demo
• Q/A
Objective
What can EJB connector do
How to use it
1
2
Why do we care about EJB connector?
• EJB systems are still being used by organizations
across NA because dependencies have been
created already by using these systems for ages.
• Sometimes the cost of legacy modernization
overshadows the cost of maintaining an old
system like EJB.
• We have MuleSoft but we don't have any
connector.
• Reusability in C4E in any business domain with
EJB system.
Source:
https://blog.sergb.com/2017/352
Use Case
An HVAC
Company
• They wanted to integrate their CRM
system to communicate with customers
before their installed systems requires
repairs or replacements.
• Value for existing and new customers.
This story is about an HVAC company and
their customer experience in Canada.
To Be Or
Not to Be?
HVAC company uses the EJB system in
their CRM system.
They wanted to integrate their CRM
system so that they can proactively
communicate with customers
Now integrating with MuleSoft is a big
deal for them
Slower time to market could hurt them a lot
considering how many EJB
implementations there would be in the
backend.
Challenges: CRM only support EJB
High Level Solution
• Proactive vs reactive
• Increase revenue
• Better customer experience
Result
a) Any business use case that requires connecting EJB services
b) Financial
c) Retail
d) Utilities
Quiz 1
What type of business use cases are applicable for the EJB connector?
a) Any business use case that requires connecting EJB services
b) Financial
c) Retail
d) Utilities
Quiz 1
What type of business use cases are applicable for the EJB connector?
What is EJB?
• Encapsulates multiple objects
• Conforms to certain conventions.
• Mainly for client-side
development
JavaBeans
• Enterprise JavaBeans
• Mainly for Server-side development
• Large scale enterprise application
• Suitable for distributed computing
application
• Local vs remote
• Base on RMI
EJB
RMI
How EJB uses RMI
EJB in high level
2
4
EJB 2.0
2
5
3 Forms of EJB
There are two main kinds of session
beans:
• Stateful: The stateful session
Beans store session information
for each client across several
transactions. It remains valid for a
single client/server session.
• Stateless: A stateless session
bean is managed by its
container, so it can
These beans store persistent data
within a data source. There are two
variants among entity beans:
Persistence is controlled by the
container: These entity beans assign
persistence to the EJB container.
Persistence is controlled by the
entity beans: These entity beans
maintain their own persistence.
These are the enterprise beans that
receive and manage Java message
service messages and are known as
message-driven beans.
They can only be accessed
through texting and lack any kind
of interface. Asynchronous
communication takes place
between the queue and the
listener.
Session Beans Entity Beans Message-Driven Beans
1 2 3
EJB 2 vs EJB 3
• Home Interface and Remote Interface.
• EJB 3.0 performs better because it uses POJOs along
with metadata annotation
• Annotations are introduced in EJB 3
• Bean, DAO conversion is possible in EJB 3
• EJB 3 is lightweight
EJB servers
• Driver (specific to the server)
• Business Interface (specific to app)
• Lookup Bean (JNDI lookup)
• Method Name
• Method Parameters
• WebLogic
• JBoss (WildFly Project)
• WebSphere
• GlassFish
• Tomcat, etc.
EJB client config
a) Entity beans
b) Session beans
c) Drivers and interfaces
d) EJB containers
Quiz 2
What are the typical jars you would ask from the EJB server to
configure your EJB client application?
a) Entity beans
b) Session beans
c) Drivers and interfaces
d) EJB containers
Quiz 2
What are the typical jars you would ask from the EJB server to
configure your EJB client application?
EJB
Connector
Mulesoft torronto meetup_16
• Only support Mule runtime version 4.0.0 and above
• Version 1.0.0 supports JBoss
• Version 1.1.0 supports JBoss, WebLogic
• Supports EJB 2 and 3
• Tested only with SessionBean
• Uses JNDI lookup
• Supports SSL security
Features
How to configure EJB
3.0 for WebLogic
How to configure EJB 2.0 for WebLogic
SSL Auth
Common Questions
• Parameters can be objects? Yes
⚬ Tested in limited capacity
• Password is plain, not masked?
⚬ Future release
• Support (what if it goes wrong/doesnt work)?
• What other authentication does it support?
⚬ Basic auth in JAAS
• SSL: Yes
• No confirmation/green check for uploaded jars
⚬ Future release
• Test connection is not really checking network connectivity yet
⚬ Future release will make it more advanced
Common Questions
• Always save the project before clicking the “Test connectivity” button
⚬ Note. Will be enriched in future.
• Server versions that are used for testing:
⚬ Wildfly
⚬ WebLogic
• How to debug?
⚬ Connector is logging basic staff
⚬ Error logs may not be 100% accurate
⚬ Contact PlektonLabs
• What about log4j2 vulnerabilities?
• We are using log4j2 SDK. Are we using the latest version of the SDK?
• Authentication error: javax.security.sasl.SaslException: DIGEST-MD5: Server rejected
authentication
• Wrong host: java.net.UnknownHostException
a) Using JNDI lookup
b) Making a REST API call
c) Through the SSL handshake
d) Extracting the jar manually
Quiz 3
How EJB connector find the beans?
a) Using JNDI lookup
b) Making a REST API call
c) Through the SSL handshake
d) Extracting the jar manually
Quiz 3
How EJB connector find the beans?
In Action
Quick Demo
Q/A
If you have any questions feel free to ask. Feel free to email at
mulesoftconnector@plektonlabs.com
for any further questions or clarifications
about the connector!
If you are one of the quiz winners
1. Send your name and email to the organizers in the chat window.
2. MuleSoft will contact you to request your voucher.
3. You can only select training vouchers. Certification vouchers are no longer offered.
However, some trainings will give you a free voucher for a certification attempt at the end.
4. Once processed, you can expect to receive your voucher within 10 business days.
5. If you experience any trouble redeeming a voucher, please raise a ticket at
training.mulesoft.com/question
43
#MuleSoftMeetups
44
● Share:
○ Tweet using the hashtag #MuleSoftMeetups
○ Invite your network to join: https://meetups.mulesoft.com/toronto/
● Feedback:
○ Fill out the survey feedback and suggest topics for upcoming events
○ Contact MuleSoft at meetups@mulesoft.com for ways to improve the program
What’s next?
#MuleSoftMeetups
Thank You

More Related Content

DOC
Prasad Rompalli latest Resume
PDF
React Interview Questions and Answers | React Tutorial | React Redux Online T...
PPT
PDF
Jabber Certification
PDF
Financial Valuation Certification
PPTX
Java training in bangalore
PPTX
Should you be using an event driven architecture - IDA IT (short version)
PPTX
What 5 years of implementation microservices has taught me
Prasad Rompalli latest Resume
React Interview Questions and Answers | React Tutorial | React Redux Online T...
Jabber Certification
Financial Valuation Certification
Java training in bangalore
Should you be using an event driven architecture - IDA IT (short version)
What 5 years of implementation microservices has taught me

What's hot (11)

PDF
Mobile Code Optimisation Services
PDF
PhanChuong
PDF
Introcution to EJB
DOC
CV_SwapnilGupta
PPT
Thoughtful Software Design
PDF
Domain Driven Analysis and Design
DOC
Resume
PPTX
Should you be using an event driven architecture?
PDF
CQRS and event sourcing
PPT
Jpa basics
PDF
SOA, Microservices and Event Driven Architecture
Mobile Code Optimisation Services
PhanChuong
Introcution to EJB
CV_SwapnilGupta
Thoughtful Software Design
Domain Driven Analysis and Design
Resume
Should you be using an event driven architecture?
CQRS and event sourcing
Jpa basics
SOA, Microservices and Event Driven Architecture
Ad

Similar to Mulesoft torronto meetup_16 (20)

PDF
Connecting ejb with mule
PDF
10 clues showing that you are doing OSGi in the wrong manner - Jerome Moliere
PDF
Mastering BDD - Eran Kinsbruner Workshop Quest 2018
PDF
EJB 3.0 - Yet Another Introduction
PPT
.Net training in Bhubaneswar
PPT
Unite5-EJB-2019.ppt
PDF
Java EE 6 Adoption in One of the World’s Largest Online Financial Systems
PPTX
All you need is fast feedback loop, fast feedback loop, fast feedback loop is...
PPTX
A Beard, An App, A Blender
PPTX
May MarTech Madness - London MUG May 18th
PDF
Microservices: The Best Practices
PPTX
14 3400-mitre dev ops enterprise summit briefing 2014-10_22
PPTX
DOES14 - Aimee Bechtle and Bill Donaldson - The MITRE Corp
PPTX
Testing for Logic App Solutions | Integration Monday
PPT
Mailing Website
PDF
Best Practices in Software Development
PPT
Встреча "QA: в каких направлениях может найти себя тестировщик?"
PPTX
London MUG | May MarTech Madness
PPTX
.NET Fest 2019. Александр Демчук. How to measure relationships within the Com...
Connecting ejb with mule
10 clues showing that you are doing OSGi in the wrong manner - Jerome Moliere
Mastering BDD - Eran Kinsbruner Workshop Quest 2018
EJB 3.0 - Yet Another Introduction
.Net training in Bhubaneswar
Unite5-EJB-2019.ppt
Java EE 6 Adoption in One of the World’s Largest Online Financial Systems
All you need is fast feedback loop, fast feedback loop, fast feedback loop is...
A Beard, An App, A Blender
May MarTech Madness - London MUG May 18th
Microservices: The Best Practices
14 3400-mitre dev ops enterprise summit briefing 2014-10_22
DOES14 - Aimee Bechtle and Bill Donaldson - The MITRE Corp
Testing for Logic App Solutions | Integration Monday
Mailing Website
Best Practices in Software Development
Встреча "QA: в каких направлениях может найти себя тестировщик?"
London MUG | May MarTech Madness
.NET Fest 2019. Александр Демчук. How to measure relationships within the Com...
Ad

More from Anurag Dwivedi (8)

PPTX
Anypoint_Code_Builder_-Toronto Meetup.pptx
PPTX
Toronto Anypoint DataGraph (1).pptx
PPTX
Toronto MuleSoft_Meetup_Run Time Fabric - Self Managed Kubernetes.pptx
PPTX
Toronto mule soft meetup november 2021
PPTX
Mulesoftmeetup20th mar final
PPTX
Mulesoftmeetup Thiruvanathapuram #4
PPTX
Mulesoftmeetup4th july
PPTX
Mulesoft meetup 9thmay Thiruvananthapuram
Anypoint_Code_Builder_-Toronto Meetup.pptx
Toronto Anypoint DataGraph (1).pptx
Toronto MuleSoft_Meetup_Run Time Fabric - Self Managed Kubernetes.pptx
Toronto mule soft meetup november 2021
Mulesoftmeetup20th mar final
Mulesoftmeetup Thiruvanathapuram #4
Mulesoftmeetup4th july
Mulesoft meetup 9thmay Thiruvananthapuram

Recently uploaded (20)

PPTX
Sorting and Hashing in Data Structures with Algorithms, Techniques, Implement...
PPTX
Feature types and data preprocessing steps
PPTX
Graph Data Structures with Types, Traversals, Connectivity, and Real-Life App...
DOC
T Pandian CV Madurai pandi kokkaf illaya
PPTX
Chemical Technological Processes, Feasibility Study and Chemical Process Indu...
PPTX
mechattonicsand iotwith sensor and actuator
PDF
Exploratory_Data_Analysis_Fundamentals.pdf
PPTX
CONTRACTS IN CONSTRUCTION PROJECTS: TYPES
PDF
Soil Improvement Techniques Note - Rabbi
PPTX
ai_satellite_crop_management_20250815030350.pptx
PDF
20250617 - IR - Global Guide for HR - 51 pages.pdf
PPTX
Amdahl’s law is explained in the above power point presentations
PDF
Unit1 - AIML Chapter 1 concept and ethics
PDF
Computer System Architecture 3rd Edition-M Morris Mano.pdf
PPT
Chapter 1 - Introduction to Manufacturing Technology_2.ppt
PPTX
CN_Unite_1 AI&DS ENGGERING SPPU PUNE UNIVERSITY
PPTX
Management Information system : MIS-e-Business Systems.pptx
PDF
First part_B-Image Processing - 1 of 2).pdf
PPTX
CyberSecurity Mobile and Wireless Devices
PPTX
wireless networks, mobile computing.pptx
Sorting and Hashing in Data Structures with Algorithms, Techniques, Implement...
Feature types and data preprocessing steps
Graph Data Structures with Types, Traversals, Connectivity, and Real-Life App...
T Pandian CV Madurai pandi kokkaf illaya
Chemical Technological Processes, Feasibility Study and Chemical Process Indu...
mechattonicsand iotwith sensor and actuator
Exploratory_Data_Analysis_Fundamentals.pdf
CONTRACTS IN CONSTRUCTION PROJECTS: TYPES
Soil Improvement Techniques Note - Rabbi
ai_satellite_crop_management_20250815030350.pptx
20250617 - IR - Global Guide for HR - 51 pages.pdf
Amdahl’s law is explained in the above power point presentations
Unit1 - AIML Chapter 1 concept and ethics
Computer System Architecture 3rd Edition-M Morris Mano.pdf
Chapter 1 - Introduction to Manufacturing Technology_2.ppt
CN_Unite_1 AI&DS ENGGERING SPPU PUNE UNIVERSITY
Management Information system : MIS-e-Business Systems.pptx
First part_B-Image Processing - 1 of 2).pdf
CyberSecurity Mobile and Wireless Devices
wireless networks, mobile computing.pptx

Mulesoft torronto meetup_16

  • 1. Mar 01, 2022 Toronto MuleSoft Meetup - #17 EJB Connector for mulesoft
  • 2. 3 #MuleSoftMeetups Mahesh Pujari MuleSoft Developer at Mackenzie Investments. Overall, 10 Years of experience in IT. Around 7 years of integration expertise. 3+ Years using Mulesoft 3x Mulesoft Certified Kishore Reddy Paluri Solutions Architect at MuleSoft. 15 years of experience building Integration, ESB, SOA, API, Security and Middleware solutions on Cloud, On-Prem, and Hybrid environments. Organizers Anurag Dwivedi Associate Solution Architect at Apisero 9 years of experience creating solutions for Manufacturing,Healthcare,Bank ing and Airline Clients Certified Platform Architect Certified Integration Architect
  • 3. 4 ●About Speaker: ○ CEO and CTO of Plekton Labs ○ Over 17 years of value driven IT practitioners with influential executive leadership in enterprise architecture Introduction Wahid Mohammad
  • 5. • Both the speaker and host are organizing this meet up in individual capacity, only. We are not representing our companies here. • This presentation is strictly for learning purpose only. Organizer/Presenter do not hold any responsibility that same solution will work for your business requirements also. • This presentation is not meant for any promotional activities. Safe Harbor Statement 6
  • 6. Check out the new developer tutorials experience for better discoverability and navigation. New tutorials will now include: ● Left-hand rail to navigate between tutorials ● Embedded videos per tutorial ● Copy button for code scripts ● Code available in a JAR file or GitHub repo ● Previous/Next buttons for navigation ● Markdown-based content ● Redesigned tables ● And more! Keep posted for new updates! Send your feedback to devrel@mulesoft.com Discover the new developer tutorials! developer.mulesoft.com/tutorials-and-howtos/getting-started/hello-mule/
  • 7. Q&A Tab ● Questions can be lost in the Chat. ● Under the Chat window, there are 3 tabs: General, Q&A, and DMs. ● Click on the Q&A tab to ask your questions. 8
  • 8. How does the quiz work? 1. Questions will be asked during the presentation. 2. If you already answered a question correctly, do not keep answering and give an opportunity to the other attendees. 3. The first answer in the chat is the winner, unless it’s from someone that already answered another question. IMPORTANT ● You can only win one voucher per month, regardless of the meetup city. ● You can’t participate if you’re already a meetup leader (even from another city) or a MuleSoft ambassador. ● If you already won a voucher in another event in the same month, you would not receive a voucher. If any of this applies to you, please don’t participate in the quiz and give other people the opportunity to win. 9 #MuleSoftMeetups
  • 9. 1 0 Agenda • Objective • Why do we care • A use-case • What is EJB • EJB connector • What EJB connector CAN/CAN'T do • A quick Demo • Q/A
  • 10. Objective What can EJB connector do How to use it
  • 11. 1 2 Why do we care about EJB connector? • EJB systems are still being used by organizations across NA because dependencies have been created already by using these systems for ages. • Sometimes the cost of legacy modernization overshadows the cost of maintaining an old system like EJB. • We have MuleSoft but we don't have any connector. • Reusability in C4E in any business domain with EJB system. Source: https://blog.sergb.com/2017/352
  • 13. An HVAC Company • They wanted to integrate their CRM system to communicate with customers before their installed systems requires repairs or replacements. • Value for existing and new customers. This story is about an HVAC company and their customer experience in Canada.
  • 14. To Be Or Not to Be? HVAC company uses the EJB system in their CRM system. They wanted to integrate their CRM system so that they can proactively communicate with customers Now integrating with MuleSoft is a big deal for them Slower time to market could hurt them a lot considering how many EJB implementations there would be in the backend. Challenges: CRM only support EJB
  • 16. • Proactive vs reactive • Increase revenue • Better customer experience Result
  • 17. a) Any business use case that requires connecting EJB services b) Financial c) Retail d) Utilities Quiz 1 What type of business use cases are applicable for the EJB connector?
  • 18. a) Any business use case that requires connecting EJB services b) Financial c) Retail d) Utilities Quiz 1 What type of business use cases are applicable for the EJB connector?
  • 20. • Encapsulates multiple objects • Conforms to certain conventions. • Mainly for client-side development JavaBeans • Enterprise JavaBeans • Mainly for Server-side development • Large scale enterprise application • Suitable for distributed computing application • Local vs remote • Base on RMI EJB
  • 21. RMI
  • 23. EJB in high level 2 4
  • 25. 3 Forms of EJB There are two main kinds of session beans: • Stateful: The stateful session Beans store session information for each client across several transactions. It remains valid for a single client/server session. • Stateless: A stateless session bean is managed by its container, so it can These beans store persistent data within a data source. There are two variants among entity beans: Persistence is controlled by the container: These entity beans assign persistence to the EJB container. Persistence is controlled by the entity beans: These entity beans maintain their own persistence. These are the enterprise beans that receive and manage Java message service messages and are known as message-driven beans. They can only be accessed through texting and lack any kind of interface. Asynchronous communication takes place between the queue and the listener. Session Beans Entity Beans Message-Driven Beans 1 2 3
  • 26. EJB 2 vs EJB 3 • Home Interface and Remote Interface. • EJB 3.0 performs better because it uses POJOs along with metadata annotation • Annotations are introduced in EJB 3 • Bean, DAO conversion is possible in EJB 3 • EJB 3 is lightweight
  • 27. EJB servers • Driver (specific to the server) • Business Interface (specific to app) • Lookup Bean (JNDI lookup) • Method Name • Method Parameters • WebLogic • JBoss (WildFly Project) • WebSphere • GlassFish • Tomcat, etc. EJB client config
  • 28. a) Entity beans b) Session beans c) Drivers and interfaces d) EJB containers Quiz 2 What are the typical jars you would ask from the EJB server to configure your EJB client application?
  • 29. a) Entity beans b) Session beans c) Drivers and interfaces d) EJB containers Quiz 2 What are the typical jars you would ask from the EJB server to configure your EJB client application?
  • 32. • Only support Mule runtime version 4.0.0 and above • Version 1.0.0 supports JBoss • Version 1.1.0 supports JBoss, WebLogic • Supports EJB 2 and 3 • Tested only with SessionBean • Uses JNDI lookup • Supports SSL security Features
  • 33. How to configure EJB 3.0 for WebLogic
  • 34. How to configure EJB 2.0 for WebLogic
  • 36. Common Questions • Parameters can be objects? Yes ⚬ Tested in limited capacity • Password is plain, not masked? ⚬ Future release • Support (what if it goes wrong/doesnt work)? • What other authentication does it support? ⚬ Basic auth in JAAS • SSL: Yes • No confirmation/green check for uploaded jars ⚬ Future release • Test connection is not really checking network connectivity yet ⚬ Future release will make it more advanced
  • 37. Common Questions • Always save the project before clicking the “Test connectivity” button ⚬ Note. Will be enriched in future. • Server versions that are used for testing: ⚬ Wildfly ⚬ WebLogic • How to debug? ⚬ Connector is logging basic staff ⚬ Error logs may not be 100% accurate ⚬ Contact PlektonLabs • What about log4j2 vulnerabilities? • We are using log4j2 SDK. Are we using the latest version of the SDK? • Authentication error: javax.security.sasl.SaslException: DIGEST-MD5: Server rejected authentication • Wrong host: java.net.UnknownHostException
  • 38. a) Using JNDI lookup b) Making a REST API call c) Through the SSL handshake d) Extracting the jar manually Quiz 3 How EJB connector find the beans?
  • 39. a) Using JNDI lookup b) Making a REST API call c) Through the SSL handshake d) Extracting the jar manually Quiz 3 How EJB connector find the beans?
  • 41. Q/A If you have any questions feel free to ask. Feel free to email at mulesoftconnector@plektonlabs.com for any further questions or clarifications about the connector!
  • 42. If you are one of the quiz winners 1. Send your name and email to the organizers in the chat window. 2. MuleSoft will contact you to request your voucher. 3. You can only select training vouchers. Certification vouchers are no longer offered. However, some trainings will give you a free voucher for a certification attempt at the end. 4. Once processed, you can expect to receive your voucher within 10 business days. 5. If you experience any trouble redeeming a voucher, please raise a ticket at training.mulesoft.com/question 43 #MuleSoftMeetups
  • 43. 44 ● Share: ○ Tweet using the hashtag #MuleSoftMeetups ○ Invite your network to join: https://meetups.mulesoft.com/toronto/ ● Feedback: ○ Fill out the survey feedback and suggest topics for upcoming events ○ Contact MuleSoft at meetups@mulesoft.com for ways to improve the program What’s next? #MuleSoftMeetups