SlideShare a Scribd company logo
INPUT AND OUTPUT
FLOW: USING HTTP AND
JAVA COMPONENT
OPEN ANYPOINT STUDIO
CREATE A FILE  NEW  MULE PROJECT
CLICK «FINISH»
EXPAND THE «MYFIRSTPROJECT» ON PACKAGE EXPLORER
DOUBLE CLICK ON MYFIRSTPROJECT.XML
ONCE FILE IS OPEN, SHOW MESSAGE FLOW
FROM MULE PALETTE VIEW, SEARCH FOR ‘HTTP’ AND ‘JAVA’ AND SELECT THE FIRST ONE.
DRAG AND DROP HTTP THEN JAVA COMPONENT INTO MESSAGE FLOW VIEW.
NOW WE HAVE TO CONFIGURE LISTENER FOR OUR HTTP FLOW.
DOUBLE CLICK ON HTTP BLUE ELEMENT.
BELOW IT WILL APPEAR HTTP VIEW.
ON THE GENERAL SETTING LET’S CREATE AND CHOOSE AN HTTP LISTENER.
CLICK ON ADD(+) AND CONFIGURE:
HOST: DEFAULT (LOCALHOST)
PORT: 8081
ON BASIC SETTINGS DEFINE WEB SERVICE:
PATH: /FILETRANSFER
ALLOW.METHODS: GET
CLICK OK AND SAVE
NOW WE HAVE TO CONFIGURE THE JAVA LOGIC COMPONENT.
CREATE A PACKAGE AND A JAVA CLASS UNDER SRC/MAIN/JAVA FOLDER.
CREATE A LOCAL FOLDER TO SAVE THE FILE.
THE CLASS WILL CREATE A SIMPLE TEXT FILE AND WRITE TWO LINES.
LIBRARIES I USED:
JAVA.IO.FILE;
JAVA.IO.FILEWRITER;
CLICK ON SAVE AT TOP-LEFT OF SCREEN
CONFIGURE JAVA
COMPONENT.
TRANSFORMER CLASS: THE
CLASS THAT WILL DO THE
LOGIC TO CREATE A FILE IN A
LOCAL FOLDER.
CLICK ON SAVE.
NOW WE CAN START OUR MULE
SERVER
RIGHT CLICK ON PROJECT
RUN AS  MULE APPLICATION
ON THE CONSOLE VIEW BELOW
SERVER IS GOING TO START.
AT THE END YOU WILL SEE THE
STATUS DEPLOYED.
THIS MEANS THAT SERVER IS UP
AND RUNNING
OPEN YOUR BROWSER AND JOIN
THE HTTP PATH:
HTTP://LOCALHOST:8081/FILETRA
NSFER
NOW WE CAN SEE THE RESULT:
OPEN THE FOLDER WE CREATED
AND LOOK AT THE TXT FILE
GENERATED.
ENJOY
WITH

More Related Content

What's hot (15)

PPTX
Mule esb db_1
Davide Rapacciuolo
 
PDF
MuleSoft ESB Message Enricher
akashdprajapati
 
PPTX
Mule Esb Data Weave
Mohammed246
 
PPTX
Compressing & decompressing in mule
Anirban Sen Chowdhary
 
PPTX
Mule message enricher
Anirban Sen Chowdhary
 
PPTX
Using message enricher
Son Nguyen
 
PPTX
Groovy example in mule
Mohammed246
 
PPTX
Initialize database in Mule part2
Anirban Sen Chowdhary
 
PPT
Simple Java component in Mule
Christian Hipolito
 
PPTX
Configurare https mule
Antonio Pellegrino
 
PPTX
Caching and invalidating with managed store
irfan1008
 
PPTX
Junit in mule demo
javeed_mhd
 
PPTX
Mule esb - How to use Idempotent Filters in 5 minutes
Gennaro Spagnoli
 
PPTX
Mule esb :Data Weave
AnilKumar Etagowni
 
PPTX
Splitting with mule part2
Anirban Sen Chowdhary
 
Mule esb db_1
Davide Rapacciuolo
 
MuleSoft ESB Message Enricher
akashdprajapati
 
Mule Esb Data Weave
Mohammed246
 
Compressing & decompressing in mule
Anirban Sen Chowdhary
 
Mule message enricher
Anirban Sen Chowdhary
 
Using message enricher
Son Nguyen
 
Groovy example in mule
Mohammed246
 
Initialize database in Mule part2
Anirban Sen Chowdhary
 
Simple Java component in Mule
Christian Hipolito
 
Configurare https mule
Antonio Pellegrino
 
Caching and invalidating with managed store
irfan1008
 
Junit in mule demo
javeed_mhd
 
