SlideShare a Scribd company logo
MULE JAVA CUSTOM COMPONENT - 2
Ravinder
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

What's hot (7)

PDF
Automated Xcode 7 UI Testing
Jouni Miettunen
 
PDF
Angular js 2.0, ng poznań 20.11
Kamil Augustynowicz
 
PDF
Loadrunner
Kenneth Kufluk
 
PDF
iOS (7) Workshop
Fábio Bernardo
 
PDF
Connect.Tech- Enhancing Your Workflow With Xcode Source Editor Extensions
stable|kernel
 
PPTX
SVN variable substitution
Tarun Telang
 
PPTX
Ext Js introduction and new features in Ext Js 6
Sushil Shinde
 
Automated Xcode 7 UI Testing
Jouni Miettunen
 
Angular js 2.0, ng poznań 20.11
Kamil Augustynowicz
 
Loadrunner
Kenneth Kufluk
 
iOS (7) Workshop
Fábio Bernardo
 
Connect.Tech- Enhancing Your Workflow With Xcode Source Editor Extensions
stable|kernel
 
SVN variable substitution
Tarun Telang
 
Ext Js introduction and new features in Ext Js 6
Sushil Shinde
 

Viewers also liked (18)

PPT
Climate Change in the Media: Where have we been and where are we headed?
Mike Schäfer
 
PPT
Mule Esb Fundamentals
mdfkhan625
 
PPTX
Mule java part-3
Ravinder Singh
 
PPT
Mule Fundamentals
Khasim Cise
 
PPTX
Mule soa
D.Rajesh Kumar
 
PPTX
Mule AMQP Connector
Ankush Sharma
 
PPTX
Frank Bien Opening Keynote - Join 2016
Looker
 
PPTX
Mule Batch Filter
Ankush Sharma
 
PPTX
Lloyd Tabb on Symmetric Aggregates
Looker
 
PPT
Mule security - jaas
charan teja R
 
PPTX
Meet Looker 4
Looker
 
ODP
Fetch records from mysql using mule esb
AnilKumar Etagowni
 
PDF
From Question to Action
Janessa Lantz
 
PPT
MULE-JAAS
D.Rajesh Kumar
 
PPTX
How to Build a Data-Driven Company: From Infrastructure to Insights
Looker
 
PPTX
Rpc
eleksdev
 
PPTX
Aspnet core
eleksdev
 
PPTX
Agile Analytics
Atif Shaikh
 
Climate Change in the Media: Where have we been and where are we headed?
Mike Schäfer
 
Mule Esb Fundamentals
mdfkhan625
 
Mule java part-3
Ravinder Singh
 
Mule Fundamentals
Khasim Cise
 
Mule soa
D.Rajesh Kumar
 
Mule AMQP Connector
Ankush Sharma
 
Frank Bien Opening Keynote - Join 2016
Looker
 
Mule Batch Filter
Ankush Sharma
 
Lloyd Tabb on Symmetric Aggregates
Looker
 
Mule security - jaas
charan teja R
 
Meet Looker 4
Looker
 
Fetch records from mysql using mule esb
AnilKumar Etagowni
 
From Question to Action
Janessa Lantz
 
MULE-JAAS
D.Rajesh Kumar
 
How to Build a Data-Driven Company: From Infrastructure to Insights
Looker
 
Aspnet core
eleksdev
 
Agile Analytics
Atif Shaikh
 
Ad

Similar to Mule java part-2 (6)

PPTX
Java mule
Gandham38
 
PPTX
Java in mule part 2
vasanthii9
 
PPTX
Mule java part-1
Ravinder Singh
 
PPTX
Mule java part-1
Karnam Karthik
 
PPTX
Mule java part-1
Karnam Karthik
 
PPTX
Java in mule part 1
vasanthii9
 
Java mule
Gandham38
 
Java in mule part 2
vasanthii9
 
Mule java part-1
Ravinder Singh
 
Mule java part-1
Karnam Karthik
 
Mule java part-1
Karnam Karthik
 
Java in mule part 1
vasanthii9
 
Ad

More from Ravinder Singh (9)

PPTX
Mule in a nutshell
Ravinder Singh
 
PPTX
Mule java part-4
Ravinder Singh
 
PPTX
Mule system properties
Ravinder Singh
 
PPTX
Mule enricher
Ravinder Singh
 
PPTX
Mule properties
Ravinder Singh
 
PPTX
Mule splitters
Ravinder Singh
 
PPTX
Mule batch processing
Ravinder Singh
 
PPTX
Mule expression
Ravinder Singh
 
