<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Jens-Fabian Goetzmann &#187; Framework</title>
	<atom:link href="http://www.jefago.com/tag/framework/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.jefago.com</link>
	<description>Thoughts on (Web) Development, Software Architecture and Other Stuff</description>
	<lastBuildDate>Fri, 30 Jul 2010 21:00:35 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Auto-Starting EJBs</title>
		<link>http://www.jefago.com/2009/06/auto-starting-ejbs/</link>
		<comments>http://www.jefago.com/2009/06/auto-starting-ejbs/#comments</comments>
		<pubDate>Sat, 13 Jun 2009 11:30:41 +0000</pubDate>
		<dc:creator>Jens-Fabian Goetzmann</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[EJB]]></category>
		<category><![CDATA[Framework]]></category>
		<category><![CDATA[Java EE]]></category>

		<guid isPermaLink="false">http://www.jefago.com/?p=30</guid>
		<description><![CDATA[An issue that recently gave me something to gnaw on was that of auto-starting an EJB: I wanted to achieve the effect that an EJB within a Java enterprise application would become active (and in that special case, connect to another component on another machine) as soon as it was deployed (or the container was [...]]]></description>
			<content:encoded><![CDATA[<p>An issue that recently gave me something to gnaw on was that of auto-starting an EJB: I wanted to achieve the effect that an EJB within a Java enterprise application would become active (and in that special case, connect to another component on another machine) as soon as it was deployed (or the container was started). If possible, I wanted the solution to be container independent. After a lot of googling and trying, I found a solution that works, but it is probably one of the most awkward hacks to solve a problem that sounds as simple as this.</p>
<p><span id="more-30"></span>First and foremost: What I tried first was using the <a title="Reference documentation for @PostConstruct annotation" href="http://java.sun.com/javaee/5/docs/api/javax/annotation/PostConstruct.html" target="_blank"><code>@PostConstruct</code> annotation</a> on a method that should be called after deployment – but that doesn&#8217;t work, because the EJB is not guaranteed to be instantiated directly after deployment. As a matter of fact, at least the JBoss I was using lazily instantiates the EJB the moment it is first invoked.</p>
<p>After a while, I came across <a href="http://forums.sun.com/thread.jspa?threadID=5172902" target="_blank">this thread in Sun&#8217;s forum</a>, in which a Sun developer states that better support for this use case is planned for a future EJB version, and currently the only way to achieve the desired effect is to rely on a <a href="http://java.sun.com/javaee/5/docs/api/javax/servlet/ServletContextListener.html" target="_blank"><code>ServletContextListener</code></a>, which provides a <code>contextInitialized()</code> method that is called as soon as a servlet context is initialized. However, like the &#8220;servlet&#8221; implies, there needs to be a web application to use this listener – so I ended up adding a web application to my enterprise application with no content besides that context listener that would poke the EJB in order to get started. Now although this method is far from elegant, at least it works reliably and most possibly independent of the container used; at least I can verify its functionality on the JBoss 5 used in my test system.</p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save">Share/Save</a> </p>]]></content:encoded>
			<wfw:commentRss>http://www.jefago.com/2009/06/auto-starting-ejbs/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>FLOW3 Released as Alpha Version</title>
		<link>http://www.jefago.com/2009/06/flow3-released-as-alpha-version/</link>
		<comments>http://www.jefago.com/2009/06/flow3-released-as-alpha-version/#comments</comments>
		<pubDate>Wed, 03 Jun 2009 19:48:32 +0000</pubDate>
		<dc:creator>Jens-Fabian Goetzmann</dc:creator>
				<category><![CDATA[Web Development]]></category>
		<category><![CDATA[FLOW3]]></category>
		<category><![CDATA[Framework]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.jefago.com/?p=6</guid>
		<description><![CDATA[Today, the FLOW3 Core Team announced the release of the PHP development framework FLOW3 as an 1.0 alpha version. FLOW3 features many features unique to a PHP framework, such as: Aspect Oriented Programming (AOP) Object Manager featuring dependency injection MVC framework Persistence framework &#8230;and many more. The framework seems to be very interesting and sophisticated, [...]]]></description>
			<content:encoded><![CDATA[<p>Today, the FLOW3 Core Team announced the <a href="http://flow3.typo3.org/" target="_blank">release of the PHP development framework FLOW3</a> as an 1.0 alpha version. FLOW3 features many features unique to a PHP framework, such as:</p>
<ul>
<li>Aspect Oriented Programming (AOP)</li>
<li>Object Manager featuring dependency injection</li>
<li>MVC framework</li>
<li>Persistence framework</li>
</ul>
<p>&#8230;and many more.</p>
<p>The framework seems to be very interesting and sophisticated, and although I couldn&#8217;t yet find time to try it, I will definetly do so in the next time. The framework is developed in conncetion with the <a href="http://www.typo3.org" target="_blank">TYPO3</a> content management system and can thus be expected to be of high quality.</p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save">Share/Save</a> </p>]]></content:encoded>
			<wfw:commentRss>http://www.jefago.com/2009/06/flow3-released-as-alpha-version/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
