<?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>Nils Preusker &#187; jBPM 4</title>
	<atom:link href="http://www.nilspreusker.de/category/jbpm-4/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.nilspreusker.de</link>
	<description>Pragmatic Technologist</description>
	<lastBuildDate>Tue, 23 Mar 2010 10:44:19 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>jBPM 4.3 and Spring</title>
		<link>http://www.nilspreusker.de/2010/01/06/jbpm-4-3-and-spring/</link>
		<comments>http://www.nilspreusker.de/2010/01/06/jbpm-4-3-and-spring/#comments</comments>
		<pubDate>Wed, 06 Jan 2010 19:24:25 +0000</pubDate>
		<dc:creator>nils</dc:creator>
				<category><![CDATA[jBPM 4]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[jBPM4]]></category>

		<guid isPermaLink="false">http://www.nilspreusker.de/?p=310</guid>
		<description><![CDATA[jBPM has just been released in version 4.3 and the spring integration has been changed. If you used to have an application that uses the spring integration of previous versions of jBPM, this might lead to exceptions like this:
org.springframework.beans.factory.BeanCurrentlyInCreationException:
Error creating bean with name 'repositoryService': Requested bean
is currently in creation: Is there an unresolvable circular
reference?
The problem [...]]]></description>
			<content:encoded><![CDATA[<p>jBPM has just been released in version 4.3 and the spring integration has been changed. If you used to have an application that uses the spring integration of previous versions of jBPM, this might lead to exceptions like this:</p>
<pre>org.springframework.beans.factory.BeanCurrentlyInCreationException:
Error creating bean with name 'repositoryService': Requested bean
is currently in creation: Is there an unresolvable circular
reference?</pre>
<p>The problem is that rather than having to declare all of jBPM&#8217;s services in your application context — like it used to be up to jBPM 4.2 —, the new spring integration provides access to them through the Process Engine. All you need in your application context is this:</p>
<pre>&lt;bean id="springHelper"&gt;
  &lt;property name="jbpmCfg" value="PATH TO YOUR jbpm.cfg.xml"&gt;
&lt;/property&gt;
&lt;/bean&gt;
&lt;bean id="processEngine" factory-bean="springHelper"
factory-method="createProcessEngine" /&gt;</pre>
<p>Now you can inject the processEngine into your classes and retrieve jBPM&#8217;s services like this:</p>
<pre>processEngine.getExecutionService() …
processEngine.getRepositoryService() …
…</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.nilspreusker.de/2010/01/06/jbpm-4-3-and-spring/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
