SlideShare a Scribd company logo
Mule Java Custom
Component - 2
Karthik
Java Component with Singleton:
The singleton object factory does not create a new instance for each request;
instead, the instance is shared.
Example:
Drag java component and double click on the java component to bring
up properties.
Click "+" symbol next to the 'Object' field
Select “core:singleton-object” and click "next".
Click on "..." button and select class
"com.techm.javacustomcomponents.UsingSingletonObject"
• Click on "Advanced" tab and create following three properties using "+" as
shown below and click on Finish.
• name
• dept
• location
Same properties with same names need to be created along with setters and
getters in "UsingSingletonObject" class. So that, specified properties values in
java component are assigned into java class properties. Below is the code to
create map object with these three properties.
Mule java part-2
Mule java part-2
Mule java part-2
• A bean needs to be created in global elements to use Invoke component.
Create a bean which refers to a custom made java class in global elements.
In "Global Elements" tab click on "Create" button.
• Click on "..." symbol next to "Class" field to select a java custom made class.
Provide some meaningful names in "ID" and "Name" fields. Click on OK
button.
• Drag a invoke component and double click on the component to bring up
the properties. Fill the required fields as shown below.
Mule java part-2
• Name Any meaningful name
• Object Ref "ID" value of bean which is created earlier
• Method Method name which needs to be invoked
• Method Arguments Values of method arguments
• In the same way two more invoke components are created for two
methods (substract and multiply)
•Thank You All

More Related Content

Viewers also liked (17)

PPTX
Form research (2)
jarcher1998
 
PPTX
Evaluation [Question 1 (II)]
jarcher1998
 
PPTX
Form research on what we need to include in our Social Realism production.
jarcher1998
 
PPTX
Sound improvements
jarcher1998
 
PPTX
Feedback from the audience feedback (!)
jarcher1998
 
PPTX
Technical research (Multi- camera)
jarcher1998
 
PPTX
Feedback from the audience feedback (!)- REVISED.
jarcher1998
 
PPTX
Routing and filters
Karnam Karthik
 
PPTX
Media Evaluation (Question 1)
jarcher1998
 
PPTX
Genre research A2
jarcher1998
 
PPTX
Evaluation 1 (Revised)
jarcher1998
 
PPTX
Our set in stone locations!
jarcher1998
 
PPTX
Sound improvements
jarcher1998
 
PPTX
What types of documentary are there
jarcher1998
 
PPTX
Mule java part-3
Karnam Karthik
 
PPTX
Http mule
Karnam Karthik
 
PPTX
Https service mule
Karnam Karthik
 
Form research (2)
jarcher1998
 
Evaluation [Question 1 (II)]
jarcher1998
 
Form research on what we need to include in our Social Realism production.
jarcher1998
 
Sound improvements
jarcher1998
 
Feedback from the audience feedback (!)
jarcher1998
 
Technical research (Multi- camera)
jarcher1998
 
Feedback from the audience feedback (!)- REVISED.
jarcher1998
 
Routing and filters
Karnam Karthik
 
Media Evaluation (Question 1)
jarcher1998
 
Genre research A2
jarcher1998
 
Evaluation 1 (Revised)
jarcher1998
 
Our set in stone locations!
jarcher1998
 
Sound improvements
jarcher1998
 
What types of documentary are there
jarcher1998
 
Mule java part-3
Karnam Karthik
 
Http mule
Karnam Karthik
 
Https service mule
Karnam Karthik
 

Similar to Mule java part-2 (20)

PPTX
Java
manavp
 
PPTX
Java mule
Gandham38
 
PDF
Installation
VenkataBolagani
 
PPTX
Flex Building User Interface Components
Ahmad Hamid
 
PDF
Web dynpro for abap
Gabriel Magalhães
 
PDF
Lab 2: Optional: Creating requirements information
IBM Rational software
 
PPTX
ppt- u 2.pptx
19ME041NAVEENR
 
PDF
How it got Started : The Tesla Presentation
MoYagzud
 
PPTX
Understanding Object Oriented Javascript - Coffee@DBG June
Deepu S Nath
 
PDF
RFT Tutorial - 9 How To Create A Properties Verification Point In Rft For Tes...
Yogindernath Gupta
 
PDF
AcroButtonsTutorial
tutorialsruby
 
PDF
AcroButtonsTutorial
tutorialsruby
 
PDF
Tutorial 3 accessing the database
ssa_joe
 
