SlideShare a Scribd company logo
Mule Java Custom
Component - 1
GSN-K
Java CustomComponent
• Java components are used write our custom code and custom
transformation. java transformers will be used when we cannot transform
a message using available Mule transformers. In this example, following
components are explained.
• Java Component
• Java component with singleton
• Invoke Component
• Java Transformer
• Reflection Entry Point Resolver
• Annotated Entry Point Resolver
• Invoking a service using java component
Below is the main flow which exposes a HTTP service and refers to
multiple sub flows one after another to cover all above concepts.
Java Component:
Java component is used to refer a class which has complex code.
Example:
Below is sub flow named 'simple-java-component' which has Set
Payload and java component.
'Set Payload' component sets payload as "Custom Payload".
• Java component is reffered to custom made class (UsingCallable)
which implements Callable interface. This class is used to print current
payload, size of inbound properties and size of invocation properties.
Above class implements Callable interface. it has onCall(MuleEventContext
eventContext) overriden method. This method provides MuleEventContext .
We can get all the data using MuleContext instace as shown in above code
snippet.Data-Mapper.
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"
•Thank You All

More Related Content

What's hot (19)

PPTX
Mulesoft Soap Service
Ujjawal Kant
 
PPTX
Mule jms queues
Gandham38
 
PPTX
Mulesoft vm transport reference
kumar gaurav
 
PPTX
Web service vm in mule
Mohammed246
 
PPTX
Mule Esb Introduction
AbdulImrankhan7
 
PPTX
Mule esb mule message
sathyaraj Anand
 
PPTX
Mule soap
D.Rajesh Kumar
 
PPTX
Basic example using vm component
prudhvivreddy
 
PPTX
Stored procedure in Mule
Khasim Saheb
 
PPTX
Soap request in mule
Praneethchampion
 
PPTX
Simple web service vm
Mohammed246
 
PPTX
Mule Amazon SNS Connector
Ankush Sharma
 
PPTX
Scatter gather in mule
Anirban Sen Chowdhary
 
PPTX
Mule velocity
Praneethchampion
 
PPTX
Using spring scheduler mule
Son Nguyen
 
PPTX
Scatter gather in mule
Khasim Cise
 
PPTX
Validating a soap request in mule
Anirban Sen Chowdhary
 
PPTX
Mule soap
Khasim Saheb
 
PPTX
Basic example using until successful component
prudhvivreddy
 
Mulesoft Soap Service
Ujjawal Kant
 
Mule jms queues
Gandham38
 
Mulesoft vm transport reference
kumar gaurav
 
Web service vm in mule
Mohammed246
 
Mule Esb Introduction
AbdulImrankhan7
 
Mule esb mule message
sathyaraj Anand
 
Mule soap
D.Rajesh Kumar
 
Basic example using vm component
prudhvivreddy
 
Stored procedure in Mule
Khasim Saheb
 
Soap request in mule
Praneethchampion
 
Simple web service vm
Mohammed246
 
Mule Amazon SNS Connector
Ankush Sharma
 
Scatter gather in mule
Anirban Sen Chowdhary
 
Mule velocity
Praneethchampion
 
Using spring scheduler mule
Son Nguyen
 
Scatter gather in mule
Khasim Cise
 
Validating a soap request in mule
Anirban Sen Chowdhary
 
Mule soap
Khasim Saheb
 
Basic example using until successful component
prudhvivreddy
 

Viewers also liked (6)

PPTX
Mule with velocity
AbdulImrankhan7
 
PPT
mulesoft at a glance
Khasim Saheb
 
PPTX
Automatic documantation with mule
Khasim Saheb
 
ODP
Fetch records from mysql using mule esb
AnilKumar Etagowni
 
PPTX
Mule Esb
javeed_mhd
 
PPTX
Choice component in mule demo
Sudha Ch
 
Mule with velocity
AbdulImrankhan7
 
mulesoft at a glance
Khasim Saheb
 
Automatic documantation with mule
Khasim Saheb
 
Fetch records from mysql using mule esb
AnilKumar Etagowni
 
