Wednesday, October 29, 2014

Spring Integration in Action

Spring Integration in Action
Source code: www.manning.com/SpringIntegrationinAction
A message is passed through a channel from one endpoint to another endpoint.
A message consists of a single payload and zero or more headers.
The channel implementation manages the details of how and where a message is delivered but
shouldn’t need to interact with the payload of a message.
Two endpoints can exchange messages only if they’re connected through a channel.
Channels can be categorized based on two dimensions: type of handoff and type of
delivery. The handoff can be either synchronous or asynchronous, and the delivery
can be either point-to-point or publish-subscribe.
Connections to the application or the outside world are also endpoints, and these connections take
the form of channel adapters, messaging gateways, or service activators.
A Channel Adapter connects an application to the messaging system.
In Spring Integration, a Messaging Gateway iss a connection that’s specific to bidirectional messaging.
A Service Activator is a component that invokes a service based on an
incoming message and sends an outbound message based on the return value of this service invocation.

The main idea behind IoC and the Spring Framework itself is that code should be
as simple as possible while still supporting all of the complex requirements of enterprise
applications. To accomplish that goal, the responsibility of controlling those complexities should be
inverted from the application code to a framework.

Tuesday, October 7, 2014

有道口语大师

-It's time to get off work.
-OK, let me grab my coat.

-what did you have in mind?
-I need to sleep on it.   --考虑一晚上再给你答案

-I'd like to make a reservation, please. The name is Anthony Cooper.

-Does the price include the breakfast?
-Yes Sir, We provide complimentary breakfast everyday.

-What else does the price include?

-Excuse me, could you tell me where can I get to the washroom?
-Hello, I'm looking for the new bookstore. Could you tell me how to get there?

-Is it far? Should I take a bus?
-Is it far? Can I get there on foot?
-Is it far? Should I take the metro?
-How long will it take if I walk?

-I'd like to book a table.