PPT
ConsTRUCTION AND DESTRUCTION
Shweta Shah
 
PPTX
C++ Constructor and Destructors.pptx
sasukeman
 
PPT
Oop Constructor Destructors Constructor Overloading lecture 2
Abbas Ajmal
 
PPTX
React state
Ducat
 
PPTX
Android and IOS UI Development (Android 5.0 and iOS 9.0)
Michael Shrove
 
PPTX
Technology and Livelihood Education IV
Kenneth Osabal
 
PPTX
constructocvbcvbcvbcvbr-Destructor (1).pptx
WrushabhShirsat3
 
Java
manavp
 
Java mule
Gandham38
 
Installation
VenkataBolagani
 
Flex Building User Interface Components
Ahmad Hamid
 
Web dynpro for abap
Gabriel Magalhães
 
Lab 2: Optional: Creating requirements information
IBM Rational software
 
ppt- u 2.pptx
19ME041NAVEENR
 
How it got Started : The Tesla Presentation
MoYagzud
 
Understanding Object Oriented Javascript - Coffee@DBG June
Deepu S Nath
 
RFT Tutorial - 9 How To Create A Properties Verification Point In Rft For Tes...
Yogindernath Gupta
 
AcroButtonsTutorial
tutorialsruby
 
AcroButtonsTutorial
tutorialsruby
 
Tutorial 3 accessing the database
ssa_joe
 
ConsTRUCTION AND DESTRUCTION
Shweta Shah
 
C++ Constructor and Destructors.pptx
sasukeman
 
Oop Constructor Destructors Constructor Overloading lecture 2
Abbas Ajmal
 
React state
Ducat
 
Android and IOS UI Development (Android 5.0 and iOS 9.0)
Michael Shrove
 
Technology and Livelihood Education IV
Kenneth Osabal
 
constructocvbcvbcvbcvbr-Destructor (1).pptx
WrushabhShirsat3
 
Ad

More from Karnam Karthik (12)

PPTX
Mule system properties
Karnam Karthik
 
PPTX
Mule splitters
Karnam Karthik
 
PPTX
Mule properties
Karnam Karthik
 
PPTX
Mule enricher
Karnam Karthik
 
PPTX
Mule batch
Karnam Karthik
 
PPTX
Jms queues
Karnam Karthik
 
PPTX
Jms topics
Karnam Karthik
 
PPTX
Mule java part-4
Karnam Karthik
 
PPTX
Mule java part-3
Karnam Karthik
 
PPTX
Mule java part-1
Karnam Karthik
 
PPTX
Mule java part-1
Karnam Karthik
 
PPTX
Mule expression component
Karnam Karthik
 
Mule system properties
Karnam Karthik
 
Mule splitters
Karnam Karthik
 
Mule properties
Karnam Karthik
 
Mule enricher
Karnam Karthik
 
Mule batch
Karnam Karthik
 
Jms queues
Karnam Karthik
 
Jms topics
Karnam Karthik
 
Mule java part-4
Karnam Karthik
 
Mule java part-3
Karnam Karthik
 
Mule java part-1
Karnam Karthik
 
Mule java part-1
Karnam Karthik
 
Mule expression component
Karnam Karthik
 
Ad

Recently uploaded (20)

PDF
THE PSYCHOANALYTIC OF THE BLACK CAT BY EDGAR ALLAN POE (1).pdf
nabilahk908
 
PPTX
Martyrs of Ireland - who kept the faith of St. Patrick.pptx
Martin M Flynn
 
PPTX
JSON, XML and Data Science introduction.pptx
Ramakrishna Reddy Bijjam
 
PPTX
F-BLOCK ELEMENTS POWER POINT PRESENTATIONS
mprpgcwa2024
 
PPTX
How to Configure Refusal of Applicants in Odoo 18 Recruitment
Celine George
 
PPTX
2025 Completing the Pre-SET Plan Form.pptx
mansk2
 
PDF
Andreas Schleicher_Teaching Compass_Education 2040.pdf
EduSkills OECD
 
PDF
CAD25 Gbadago and Fafa Presentation Revised-Aston Business School, UK.pdf
Kweku Zurek
 
PPT
M&A5 Q1 1 differentiate evolving early Philippine conventional and contempora...
ErlizaRosete
 
PDF
Romanticism in Love and Sacrifice An Analysis of Oscar Wilde’s The Nightingal...
KaryanaTantri21
 