Mule Esb
javeed_mhd
 
Choice component in mule demo
Sudha Ch
 
Ad

Similar to Mule java part-1 (20)

PPTX
Mule java part-1
Karnam Karthik
 
PPTX
Java in mule part 1
vasanthii9
 
PPTX
Mule java part-1
Ravinder Singh
 
PPTX
Java mule
Gandham38
 
PPTX
Java
manavp
 
PPTX
Java component
Srilatha Kante
 
PPTX
Mule java part-2
Karnam Karthik
 
PPT
Java components in Mule
Madhuri Chitrala
 
PPT
Simple Java component in Mule
Christian Hipolito
 
PPTX
Java component
krishashi
 
PPTX
Mule java part-2
Ravinder Singh
 
PPT
Java components in mule
Harish43
 
PPTX
Mule: Java Component
Sulthony Hartanto
 
PPTX
Mule esb
vishnukanthro45
 
PPTX
Mule esb Basics
Sunil Komarapu
 
PPTX
Mule esb
Phaniu
 
PPTX
Mule esb
irfan1008
 
PPTX
Mule esb
Anand kalla
 
PPTX
Mule esb
charan teja R
 
PPTX
Mule esb
Phaniu
 
Mule java part-1
Karnam Karthik
 
Java in mule part 1
vasanthii9
 
Mule java part-1
Ravinder Singh
 
Java mule
Gandham38
 
Java
manavp
 
Java component
Srilatha Kante
 
Mule java part-2
Karnam Karthik
 
Java components in Mule
Madhuri Chitrala
 
Simple Java component in Mule
Christian Hipolito
 
Java component
krishashi
 
Mule java part-2
Ravinder Singh
 
Java components in mule
Harish43
 
Mule: Java Component
Sulthony Hartanto
 
Mule esb
vishnukanthro45
 
Mule esb Basics
Sunil Komarapu
 
Mule esb
Phaniu
 
Mule esb
irfan1008
 
Mule esb
Anand kalla
 
Mule esb
charan teja R
 
Mule esb
Phaniu
 
Ad

More from Karnam Karthik (14)

PPTX
Https service mule
Karnam Karthik
 
PPTX
Http mule
Karnam Karthik
 
PPTX
Routing and filters
Karnam Karthik
 
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-3
Karnam Karthik
 
PPTX
Mule expression component
Karnam Karthik
 
Https service mule
Karnam Karthik
 
Http mule
Karnam Karthik
 
Routing and filters
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-3
Karnam Karthik
 
Mule expression component
Karnam Karthik
 

Recently uploaded (20)

PDF
community health nursing question paper 2.pdf
Prince kumar
 
PPSX
HEALTH ASSESSMENT (Community Health Nursing) - GNM 1st Year
Priyanshu Anand
 
PPTX
HYDROCEPHALUS: NURSING MANAGEMENT .pptx
PRADEEP ABOTHU
 
PPTX
SCHOOL-BASED SEXUAL HARASSMENT PREVENTION AND RESPONSE WORKSHOP
komlalokoe
 
PPTX
Explorando Recursos do Summer '25: Dicas Essenciais - 02
Mauricio Alexandre Silva
 
PPTX
Pyhton with Mysql to perform CRUD operations.pptx
Ramakrishna Reddy Bijjam
 
PPTX
How to Define Translation to Custom Module And Add a new language in Odoo 18
Celine George
 
