SOA is about decoupling application that need to be integrated through the use of services. To achieve a good degree of decoupling two main ingredients are needed: a good middleware and a well written integration logic. This session will show examples and best practices on writing integration logic inside a JBI ESB. Some topics that the session will touch are: -- synchronous vs asynchronous integration -- stateless vs stateful integration For each pattern the session will show a way to implement it using a JBI ESB, discussing advantages and common pitfalls