11. Primjer – database polling
<int-jdbc:inbound-channel-adapter
query="select * from item where status=1"
channel="inDbChannel" data-source="pollingDataSource"
update="update item set status=10 where id in (:id)"
task-executor="pool" >
<int:poller fixed-rate="1000" >
<int:transactional/>
</int:poller>
</int-jdbc:inbound-channel-adapter>
14. Kontakt
• Samir Čauš
Software Developer
gsm +385 91 5720896
mail samir.caus@fiveminutes.eu
skype samircaus
twitter twitter.com/samircaus
http://www.fiveminutes.eu
Notas do Editor
Mnogo aplikacija, različite tehnologije, različiti protokoliApplication of technology defined as the integration of data and services between applications.Pattersinisuizumljeni, negoproizlazeizponavljanajakorištenja u praksiEAI, SOA, ESB, Messaging, Web service..
Spring Building Blocks (jdbc, jms transaction etc.) + EIP = more focused framework for application integrationLightweight – run from Junit test – within webapp, but can be deployed within esb or part of message brokerJednostavanzakorištenje korisnicima Spring (app context configuration)application context is the bus!Not an ESB, rather mediation and routing framework – “mediating” - allows two different systems with different messages and protocols to talk with each otherESB – većina drugih (osim Apache Camela)... Esb je aplikacija ne framework – (poseban server, startanje etc.).. Pogodno za kompleksno rutanje
Payload – any objectHeader –Id, expiration date, prority , return address …Channel – point to point / publish-subscribeMessaging – transport, asinkrono, translation, routing, loose coupled, performanse, sklalabilnost, fleksibilnost, robustnost ,filtering, interception …
Kada, Zašto i Što još nismo spomenuli...Kada – kada vec koristimo Spring, ne trebamo full ESB, a trebamo integraciju s nekim od FTP, file, jms...JMS/SOA/Rest – sto ako trebamo integraciju s file-ftp ili nesto slicno?Modularna aplikacija, rad s vanjskimŠto još – transakcije, security, logging, error handling...