PDF
The Power of Compound Interest (Stanford Initiative for Financial Decision-Ma...
Stanford IFDM
 
DOCX
DLL english grade five goof for one week
FlordelynGonzales1
 
PDF
Supply Chain Security A Comprehensive Approach 1st Edition Arthur G. Arway
rxgnika452
 
PPTX
Tanja Vujicic - PISA for Schools contact Info
EduSkills OECD
 
PDF
Learning Styles Inventory for Senior High School Students
Thelma Villaflores
 
PPTX
Iván Bornacelly - Presentation of the report - Empowering the workforce in th...
EduSkills OECD
 
DOCX
MUSIC AND ARTS 5 DLL MATATAG LESSON EXEMPLAR QUARTER 1_Q1_W1.docx
DianaValiente5
 
PPTX
How to use grouped() method in Odoo 18 - Odoo Slides
Celine George
 
PDF
Public Health For The 21st Century 1st Edition Judy Orme Jane Powell
trjnesjnqg7801
 
PDF
Free eBook ~100 Common English Proverbs (ebook) pdf.pdf
OH TEIK BIN
 
THE PSYCHOANALYTIC OF THE BLACK CAT BY EDGAR ALLAN POE (1).pdf
nabilahk908
 
Martyrs of Ireland - who kept the faith of St. Patrick.pptx
Martin M Flynn
 
JSON, XML and Data Science introduction.pptx
Ramakrishna Reddy Bijjam
 
F-BLOCK ELEMENTS POWER POINT PRESENTATIONS
mprpgcwa2024
 
How to Configure Refusal of Applicants in Odoo 18 Recruitment
Celine George
 
2025 Completing the Pre-SET Plan Form.pptx
mansk2
 
Andreas Schleicher_Teaching Compass_Education 2040.pdf
EduSkills OECD
 
CAD25 Gbadago and Fafa Presentation Revised-Aston Business School, UK.pdf
Kweku Zurek
 
M&A5 Q1 1 differentiate evolving early Philippine conventional and contempora...
ErlizaRosete
 
Romanticism in Love and Sacrifice An Analysis of Oscar Wilde’s The Nightingal...
KaryanaTantri21
 
The Power of Compound Interest (Stanford Initiative for Financial Decision-Ma...
Stanford IFDM
 
DLL english grade five goof for one week
FlordelynGonzales1
 
Supply Chain Security A Comprehensive Approach 1st Edition Arthur G. Arway
rxgnika452
 
Tanja Vujicic - PISA for Schools contact Info
EduSkills OECD
 
Learning Styles Inventory for Senior High School Students
Thelma Villaflores
 
Iván Bornacelly - Presentation of the report - Empowering the workforce in th...
EduSkills OECD
 
MUSIC AND ARTS 5 DLL MATATAG LESSON EXEMPLAR QUARTER 1_Q1_W1.docx
DianaValiente5
 
How to use grouped() method in Odoo 18 - Odoo Slides
Celine George
 
Public Health For The 21st Century 1st Edition Judy Orme Jane Powell
trjnesjnqg7801
 
Free eBook ~100 Common English Proverbs (ebook) pdf.pdf
OH TEIK BIN
 

Mule java part-2

  • 2. Java Component with Singleton: The singleton object factory does not create a new instance for each request; instead, the instance is shared. Example: Drag java component and double click on the java component to bring up properties. Click "+" symbol next to the 'Object' field Select “core:singleton-object” and click "next".
  • 3. Click on "..." button and select class "com.techm.javacustomcomponents.UsingSingletonObject"
  • 4. • Click on "Advanced" tab and create following three properties using "+" as shown below and click on Finish. • name • dept • location Same properties with same names need to be created along with setters and getters in "UsingSingletonObject" class. So that, specified properties values in java component are assigned into java class properties. Below is the code to create map object with these three properties.
  • 8. • A bean needs to be created in global elements to use Invoke component. Create a bean which refers to a custom made java class in global elements. In "Global Elements" tab click on "Create" button. • Click on "..." symbol next to "Class" field to select a java custom made class. Provide some meaningful names in "ID" and "Name" fields. Click on OK button.
  • 9. • Drag a invoke component and double click on the component to bring up the properties. Fill the required fields as shown below.
  • 11. • Name Any meaningful name • Object Ref "ID" value of bean which is created earlier • Method Method name which needs to be invoked • Method Arguments Values of method arguments • In the same way two more invoke components are created for two methods (substract and multiply)