Mule esb - How to use Idempotent Filters in 5 minutes
Gennaro Spagnoli
 
Mule esb :Data Weave
AnilKumar Etagowni
 
Splitting with mule part2
Anirban Sen Chowdhary
 

Viewers also liked (16)

PPTX
Database integrate with mule
Son Nguyen
 
PPTX
Sending mail in mule
Son Nguyen
 
PPTX
Input and output flow with logger component
Son Nguyen
 
PPTX
Stored procedure in mule
Son Nguyen
 
PPTX
Integrate to retrieve data microsoft azure
Son Nguyen
 
PDF
Java Week6(B) Notepad
Chaitanya Rajkumar Limmala
 
PPTX
Java Components and their applicability in Mule Anypoint Studio
VenkataNaveen Kumar
 
PPTX
Mule: Java Component
Sulthony Hartanto
 
PPTX
Basic example using file connector in anypoint studio
prudhvivreddy
 
PDF
Java Swing Custom GUI MVC Component Tutorial
Sagun Dhakhwa
 
PPTX
Chapter 1 swings
Jafar Nesargi
 
PPT
java swing programming
Ankit Desai
 
PPT
Swing and AWT in java
Adil Mehmoood
 
PPT
java swing
vannarith
 
PPTX
JAVA AWT
shanmuga rajan
 
PDF
H2O - the optimized HTTP server
Kazuho Oku
 
Database integrate with mule
Son Nguyen
 
Sending mail in mule
Son Nguyen
 
Input and output flow with logger component
Son Nguyen
 
Stored procedure in mule
Son Nguyen
 
Integrate to retrieve data microsoft azure
Son Nguyen
 
Java Week6(B) Notepad
Chaitanya Rajkumar Limmala
 
Java Components and their applicability in Mule Anypoint Studio
VenkataNaveen Kumar
 
Mule: Java Component
Sulthony Hartanto
 
Basic example using file connector in anypoint studio
prudhvivreddy
 
Java Swing Custom GUI MVC Component Tutorial
Sagun Dhakhwa
 
Chapter 1 swings
Jafar Nesargi
 
java swing programming
Ankit Desai
 
Swing and AWT in java
Adil Mehmoood
 
java swing
vannarith
 
JAVA AWT
shanmuga rajan
 
H2O - the optimized HTTP server
Kazuho Oku
 
Ad

Similar to Input and output flow using http and java component (20)

PPTX
Mule hppt java
Germano Barba
 
PPTX
Esb first http flow
Antonio Pellegrino
 
PPTX
My mule esb first http flow
Davide Rapacciuolo
 
PPTX
Simple interact between http and java components
Domenico Schiavone
 
PPTX
Mule esb httpflow
Domenico Schiavone
 
PPTX
Mule esb lesson 1
Germano Barba
 
PPTX
Symple io flow
Domenico Schiavone
 
PPTX
First lesson
Vinicius de Melo
 
PPTX
Mule connectors-session1
Vishnukanth Rachineni
 
PPTX
Mule esb first http connector
Germano Barba
 
PPTX
Mule esb first http connector
Germano Barba
 
PPTX
Mule connectors-part 1
VirtusaPolaris
 
PPTX
Mule esb
Son Nguyen
 
PDF
Mule esb and_relevant_components
Paaras Baru
 
PDF
Mule ESB Interview or Certification questions
TechieVarsity
 
PPTX
Mule ESB Components
pat_91
 
PDF
Top 50 MuleSoft interview questions
techievarsity
 
PPTX
Muleesbcomponents1 160625154208
ppts123456
 
PPTX
Create web services jax - ws2
Antonio Pellegrino
 
PPTX
Introduce anypoint studio
Son Nguyen
 
Mule hppt java
Germano Barba
 
Esb first http flow
Antonio Pellegrino
 
My mule esb first http flow
Davide Rapacciuolo
 
Simple interact between http and java components
Domenico Schiavone
 
Mule esb httpflow
Domenico Schiavone
 
Mule esb lesson 1
Germano Barba
 
Symple io flow
Domenico Schiavone
 
First lesson
Vinicius de Melo
 
Mule connectors-session1
Vishnukanth Rachineni
 
Mule esb first http connector
Germano Barba
 
Mule esb first http connector
Germano Barba
 
Mule connectors-part 1
VirtusaPolaris
 
Mule esb
Son Nguyen
 
Mule esb and_relevant_components
Paaras Baru
 
Mule ESB Interview or Certification questions
TechieVarsity
 
Mule ESB Components
pat_91
 
Top 50 MuleSoft interview questions
techievarsity
 
Muleesbcomponents1 160625154208
ppts123456
 