PDF
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 - GLOBAL SUCCESS - CẢ NĂM - NĂM 2024 (VOCABULARY, ...
Nguyen Thanh Tu Collection
 
PDF
ARAL-Orientation_Morning-Session_Day-11.pdf
JoelVilloso1
 
PDF
1, 2, 3… E MAIS UM CICLO CHEGA AO FIM!.pdf
Colégio Santa Teresinha
 
PPTX
Optimizing Cancer Screening With MCED Technologies: From Science to Practical...
i3 Health
 
PDF
Zoology (Animal Physiology) practical Manual
raviralanaresh2
 
PPTX
2025 Winter SWAYAM NPTEL & A Student.pptx
Utsav Yagnik
 
PPTX
How to Configure Prepayments in Odoo 18 Sales
Celine George
 
PPSX
Health Planning in india - Unit 03 - CHN 2 - GNM 3RD YEAR.ppsx
Priyanshu Anand
 
PPTX
How to Configure Lost Reasons in Odoo 18 CRM
Celine George
 
PPTX
How to Configure Storno Accounting in Odoo 18 Accounting
Celine George
 
PPTX
PPT on the Development of Education in the Victorian England
Beena E S
 
PPTX
Growth and development and milestones, factors
BHUVANESHWARI BADIGER
 
PPTX
ASRB NET 2023 PREVIOUS YEAR QUESTION PAPER GENETICS AND PLANT BREEDING BY SAT...
Krashi Coaching
 
community health nursing question paper 2.pdf
Prince kumar
 
HEALTH ASSESSMENT (Community Health Nursing) - GNM 1st Year
Priyanshu Anand
 
HYDROCEPHALUS: NURSING MANAGEMENT .pptx
PRADEEP ABOTHU
 
SCHOOL-BASED SEXUAL HARASSMENT PREVENTION AND RESPONSE WORKSHOP
komlalokoe
 
Explorando Recursos do Summer '25: Dicas Essenciais - 02
Mauricio Alexandre Silva
 
Pyhton with Mysql to perform CRUD operations.pptx
Ramakrishna Reddy Bijjam
 
How to Define Translation to Custom Module And Add a new language in Odoo 18
Celine George
 
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 - GLOBAL SUCCESS - CẢ NĂM - NĂM 2024 (VOCABULARY, ...
Nguyen Thanh Tu Collection
 
ARAL-Orientation_Morning-Session_Day-11.pdf
JoelVilloso1
 
1, 2, 3… E MAIS UM CICLO CHEGA AO FIM!.pdf
Colégio Santa Teresinha
 
Optimizing Cancer Screening With MCED Technologies: From Science to Practical...
i3 Health
 
Zoology (Animal Physiology) practical Manual
raviralanaresh2
 
2025 Winter SWAYAM NPTEL & A Student.pptx
Utsav Yagnik
 
How to Configure Prepayments in Odoo 18 Sales
Celine George
 
Health Planning in india - Unit 03 - CHN 2 - GNM 3RD YEAR.ppsx
Priyanshu Anand
 
How to Configure Lost Reasons in Odoo 18 CRM
Celine George
 
How to Configure Storno Accounting in Odoo 18 Accounting
Celine George
 
PPT on the Development of Education in the Victorian England
Beena E S
 
Growth and development and milestones, factors
BHUVANESHWARI BADIGER
 
ASRB NET 2023 PREVIOUS YEAR QUESTION PAPER GENETICS AND PLANT BREEDING BY SAT...
Krashi Coaching
 

Mule java part-1

  • 2. Java CustomComponent • Java components are used write our custom code and custom transformation. java transformers will be used when we cannot transform a message using available Mule transformers. In this example, following components are explained. • Java Component • Java component with singleton • Invoke Component • Java Transformer
  • 3. • Reflection Entry Point Resolver • Annotated Entry Point Resolver • Invoking a service using java component Below is the main flow which exposes a HTTP service and refers to multiple sub flows one after another to cover all above concepts.
  • 4. Java Component: Java component is used to refer a class which has complex code. Example: Below is sub flow named 'simple-java-component' which has Set Payload and java component. 'Set Payload' component sets payload as "Custom Payload".
  • 5. • Java component is reffered to custom made class (UsingCallable) which implements Callable interface. This class is used to print current payload, size of inbound properties and size of invocation properties.
  • 6. Above class implements Callable interface. it has onCall(MuleEventContext eventContext) overriden method. This method provides MuleEventContext . We can get all the data using MuleContext instace as shown in above code snippet.Data-Mapper.
  • 7. 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".
  • 8. Click on "..." button and select class "com.techm.javacustomcomponents.UsingSingletonObject"