PPT
Jms topics
Ravinder Singh
 
Mule in a nutshell
Ravinder Singh
 
Mule java part-4
Ravinder Singh
 
Mule system properties
Ravinder Singh
 
Mule enricher
Ravinder Singh
 
Mule properties
Ravinder Singh
 
Mule splitters
Ravinder Singh
 
Mule batch processing
Ravinder Singh
 
Mule expression
Ravinder Singh
 
Jms topics
Ravinder Singh
 

Recently uploaded (20)

PPTX
LDP-2 UNIT 4 Presentation for practical.pptx
abhaypanchal2525
 
PPTX
Introduction to Probability(basic) .pptx
purohitanuj034
 
PPTX
Cleaning Validation Ppt Pharmaceutical validation
Ms. Ashatai Patil
 
PPTX
Digital Professionalism and Interpersonal Competence
rutvikgediya1
 
PPTX
Rules and Regulations of Madhya Pradesh Library Part-I
SantoshKumarKori2
 
PPTX
Gupta Art & Architecture Temple and Sculptures.pptx
Virag Sontakke
 
PPTX
Basics and rules of probability with real-life uses
ravatkaran694
 
PPTX
The Future of Artificial Intelligence Opportunities and Risks Ahead
vaghelajayendra784
 
PDF
Antianginal agents, Definition, Classification, MOA.pdf
Prerana Jadhav
 
PPTX
Sonnet 130_ My Mistress’ Eyes Are Nothing Like the Sun By William Shakespear...
DhatriParmar
 
PPTX
Virus sequence retrieval from NCBI database
yamunaK13
 
PPTX
How to Close Subscription in Odoo 18 - Odoo Slides
Celine George
 
PDF
My Thoughts On Q&A- A Novel By Vikas Swarup
Niharika
 
PPTX
Artificial Intelligence in Gastroentrology: Advancements and Future Presprec...
AyanHossain
 
DOCX
pgdei-UNIT -V Neurological Disorders & developmental disabilities
JELLA VISHNU DURGA PRASAD
 
PPTX
Electrophysiology_of_Heart. Electrophysiology studies in Cardiovascular syste...
Rajshri Ghogare
 
DOCX
Unit 5: Speech-language and swallowing disorders
JELLA VISHNU DURGA PRASAD
 
PPTX
INTESTINALPARASITES OR WORM INFESTATIONS.pptx
PRADEEP ABOTHU
 
PPTX
Dakar Framework Education For All- 2000(Act)
santoshmohalik1
 
PPTX
Translation_ Definition, Scope & Historical Development.pptx
DhatriParmar
 
LDP-2 UNIT 4 Presentation for practical.pptx
abhaypanchal2525
 
Introduction to Probability(basic) .pptx
purohitanuj034
 
Cleaning Validation Ppt Pharmaceutical validation
Ms. Ashatai Patil
 
Digital Professionalism and Interpersonal Competence
rutvikgediya1
 
Rules and Regulations of Madhya Pradesh Library Part-I
SantoshKumarKori2
 
Gupta Art & Architecture Temple and Sculptures.pptx
Virag Sontakke
 
Basics and rules of probability with real-life uses
ravatkaran694
 
The Future of Artificial Intelligence Opportunities and Risks Ahead
vaghelajayendra784
 
Antianginal agents, Definition, Classification, MOA.pdf
Prerana Jadhav
 
Sonnet 130_ My Mistress’ Eyes Are Nothing Like the Sun By William Shakespear...
DhatriParmar
 
Virus sequence retrieval from NCBI database
yamunaK13
 
How to Close Subscription in Odoo 18 - Odoo Slides
Celine George
 
My Thoughts On Q&A- A Novel By Vikas Swarup
Niharika
 
Artificial Intelligence in Gastroentrology: Advancements and Future Presprec...
AyanHossain
 
pgdei-UNIT -V Neurological Disorders & developmental disabilities
JELLA VISHNU DURGA PRASAD
 
Electrophysiology_of_Heart. Electrophysiology studies in Cardiovascular syste...
Rajshri Ghogare
 
Unit 5: Speech-language and swallowing disorders
JELLA VISHNU DURGA PRASAD
 
INTESTINALPARASITES OR WORM INFESTATIONS.pptx
PRADEEP ABOTHU
 
Dakar Framework Education For All- 2000(Act)
santoshmohalik1
 
Translation_ Definition, Scope & Historical Development.pptx
DhatriParmar
 

Mule java part-2

  • 1. MULE JAVA CUSTOM COMPONENT - 2 Ravinder
  • 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)