Create web services jax - ws2
Antonio Pellegrino
 
Introduce anypoint studio
Son Nguyen
 
Ad

More from Son Nguyen (20)

PPTX
Wsdl connector introduction
Son Nguyen
 
PPTX
Android intergrate with mule
Son Nguyen
 
PPTX
Mule flow overview
Son Nguyen
 
PPTX
Mule flow and filter
Son Nguyen
 
PPTX
Handle exceptions in mule
Son Nguyen
 
PPT
Spring security integrate with mule
Son Nguyen
 
PPTX
Message processor in mule
Son Nguyen
 
PPTX
Expression language in mule
Son Nguyen
 
PPTX
Mule with data weave
Son Nguyen
 
PPTX
Using spring scheduler mule
Son Nguyen
 
PPTX
Composite source in bound and out-bound
Son Nguyen
 
PPT
Batch job processing
Son Nguyen
 
PPT
Finance connectors with mule
Son Nguyen
 
PPT
Google drive connection
Son Nguyen
 
PPTX
Using properties in mule
Son Nguyen
 
PPT
Mule integrate with microsoft
Son Nguyen
 
PPTX
Jms queue
Son Nguyen
 
PPT
Anypoint connectors
Son Nguyen
 
PPTX
Mule esb basic introduction
Son Nguyen
 
PPTX
Runing batch job in mule
Son Nguyen
 
Wsdl connector introduction
Son Nguyen
 
Android intergrate with mule
Son Nguyen
 
Mule flow overview
Son Nguyen
 
Mule flow and filter
Son Nguyen
 
Handle exceptions in mule
Son Nguyen
 
Spring security integrate with mule
Son Nguyen
 
Message processor in mule
Son Nguyen
 
Expression language in mule
Son Nguyen
 
Mule with data weave
Son Nguyen
 
Using spring scheduler mule
Son Nguyen
 
Composite source in bound and out-bound
Son Nguyen
 
Batch job processing
Son Nguyen
 
Finance connectors with mule
Son Nguyen
 
Google drive connection
Son Nguyen
 
Using properties in mule
Son Nguyen
 
Mule integrate with microsoft
Son Nguyen
 
Jms queue
Son Nguyen
 
Anypoint connectors
Son Nguyen
 
Mule esb basic introduction
Son Nguyen
 
Runing batch job in mule
Son Nguyen
 

Recently uploaded (20)

PDF
DoS Attack vs DDoS Attack_ The Silent Wars of the Internet.pdf
CyberPro Magazine
 
PPTX
Mastering Authorization: Integrating Authentication and Authorization Data in...
Hitachi, Ltd. OSS Solution Center.
 
PDF
Understanding AI Optimization AIO, LLMO, and GEO
CoDigital
 
PDF
Simplify Your FME Flow Setup: Fault-Tolerant Deployment Made Easy with Packer...
Safe Software
 
PPTX
Smart Factory Monitoring IIoT in Machine and Production Operations.pptx
Rejig Digital
 
PDF
Hyderabad MuleSoft In-Person Meetup (June 21, 2025) Slides
Ravi Tamada
 
PDF
Pipeline Industry IoT - Real Time Data Monitoring
Safe Software
 
PDF
Dev Dives: Accelerating agentic automation with Autopilot for Everyone
UiPathCommunity
 
PPTX
01_Approach Cyber- DORA Incident Management.pptx
FinTech Belgium
 
PDF
Optimizing the trajectory of a wheel loader working in short loading cycles
Reno Filla
 
PDF
“Scaling i.MX Applications Processors’ Native Edge AI with Discrete AI Accele...
Edge AI and Vision Alliance
 
PDF
Redefining Work in the Age of AI - What to expect? How to prepare? Why it mat...
Malinda Kapuruge
 
PPTX
Paycifi - Programmable Trust_Breakfast_PPTXT
FinTech Belgium
 
PPTX
New ThousandEyes Product Innovations: Cisco Live June 2025
ThousandEyes
 
PDF
Hello I'm "AI" Your New _________________
Dr. Tathagat Varma
 
PDF
Unlocking FME Flow’s Potential: Architecture Design for Modern Enterprises
Safe Software
 
PDF
Next level data operations using Power Automate magic
Andries den Haan
 
DOCX
Daily Lesson Log MATATAG ICT TEchnology 8
LOIDAALMAZAN3
 
PDF
Quantum AI Discoveries: Fractal Patterns Consciousness and Cyclical Universes
Saikat Basu
 
PDF
5 Things to Consider When Deploying AI in Your Enterprise
Safe Software
 
DoS Attack vs DDoS Attack_ The Silent Wars of the Internet.pdf
CyberPro Magazine
 
