<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Spring on My Information Centre</title>
    <link>https://my.center-of.info/tags/spring/</link>
    <description>Recent content in Spring on My Information Centre</description>
    <generator>Hugo</generator>
    <language>en-us</language>
    <managingEditor>blog@haddouti.com (Hafid Haddouti)</managingEditor>
    <webMaster>blog@haddouti.com (Hafid Haddouti)</webMaster>
    <lastBuildDate>Sun, 13 May 2018 00:00:00 +0000</lastBuildDate>
    <atom:link href="https://my.center-of.info/tags/spring/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>OpenShift Einführung mit automatischen Deployments</title>
      <link>https://my.center-of.info/post/2018/2018-05-13-openshift-einfuehrung-und-automatische-deployments/</link>
      <pubDate>Sun, 13 May 2018 00:00:00 +0000</pubDate><author>blog@haddouti.com (Hafid Haddouti)</author>
      <guid>https://my.center-of.info/post/2018/2018-05-13-openshift-einfuehrung-und-automatische-deployments/</guid>
      <description>&lt;p&gt;Eine neue Applikation kann man doch gleich in der Cloud betreiben. Dabei sollte Automatisierung eine wichtige Rolle spielen und idealerweise bis zum Deployment angewendet werden; ganz im Sinne von CD. Im diesem Artikel wird beschrieben wie eine Spring Boot Application in eine OpenShift Instanz betrieben wird und dabei die Konfiguration so vorgenommen wird, dass jede Änderung des Source Codes automatisch zu einem neuen Build führt.&lt;/p&gt;</description>
    </item>
    <item>
      <title>JPA: Dynamic Datasource Routing</title>
      <link>https://my.center-of.info/post/2011/2011-03-04-jpa-dynamic-datasource-routing/</link>
      <pubDate>Fri, 04 Mar 2011 00:00:00 +0000</pubDate><author>blog@haddouti.com (Hafid Haddouti)</author>
      <guid>https://my.center-of.info/post/2011/2011-03-04-jpa-dynamic-datasource-routing/</guid>
      <description>&lt;p&gt;Man stelle sich vor, in einer (Web-)Anwendung müssen verschiedene Datasources verwendet werden. Ob bei den unterschiedlichen Datasourcen es sich immer um die andere/gleiche Datenbank handelt, sei mal dahingestellt. Die Datasourcen unterscheiden sich mind. in einer Eigenschaft, z.B. User.&lt;/p&gt;&#xA;&lt;p&gt;Im Spring-Kontext gilt folgendes: In JPA braucht man pro EntityManagerFactory eine Datasource. Der EMF ist einen TransactionManager zugeordnet.&lt;/p&gt;&#xA;&lt;p&gt;Man könnte alle Datasource, EMF, TX-Manager und PUs in Spring konfigurieren. Man hat jedoch ein Problem, wenn man n verschiedene Datasourcen hat, die zur Laufzeit ausgewählt werden müssen.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Spring AOP &amp; Ehcache</title>
      <link>https://my.center-of.info/post/2009/2009-09-25-spring-aop-ehcache/</link>
      <pubDate>Fri, 25 Sep 2009 00:00:00 +0000</pubDate><author>blog@haddouti.com (Hafid Haddouti)</author>
      <guid>https://my.center-of.info/post/2009/2009-09-25-spring-aop-ehcache/</guid>
      <description>&lt;p&gt;Caching ist ja bekanntlich eine Querschnitts-Anforderung (cross cutting concern), was man eigentlich nicht direkt in die Business-Logik integrieren möchte/sollte. Hier bietet es sich an, die Cache-Funktionalität mittels AOP (Aspektorientierte Programmierung) zu realisieren. Dieser Beitrag erklärt das exemplarisch realisieren der Cache-Funktionalität mittels &lt;a href=&#34;http://static.springsource.org/spring/docs/2.5.x/reference/aop-api.html&#34; title=&#34;Spring 2.5.x Reference Doc: Spring AOP&#34;&gt;Spring AOP&lt;/a&gt; und &lt;a href=&#34;http://ehcache.org/&#34; title=&#34;Ehcache&#34;&gt;Ehcache&lt;/a&gt;. &lt;strong&gt;Einführung&lt;/strong&gt; Vorweg. Es gibt natürlich bei den &lt;a href=&#34;https://springmodules.dev.java.net/&#34; title=&#34;Springmodules&#34;&gt;springmodules&lt;/a&gt; ein &lt;a href=&#34;https://springmodules.dev.java.net/docs/reference/0.9/html/cache.html&#34; title=&#34;Springmodules: Cache&#34;&gt;Cache-Modul&lt;/a&gt;. Dieses wird, wenn überhaupt, nur sehr langsam weiterentwickelt. Das neue &lt;a href=&#34;http://www.springsource.org/extensions&#34; title=&#34;Spring Source: Spring Extensions&#34;&gt;Spring Extensions Projekt&lt;/a&gt; beinhaltet leider kein Cache-Modul. Hinzu kommen noch fehlende Funktionalitäten wie z.B. das Löschen von nur einem Objekt aus dem Cache. Falls man jedoch doch Springmodules Cache nutzen will, kann man sich mein altes &lt;a href=&#34;http://my.center-of.info/2009/04/07/cache-method-results-with-ehcache-and-spring/&#34; title=&#34;Centre of information: Cache method results with Ehcache and Spring&#34;&gt;Beispiel&lt;/a&gt; anschauen.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Cache method results with Ehcache and Spring</title>
      <link>https://my.center-of.info/post/2009/2009-04-07-cache-method-results-with-ehcache-and-spring/</link>
      <pubDate>Tue, 07 Apr 2009 00:00:00 +0000</pubDate><author>blog@haddouti.com (Hafid Haddouti)</author>
      <guid>https://my.center-of.info/post/2009/2009-04-07-cache-method-results-with-ehcache-and-spring/</guid>
      <description>&lt;p&gt;Caching ist eins der Aspekte welches man nicht unbedingt direkt in der Businesslogik verankern möchte. Hierzu empfehlt es sich eine AOP-Lösung. Mit AOP kann die Funktionalität einer Cache-Realisierung genutzt werden. Eins der populärsten Cache-Provider ist &lt;a href=&#34;http://ehcache.sourceforge.net/&#34; title=&#34;Ehcache&#34;&gt;Ehcache&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;p&gt;In dem Umfeld von &lt;a href=&#34;http://www.springsource.org/&#34; title=&#34;SpringSource: Spring Framework&#34;&gt;Spring&lt;/a&gt; kann man Ehcache folgendermaßen integrieren:&lt;/p&gt;&#xA;&lt;p&gt;Man nutzt das aus dem nicht mehr gewarteten &lt;a href=&#34;https://springmodules.dev.java.net/&#34; title=&#34;Spring-Modules&#34;&gt;spring-modules&lt;/a&gt;-Projekt das &lt;a href=&#34;https://springmodules.dev.java.net/docs/reference/0.8/html/cache.html&#34; title=&#34;Spring-Modules: Cache&#34;&gt;cache&lt;/a&gt;-Modul. Ja, spring-modules wird durch Spring-Extensions abgelöst, jedoch werden nicht alle Projekte übernommen. D.h. manche Unterprojekte (wohl auch Cache) werden nicht nach &lt;a href=&#34;http://www.springsource.org/extensions&#34; title=&#34;Spring: Extensions&#34;&gt;Spring-Extensions&lt;/a&gt; übernommen. Wo da der Sinn liegt, ist wohl nur den Betreibern klar.&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
