VIP Kolkata Call Girl Salt Lake 👉 8250192130 Available With Room
Mule esb - How to make CRUD operations to a MySql Database in 5 minutes
1. Mule ESB
How to make CRUD operations to a MySql Database in 5 minutes
Gennaro Spagnoli - 2016
2. Gennaro Spagnoli - 2016
Let’s assume you have a fully configured MySql instance in local environment, and you can
access to phpmyadmin administration tool.
As a first step, we will be creating a flow with a configured database instance:
3. Gennaro Spagnoli - 2016
Now let’s making a select query on our db administration tool to check the data already
present on the db:
Having done this, we’re now ready to configure the mule component in order to write some
new data on the database:
4. Let’s start the server and point our browser to the configured url to trigger the flow,
The output on console should be something like this:
[[db_test].HTTP_Listener_Configuration.worker.0
1]
org.mule.api.processor.LoggerMessageProcessor:
1
The «1» in the payload is a boolean value saying that everything was ok!
So, we are ready to show the inserted record:
As you can see, we have now our record!
5. Our next goal is to delete our newly created record. To do it, configure the db component in
this way:
Let’s start the server and point our browser to the
configured url to trigger the flow,
The output on console should be something like this:
[[db_test].HTTP_Listener_Configuration.worker.0
1]
org.mule.api.processor.LoggerMessageProcessor:
1
The «1» in the payload, again, is a boolean value saying
that everything was ok!
So, we are ready to show the the user table: