concept endpoint in category mule

This is an excerpt from Manning's book Mule in Action, Second Edition.
Let’s take a step back and consider what you’ve done. Products will be posted to the HTTP endpoint as JSON. The byte-array-to-string transformer converts the raw bytes of the HTTP POST to a String. We’ll discuss transformers in depth in chapter 4. The JMS outbound endpoint then finally dispatches the String to the specified JMS queue. Endpoints are Mule’s mechanism for getting data into and out of flows. We’ll discuss both in detail in chapter 3.
When you have only one connector for a particular protocol, whether it’s a default connector automatically created by Mule or one that you have specifically configured, you don’t need to add a reference to the connector name in your endpoint for that transport. But as soon as you have more than one connector for a particular protocol, any endpoint that uses this protocol will prevent Mule from loading your configuration, and an exception containing the following message will be thrown: “There are at least two connectors matching protocol [xyz], so the connector to use must be specified on the endpoint using the connector property/attribute.” The message is self-explanatory and the remedy trivial: simply add a reference to the particular connector name on each endpoint that uses the concerned protocol. For example:
<vm:endpoint connector-ref="myVmConnector" name="LoanBrokerQuotes" path="loan.quotes"/>For transports, a connector provides the infrastructure to communicate to a particular protocol. An endpoint sends and receives messages on a specific channel using the infrastructure provided by the connector. A JMS connector, for example, is responsible for managing the connection to the JMS broker, handling the authentication and reconnecting in the event of a communication failure. A JMS endpoint, on the other hand, is responsible for sending and receiving messages on queues and topics. Endpoints are the cornerstone of IO with transports in Mule; they’re the tools you’ll use to get data into and out of your flows.
Endpoints come in two different flavors, inbound and outbound. Inbound endpoints are used as message sources; outbound endpoints are used to send data. An inbound endpoint can do things like receive JMS messages, read file streams, and pull down email messages from a mail server. An outbound endpoint can do things like dispatch JMS messages, insert rows into a database table, and send a file to an FTP server. You’ll use inbound and outbound endpoints to communicate between components and flows inside Mule as well as with the outside world.