Mastering Authorization: Integrating Authentication and Authorization Data in...
Hitachi, Ltd. OSS Solution Center.
 
Understanding AI Optimization AIO, LLMO, and GEO
CoDigital
 
Simplify Your FME Flow Setup: Fault-Tolerant Deployment Made Easy with Packer...
Safe Software
 
Smart Factory Monitoring IIoT in Machine and Production Operations.pptx
Rejig Digital
 
Hyderabad MuleSoft In-Person Meetup (June 21, 2025) Slides
Ravi Tamada
 
Pipeline Industry IoT - Real Time Data Monitoring
Safe Software
 
Dev Dives: Accelerating agentic automation with Autopilot for Everyone
UiPathCommunity
 
01_Approach Cyber- DORA Incident Management.pptx
FinTech Belgium
 
Optimizing the trajectory of a wheel loader working in short loading cycles
Reno Filla
 
“Scaling i.MX Applications Processors’ Native Edge AI with Discrete AI Accele...
Edge AI and Vision Alliance
 
Redefining Work in the Age of AI - What to expect? How to prepare? Why it mat...
Malinda Kapuruge
 
Paycifi - Programmable Trust_Breakfast_PPTXT
FinTech Belgium
 
New ThousandEyes Product Innovations: Cisco Live June 2025
ThousandEyes
 
Hello I'm "AI" Your New _________________
Dr. Tathagat Varma
 
Unlocking FME Flow’s Potential: Architecture Design for Modern Enterprises
Safe Software
 
Next level data operations using Power Automate magic
Andries den Haan
 
Daily Lesson Log MATATAG ICT TEchnology 8
LOIDAALMAZAN3
 
Quantum AI Discoveries: Fractal Patterns Consciousness and Cyclical Universes
Saikat Basu
 
5 Things to Consider When Deploying AI in Your Enterprise
Safe Software
 

Input and output flow using http and java component

  • 1. INPUT AND OUTPUT FLOW: USING HTTP AND JAVA COMPONENT
  • 2. OPEN ANYPOINT STUDIO CREATE A FILE  NEW  MULE PROJECT CLICK «FINISH»
  • 3. EXPAND THE «MYFIRSTPROJECT» ON PACKAGE EXPLORER DOUBLE CLICK ON MYFIRSTPROJECT.XML ONCE FILE IS OPEN, SHOW MESSAGE FLOW FROM MULE PALETTE VIEW, SEARCH FOR ‘HTTP’ AND ‘JAVA’ AND SELECT THE FIRST ONE. DRAG AND DROP HTTP THEN JAVA COMPONENT INTO MESSAGE FLOW VIEW.
  • 4. NOW WE HAVE TO CONFIGURE LISTENER FOR OUR HTTP FLOW. DOUBLE CLICK ON HTTP BLUE ELEMENT. BELOW IT WILL APPEAR HTTP VIEW. ON THE GENERAL SETTING LET’S CREATE AND CHOOSE AN HTTP LISTENER. CLICK ON ADD(+) AND CONFIGURE: HOST: DEFAULT (LOCALHOST) PORT: 8081 ON BASIC SETTINGS DEFINE WEB SERVICE: PATH: /FILETRANSFER ALLOW.METHODS: GET CLICK OK AND SAVE
  • 5. NOW WE HAVE TO CONFIGURE THE JAVA LOGIC COMPONENT. CREATE A PACKAGE AND A JAVA CLASS UNDER SRC/MAIN/JAVA FOLDER. CREATE A LOCAL FOLDER TO SAVE THE FILE. THE CLASS WILL CREATE A SIMPLE TEXT FILE AND WRITE TWO LINES. LIBRARIES I USED: JAVA.IO.FILE; JAVA.IO.FILEWRITER; CLICK ON SAVE AT TOP-LEFT OF SCREEN
  • 6. CONFIGURE JAVA COMPONENT. TRANSFORMER CLASS: THE CLASS THAT WILL DO THE LOGIC TO CREATE A FILE IN A LOCAL FOLDER. CLICK ON SAVE.
  • 7. NOW WE CAN START OUR MULE SERVER RIGHT CLICK ON PROJECT RUN AS  MULE APPLICATION ON THE CONSOLE VIEW BELOW SERVER IS GOING TO START. AT THE END YOU WILL SEE THE STATUS DEPLOYED. THIS MEANS THAT SERVER IS UP AND RUNNING OPEN YOUR BROWSER AND JOIN THE HTTP PATH: HTTP://LOCALHOST:8081/FILETRA NSFER NOW WE CAN SEE THE RESULT: OPEN THE FOLDER WE CREATED AND LOOK AT THE TXT FILE GENERATED. ENJOY WITH