<?xml version="1.0" encoding="ISO-8859-1"?>

<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
	<channel>
		<title>Spring Community Forums</title>
		<link>http://forum.springsource.org/</link>
		<description>Spring Framework Support Forums</description>
		<language>en</language>
		<lastBuildDate>Tue, 09 Feb 2010 07:25:00 GMT</lastBuildDate>
		<generator>vBulletin</generator>
		<ttl>60</ttl>
		<image>
			<url>http://forum.springsource.org/images/misc/rss.jpg</url>
			<title>Spring Community Forums</title>
			<link>http://forum.springsource.org/</link>
		</image>
		<item>
			<title>Using Fast Connect Failover (FCF) functionality of Oracle10g in Spring</title>
			<link>http://forum.springsource.org/showthread.php?t=84426&amp;goto=newpost</link>
			<pubDate>Tue, 09 Feb 2010 06:50:24 GMT</pubDate>
			<description>Hello Experts,  
 
I want to use fastConnectionFailover functionality of Oracle10g in my project. The old configuration of project is using...</description>
			<content:encoded><![CDATA[<div>Hello Experts, <br />
<br />
I want to use fastConnectionFailover functionality of Oracle10g in my project. The old configuration of project is using BasicDataSource, but to use fastConnectionFailover functionaliy I have to use OracleDataSource. <br />
But if I use OracleDataSource, then some fields (e.g. MaxIdle, MAXWait ,maxActive, removeAbandoned, removeAbandonedTimeout, abandonedConnectionTimeout, defaultReadOnly) of BasicDataSource are not supported. <br />
<br />
So, How to implement &quot;Fast Connect Failover&quot; (FCF), using spring, in case BasicDataSource is used.</div>

]]></content:encoded>
			<category domain="http://forum.springsource.org/forumdisplay.php?f=27">Data Access</category>
			<dc:creator>ketakid21</dc:creator>
			<guid isPermaLink="true">http://forum.springsource.org/showthread.php?t=84426</guid>
		</item>
		<item>
			<title>Junit Testing problem with context configuration</title>
			<link>http://forum.springsource.org/showthread.php?t=84425&amp;goto=newpost</link>
			<pubDate>Tue, 09 Feb 2010 05:57:06 GMT</pubDate>
			<description>Helo 
 
 i am doing j2ee project using spring 3.0  and i want to test my DAO methods  
with Junit .i used @Contextconfiguration to load the xml files...</description>
			<content:encoded><![CDATA[<div>Helo<br />
<br />
 i am doing j2ee project using spring 3.0  and i want to test my DAO methods <br />
with Junit .i used @Contextconfiguration to load the xml files Ex: applicationContext.xml .while i am testing my DAO method in junit<br />
i am getting the NULLPointer Exception .<br />
<br />
My sample Code :<br />
<br />
@ContextConfiguration(locations = {&quot;classpath:c:/.../web-application-config.xml&quot; })<br />
public class AllTests {<br />
	<br />
	XXXDAO xxxDAO = new XXXDAOPGImpl();<br />
	public static junit.framework.Test suite() {<br />
	 return new JUnit4TestAdapter(AllTests.class);<br />
	 }<br />
    <br />
	 @Test<br />
	 public void method1(){<br />
	    // execute test logic...<br />
 	 xxxDAO.loadP();<br />
		<br />
	 }<br />
<br />
Can any one help me please</div>

]]></content:encoded>
			<category domain="http://forum.springsource.org/forumdisplay.php?f=27">Data Access</category>
			<dc:creator>Beulah Prasanthi</dc:creator>
			<guid isPermaLink="true">http://forum.springsource.org/showthread.php?t=84425</guid>
		</item>
		<item>
			<title>Uses Violation when Importing the same package (same version)</title>
			<link>http://forum.springsource.org/showthread.php?t=84424&amp;goto=newpost</link>
			<pubDate>Tue, 09 Feb 2010 05:41:20 GMT</pubDate>
			<description>Is the Resolver Report below indicating that two bundles which use/export the same package with the same version are in conflict with each other? 
 
...</description>
			<content:encoded><![CDATA[<div>Is the Resolver Report below indicating that two bundles which use/export the same package with the same version are in conflict with each other?<br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">&nbsp; &nbsp; Resolver report:<br />
&nbsp; &nbsp; &nbsp; &nbsp; Uses violation: &lt;Import-Package: org.springframework.transaction.aspectj; version=&quot;[3.0.0,3.1.0)&quot;&gt; in bundle &lt;vehicle-1-com.apress.prodmserver.vehicle.repository.jpa_1.0.0&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Found conflicts:<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; package&nbsp; &nbsp; &nbsp; &nbsp; 'org.aspectj.lang_1.6.6.RELEASE' in bundle 'com.springsource.region.user_0.0.0' used by 'org.springframework.transaction.aspectj_3.0.0.RELEASE' in bundle 'org.springframework.aspects_3.0.0.RELEASE'<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; conflicts with 'org.aspectj.lang_1.6.6.RELEASE' in bundle 'com.springsource.org.aspectj.weaver_1.6.6.RELEASE' used by 'org.aspectj.lang.reflect_1.6.6.RELEASE' in bundle 'com.springsource.org.aspectj.weaver_1.6.6.RELEASE'<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; package&nbsp; &nbsp; &nbsp; &nbsp; 'org.aspectj.lang_1.6.6.RELEASE' in bundle 'com.springsource.region.user_0.0.0' used by 'org.springframework.transaction.aspectj_3.0.0.RELEASE' in bundle 'org.springframework.aspects_3.0.0.RELEASE'<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; conflicts with 'org.aspectj.lang_1.6.6.RELEASE' in bundle 'com.springsource.org.aspectj.weaver_1.6.6.RELEASE' used by 'org.aspectj.runtime.internal_1.6.6.RELEASE' in bundle 'com.springsource.org.aspectj.weaver_1.6.6.RELEASE'<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; package&nbsp; &nbsp; &nbsp; &nbsp; 'org.aspectj.lang_1.6.6.RELEASE' in bundle 'com.springsource.region.user_0.0.0' used by 'org.springframework.transaction.aspectj_3.0.0.RELEASE' in bundle 'org.springframework.aspects_3.0.0.RELEASE'<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; conflicts with 'org.aspectj.lang_1.6.6.RELEASE' in bundle 'com.springsource.org.aspectj.weaver_1.6.6.RELEASE' used by 'org.aspectj.runtime.reflect_1.6.6.RELEASE' in bundle 'com.springsource.org.aspectj.weaver_1.6.6.RELEASE'<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; package&nbsp; &nbsp; &nbsp; &nbsp; 'org.aspectj.lang.annotation_1.6.6.RELEASE' in bundle 'com.springsource.region.user_0.0.0' used by 'org.springframework.transaction.aspectj_3.0.0.RELEASE' in bundle 'org.springframework.aspects_3.0.0.RELEASE'<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; conflicts with 'org.aspectj.lang.annotation_1.6.6.RELEASE' in bundle 'com.springsource.org.aspectj.weaver_1.6.6.RELEASE' imported by bundle 'vehicle-1-com.apress.prodmserver.vehicle.repository.jpa_1.0.0'<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; package&nbsp; &nbsp; &nbsp; &nbsp; 'org.aspectj.lang.reflect_1.6.6.RELEASE' in bundle 'com.springsource.region.user_0.0.0' used by 'org.springframework.transaction.aspectj_3.0.0.RELEASE' in bundle 'org.springframework.aspects_3.0.0.RELEASE'<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; conflicts with 'org.aspectj.lang.reflect_1.6.6.RELEASE' in bundle 'com.springsource.org.aspectj.weaver_1.6.6.RELEASE' used by 'org.aspectj.internal.lang.reflect_1.6.6.RELEASE' in bundle 'com.springsource.org.aspectj.weaver_1.6.6.RELEASE'<br />
...</code><hr />
</div></div>

]]></content:encoded>
			<category domain="http://forum.springsource.org/forumdisplay.php?f=54">dm Server Installation and Configuration</category>
			<dc:creator>candy.chiu.ad</dc:creator>
			<guid isPermaLink="true">http://forum.springsource.org/showthread.php?t=84424</guid>
		</item>
		<item>
			<title>Functionality disappeared without any error message</title>
			<link>http://forum.springsource.org/showthread.php?t=84423&amp;goto=newpost</link>
			<pubDate>Tue, 09 Feb 2010 05:17:45 GMT</pubDate>
			<description>I have encountered a problem where one of the functionalities of my application stopped working without generating any error messages.   
 
My...</description>
			<content:encoded><![CDATA[<div>I have encountered a problem where one of the functionalities of my application stopped working without generating any error messages.  <br />
<br />
My application has two basic features: list existing data of and add data to a table in the database via jpa/eclipselink.  I was able to deploy the application and the list function worked flawlessly.  The add function however didn't work.  It didn't generate any error messages neither (based on the dm server log).<br />
<br />
I experienced the same problem back in dm server version 1.0.  I solved it by adding two bundles to the Import-Bundle section of the MANIFEST file of the jpa project.  The reason why I was able to discovered the two missing bundles is because I had a working copy to compare against.  This 1.0 fix didn't work in version 2.0.  <br />
<br />
I have tried fixing my MANIFEST file by copying the content of the greenpages.jpa MANIFEST, generating MANIFEST with bundlor, and importing the entire springframework library.  None of them worked.<br />
<br />
My question is what's the recommended and reliable way for generating MANIFEST?  It is almost impossible to debug when there isn't even an error message.</div>

]]></content:encoded>
			<category domain="http://forum.springsource.org/forumdisplay.php?f=54">dm Server Installation and Configuration</category>
			<dc:creator>candy.chiu.ad</dc:creator>
			<guid isPermaLink="true">http://forum.springsource.org/showthread.php?t=84423</guid>
		</item>
		<item>
			<title>log4j issue with spring jms, weird output</title>
			<link>http://forum.springsource.org/showthread.php?t=84422&amp;goto=newpost</link>
			<pubDate>Tue, 09 Feb 2010 04:19:52 GMT</pubDate>
			<description>Hi guys: 
 
I use spring jms and log api is log4j.. However, I found it sometimes print out the different thread name from the same code place. 
 
it...</description>
			<content:encoded><![CDATA[<div>Hi guys:<br />
<br />
I use spring jms and log api is log4j.. However, I found it sometimes print out the different thread name from the same code place.<br />
<br />
it sometimes use CBBQ100000012Avalon , sometimes use db.dsch_pyrln2prepDistributor and sometimes use Dispatcher-Channel-1.<br />
Also, if it logged by thread db.dsch_pyrln2prepDistributor, the msg will get duplicated. this is really annoying.. I tried to have system.out.println() just below the logger.info, there is no duplicate for system.out.<br />
<br />
Really cannot explain :( <br />
<br />
<br />
<b> 09 Feb 2010 04:06:58 INFO  db.dsch_pyrln2prepDistributor onMessage BrokerMgrProxyListener Lock received Message: AssignLock System ID: DEFAULT for Application: EQ_PY<br />
R_LN DataServer: DSCH_PYRLN2 Priority: 9 constructed at: 2010/02/09 04:06:57 lockID: 9344103 <br />
 09 Feb 2010 04:06:58 INFO  db.dsch_pyrln2prepDistributor onMessage BrokerMgrProxyListener Lock received Message: AssignLock System ID: DEFAULT for Application: EQ_PY<br />
R_LN DataServer: DSCH_PYRLN2 Priority: 9 constructed at: 2010/02/09 04:06:57 lockID: 9344103</b> <br />
 09 Feb 2010 04:06:58 INFO  CBBQ100000012Avalon onMessage BrokerMgrProxyListener Lock received Message: AssignLock System ID: DEFAULT for Application: EQ_PYR_LN DataS<br />
erver: DSCH_PYRLN2 Priority: 9 constructed at: 2010/02/09 04:06:57 lockID: 9344104 <br />
 09 Feb 2010 04:06:58 INFO  CBBQ100000012Avalon onMessage BrokerMgrProxyListener Lock received Message: AssignLock System ID: DEFAULT for Application: EQ_PYR_LN DataS<br />
erver: DSCH_PYRLN2 Priority: 9 constructed at: 2010/02/09 04:06:57 lockID: 9344104 <br />
 09 Feb 2010 04:06:58 INFO  CBBQ100000038Avalon onMessage BrokerMgrProxyListener Lock received Message: AssignLock System ID: DEFAULT for Application: EQ_PYR_LN DataS<br />
erver: DSCH_PYRLN2 Priority: 9 constructed at: 2010/02/09 04:06:57 lockID: 9344105 <br />
 09 Feb 2010 04:06:58 INFO  CBBQ100000038Avalon onMessage BrokerMgrProxyListener Lock received Message: AssignLock System ID: DEFAULT for Application: EQ_PYR_LN DataS<br />
erver: DSCH_PYRLN2 Priority: 9 constructed at: 2010/02/09 04:06:57 lockID: 9344105 <br />
 09 Feb 2010 04:06:58 INFO  Dispatcher-Channel-1 onMessage BrokerMgrProxyListener Lock received Message: AssignLock System ID: DEFAULT for Application: EQ_PYR_LN Data<br />
Server: DSCH_PYRLN2 Priority: 9 constructed at: 2010/02/09 04:06:57 lockID: 9344106 <br />
 09 Feb 2010 04:06:58 INFO  Dispatcher-Channel-1 onMessage BrokerMgrProxyListener Lock received Message: AssignLock System ID: DEFAULT for Application: EQ_PYR_LN Data<br />
Server: DSCH_PYRLN2 Priority: 9 constructed at: 2010/02/09 04:06:57 lockID: 9344107 <br />
 09 Feb 2010 04:06:58 INFO  Dispatcher-Channel-1 onMessage BrokerMgrProxyListener Lock received Message: AssignLock System ID: DEFAULT for Application: EQ_PYR_LN Data<br />
Server: DSCH_PYRLN2 Priority: 9 constructed at: 2010/02/09 04:06:57 lockID: 9344108 <br />
 09 Feb 2010 04:06:58 INFO  Dispatcher-Channel-1 onMessage BrokerMgrProxyListener Lock received Message: AssignLock System ID: DEFAULT for Application: EQ_PYR_LN Data<br />
Server: DSCH_PYRLN2 Priority: 9 constructed at: 2010/02/09 04:06:57 lockID: 9344109</div>

]]></content:encoded>
			<category domain="http://forum.springsource.org/forumdisplay.php?f=30">Remoting and JMS</category>
			<dc:creator>brianfeng221</dc:creator>
			<guid isPermaLink="true">http://forum.springsource.org/showthread.php?t=84422</guid>
		</item>
		<item>
			<title>@ContextConfiguration does not take a @Configuration class</title>
			<link>http://forum.springsource.org/showthread.php?t=84421&amp;goto=newpost</link>
			<pubDate>Tue, 09 Feb 2010 04:19:10 GMT</pubDate>
			<description><![CDATA[I was hoping that I could pass in a class annotated with @Configuration  into @ContextConfiguration and extending Spring's TestNG integration class...]]></description>
			<content:encoded><![CDATA[<div>I was hoping that I could pass in a class annotated with @Configuration  into @ContextConfiguration and extending Spring's TestNG integration class which would be able to build the context from the beans defined (using @Bean) in the Configuration class.<br />
<br />
This would have given me the benefit of loading only the essential bean dependencies  that my test bean needed, injecting mocks for the ones that I cant create in a unit test and also not having to create an xml file for individual tests (I guess I would write a seperate @Configuration java file for each test, but I could use the inheritance to easily manage those).<br />
<br />
But the @ContextConfiguration provides options only for passing in xml(s) files only. Is there a different way to achieve what I want (I did look thru the API docs but could not find anything that seems to fit my purpose).<br />
<br />
thanks<br />
-Satish</div>

]]></content:encoded>
			<category domain="http://forum.springsource.org/forumdisplay.php?f=26">Core Container</category>
			<dc:creator>satishkt</dc:creator>
			<guid isPermaLink="true">http://forum.springsource.org/showthread.php?t=84421</guid>
		</item>
		<item>
			<title>private boolean value should false but always true!!</title>
			<link>http://forum.springsource.org/showthread.php?t=84420&amp;goto=newpost</link>
			<pubDate>Tue, 09 Feb 2010 03:31:09 GMT</pubDate>
			<description>Hi people, 
 
I have the following controller set up: 
 
Code: 
--------- 
@Controller...</description>
			<content:encoded><![CDATA[<div>Hi people,<br />
<br />
I have the following controller set up:<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">@Controller<br />
@RequestMapping(value={&quot;/person/*&quot;,&quot;/education/*&quot;,&quot;/business/*&quot;}, method=RequestMethod.GET)<br />
public class PersonController {<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; private static final Log log = LogFactory.getLog(PersonController.class);<br />
&nbsp; &nbsp; &nbsp; &nbsp; private boolean isEdit;</code><hr />
</div>Under this condition, isEdit is set to true:<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (user !=null &amp;&amp; user.getUserName().equalsIgnoreCase(person)) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; isEdit = true;</code><hr />
</div>Now, when isEdit is set to true the first time, on subsequent calls to PersonController, isEdit is always true!!!  But this is not a static variable at all.  IsEdit is a boolean and should always be set to false when this class is loaded.  It seems like the class is loaded only once?  Spring singleton or something.  Even if that were true, why is a private variable not set to its default value???(of false)<br />
<br />
Could it be just my debugger...its been acting strange ever since I started using Tuckey.  I was getting LazyLoadingExceptions someitmes while at other times I wasn't....<br />
<br />
Please advise.</div>

]]></content:encoded>
			<category domain="http://forum.springsource.org/forumdisplay.php?f=26">Core Container</category>
			<dc:creator>logixplayer</dc:creator>
			<guid isPermaLink="true">http://forum.springsource.org/showthread.php?t=84420</guid>
		</item>
		<item>
			<title>Spring Batch Admin displays incorrect Dates</title>
			<link>http://forum.springsource.org/showthread.php?t=84419&amp;goto=newpost</link>
			<pubDate>Tue, 09 Feb 2010 02:56:05 GMT</pubDate>
			<description>Spring batch admin is currently displaying all dates 10 hours earlier than they actuallly are.  My timezone is GMT +10 which would explain why this...</description>
			<content:encoded><![CDATA[<div>Spring batch admin is currently displaying all dates 10 hours earlier than they actuallly are.  My timezone is GMT +10 which would explain why this is happening; Spring Batch Admin is display the times in GMT.  How can I stop this from happening?  The times in the actual database are displaying correctly when selected.</div>

]]></content:encoded>
			<category domain="http://forum.springsource.org/forumdisplay.php?f=41">Spring Batch</category>
			<dc:creator>afryer</dc:creator>
			<guid isPermaLink="true">http://forum.springsource.org/showthread.php?t=84419</guid>
		</item>
		<item>
			<title>Which namespace is the http element in?</title>
			<link>http://forum.springsource.org/showthread.php?t=84418&amp;goto=newpost</link>
			<pubDate>Tue, 09 Feb 2010 02:44:17 GMT</pubDate>
			<description><![CDATA[Ok I'm new to security and trying to follow the tutorial I'm to add the following to the app-config but I don't know the shema to add. 
 
<http...]]></description>
			<content:encoded><![CDATA[<div>Ok I'm new to security and trying to follow the tutorial I'm to add the following to the app-config but I don't know the shema to add.<br />
<br />
&lt;http auto-config='true'&gt;<br />
&lt;intercept-url pattern=&quot;/**&quot; access=&quot;ROLE_USER&quot; /&gt;<br />
&lt;/http&gt;</div>

]]></content:encoded>
			<category domain="http://forum.springsource.org/forumdisplay.php?f=33">Spring Security</category>
			<dc:creator>jlopes</dc:creator>
			<guid isPermaLink="true">http://forum.springsource.org/showthread.php?t=84418</guid>
		</item>
		<item>
			<title>SimpleWebServiceOutboundGateway for non-spring based ws</title>
			<link>http://forum.springsource.org/showthread.php?t=84417&amp;goto=newpost</link>
			<pubDate>Tue, 09 Feb 2010 02:41:06 GMT</pubDate>
			<description><![CDATA[This question might be answered already but can I use  
 
Code: 
--------- 
<ws:outbound-gateway id="simpleGateway" 
                    ...]]></description>
			<content:encoded><![CDATA[<div>This question might be answered already but can I use <br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">&lt;ws:outbound-gateway id=&quot;simpleGateway&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  request-channel=&quot;inputChannel&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  uri=&quot;http://example.org/externalWS&quot;/&gt;</code><hr />
</div>to call out non-spring based WS (external WS)?<br />
<br />
The idea that the client is agnostic of available web services. I want to setup a gateway using Spring Integration to receive multiple types of SOAP messages from the client, execute some business logic and route them to the appropriate external WS using SimpleWebServiceOutboundGateway and return them back to the client.<br />
<br />
thanks</div>

]]></content:encoded>
			<category domain="http://forum.springsource.org/forumdisplay.php?f=42">Spring Integration</category>
			<dc:creator>jin1212</dc:creator>
			<guid isPermaLink="true">http://forum.springsource.org/showthread.php?t=84417</guid>
		</item>
		<item>
			<title>LazyInitializationException in JPA-based UserDetailsService</title>
			<link>http://forum.springsource.org/showthread.php?t=84416&amp;goto=newpost</link>
			<pubDate>Tue, 09 Feb 2010 01:16:03 GMT</pubDate>
			<description><![CDATA[I'm setting up a UserDetailsService that retrieves the user's details via JPA, as recommended by Ben...]]></description>
			<content:encoded><![CDATA[<div>I'm setting up a <font face="Courier New">UserDetailsService</font> that retrieves the user's details via JPA, as <a href="http://forum.springsource.org/showpost.php?p=282671&amp;postcount=13" target="_blank">recommended by Ben</a>. My service looks like this (where <font face="Courier New">Person</font> and <font face="Courier New">Skill</font> are my own Roo-managed entities):<br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">public class JpaUserDetailsService implements UserDetailsService {<br />
<br />
&nbsp; &nbsp; @Override<br />
&nbsp; &nbsp; public UserDetails loadUserByUsername(String username)<br />
&nbsp; &nbsp; &nbsp; &nbsp; throws UsernameNotFoundException<br />
&nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; Person person = Person.find...; // find the person with this username (via JPA)<br />
&nbsp; &nbsp; &nbsp; &nbsp; Iterator&lt;Skill&gt; skills = person.getSkills().iterator(); // !!!<br />
&nbsp; &nbsp; &nbsp; &nbsp; ...<br />
&nbsp; &nbsp; }<br />
}</code><hr />
</div>The line marked &quot;!!!&quot; throws this error:<br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">org.hibernate.LazyInitializationException: failed to lazily initialize a collection of role: lazy.Person.skills, no session or session was closed<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.hibernate.collection.AbstractPersistentCollection.throwLazyInitializationException(AbstractPersistentCollection.java:358)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.hibernate.collection.AbstractPersistentCollection.throwLazyInitializationExceptionIfNotConnected(AbstractPersistentCollection.java:350)<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.hibernate.collection.AbstractPersistentCollection.readSize(AbstractPersistentCollection.java:97)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.hibernate.collection.PersistentSet.size(PersistentSet.java:139)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at lazy.JpaUserDetailsService.loadUserByUsername(JpaUserDetailsService.java:22)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.security.authentication.dao.DaoAuthenticationProvider.retrieveUser(DaoAuthenticationProvider.java:83)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.security.authentication.dao.AbstractUserDetailsAuthenticationProvider.authenticate(AbstractUserDetailsAuthenticationPro<br />
vider.java:125)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.security.authentication.ProviderManager.doAuthentication(ProviderManager.java:121)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.security.authentication.AbstractAuthenticationManager.authenticate(AbstractAuthenticationManager.java:49)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.security.authentication.ProviderManager.doAuthentication(ProviderManager.java:139)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.security.authentication.AbstractAuthenticationManager.authenticate(AbstractAuthenticationManager.java:49)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.security.web.authentication.UsernamePasswordAuthenticationFilter.attemptAuthentication(UsernamePasswordAuthenticationFi<br />
lter.java:98)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java<br />
:200)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:356)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.security.web.authentication.logout.LogoutFilter.doFilter(LogoutFilter.java:106)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:356)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:80)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:356)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:150)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:237)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:167)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:360)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:726)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:206)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.mortbay.jetty.Server.handle(Server.java:324)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:505)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:843)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:648)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:395)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:488)</code><hr />
</div>This surprised me, because Roo by default adds the following filter to web.xml:<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">&lt;filter&gt;<br />
&nbsp; &nbsp; &lt;filter-name&gt;Spring OpenEntityManagerInViewFilter&lt;/filter-name&gt;<br />
&nbsp; &nbsp; &lt;filter-class&gt;org.springframework.orm.jpa.support.OpenEntityManagerInViewFilter&lt;/filter-class&gt;<br />
&lt;/filter&gt;<br />
<br />
&lt;filter-mapping&gt;<br />
&nbsp; &nbsp; &lt;filter-name&gt;Spring OpenEntityManagerInViewFilter&lt;/filter-name&gt;<br />
&nbsp; &nbsp; &lt;url-pattern&gt;/*&lt;/url-pattern&gt;<br />
&lt;/filter-mapping&gt;</code><hr />
</div>The LazyInitializationException is easily fixed by making my <font face="Courier New">JpaUserDetailsService</font> transactional (e.g. by adding the <font face="Courier New">@Transactional</font> annotation to it), but I'm unclear why that's necessary. Doesn't every thread already have an open Hibernate session (or EntityManager in JPA-speak) thanks to the OEMIV filter?</div>

]]></content:encoded>
			<category domain="http://forum.springsource.org/forumdisplay.php?f=67">Spring Roo</category>
			<dc:creator>andrews</dc:creator>
			<guid isPermaLink="true">http://forum.springsource.org/showthread.php?t=84416</guid>
		</item>
		<item>
			<title>Best way to reference/locate schemas behind firewall</title>
			<link>http://forum.springsource.org/showthread.php?t=84415&amp;goto=newpost</link>
			<pubDate>Tue, 09 Feb 2010 01:02:26 GMT</pubDate>
			<description>My web service will live inside a private network with no access to the Internet. What is the best approach in terms of URI schemes to use and...</description>
			<content:encoded><![CDATA[<div>My web service will live inside a private network with no access to the Internet. What is the best approach in terms of URI schemes to use and locations to put the schemas in order to ensure that neither the client nor server need to access the outside Internet when processing WSDL or request/response messages (preferably without disabling all validation)?<br />
<br />
My schema is a single document which only references the XMLSchema namespace, and the WSDL references only those two namespaces and <a href="http://schemas.xmlsoap.org/wsdl/" target="_blank">http://schemas.xmlsoap.org/wsdl/</a>.<br />
<br />
I'm currently using DefaultWsdl11Definition to generate the WSDL so an approach compatible with that would be preferred but not essential.<br />
<br />
The system will have multiple servers, so an http reference to a location on the server won't work.<br />
<br />
Does inlining the schema in the WSDL document ensure that parsers will not attempt to locate it using its URI? Can the WSDL schema (and XMLSchema) be inlined similarly within the wsdl:types element? If so, is there any way to get DefaultWsdl11Definition to do so automatically?<br />
<br />
Thanks,<br />
<br />
Marc</div>

]]></content:encoded>
			<category domain="http://forum.springsource.org/forumdisplay.php?f=39">Spring Web Services</category>
			<dc:creator>dc_maf</dc:creator>
			<guid isPermaLink="true">http://forum.springsource.org/showthread.php?t=84415</guid>
		</item>
		<item>
			<title>Load properties from DB</title>
			<link>http://forum.springsource.org/showthread.php?t=84414&amp;goto=newpost</link>
			<pubDate>Tue, 09 Feb 2010 01:02:23 GMT</pubDate>
			<description>Is there support to load properties Resource from the database using PropertyPlaceholderConfigurer? 
Or what is the extension point if I need to...</description>
			<content:encoded><![CDATA[<div>Is there support to load properties Resource from the database using PropertyPlaceholderConfigurer?<br />
Or what is the extension point if I need to write my own DatabaseResource and support like <br />
 &lt;bean class=&quot;org.springframework.beans.factory.config.Pr  opertyPlaceholderConfigurer&quot; lazy-init=&quot;false&quot;&gt;<br />
        &lt;property name=&quot;locations&quot;&gt;<br />
        &lt;value&gt;ibatis:my.properties&lt;/value&gt;<br />
        &lt;/property&gt;<br />
  &lt;/bean&gt;<br />
Thanks,</div>

]]></content:encoded>
			<category domain="http://forum.springsource.org/forumdisplay.php?f=26">Core Container</category>
			<dc:creator>tony1234</dc:creator>
			<guid isPermaLink="true">http://forum.springsource.org/showthread.php?t=84414</guid>
		</item>
		<item>
			<title>Generic and Dynamic Classes</title>
			<link>http://forum.springsource.org/showthread.php?t=84413&amp;goto=newpost</link>
			<pubDate>Mon, 08 Feb 2010 23:31:20 GMT</pubDate>
			<description><![CDATA[Hi,  
 
I'm not sure how best to configure my beans to allow me to dynamically create and manage objects. 
 
The servlet has no idea what class it'll...]]></description>
			<content:encoded><![CDATA[<div>Hi, <br />
<br />
I'm not sure how best to configure my beans to allow me to dynamically create and manage objects.<br />
<br />
The servlet has no idea what class it'll need to create, but once it gets the information (in the form of an xml class) it needs to go about manufacturing the relevant classes.<br />
<br />
so imagine i get an xml tag like:<br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">PHP Code:</div>
	<div class="alt2">
		<hr />
		<code style="white-space:nowrap">
		<div dir="ltr" style="text-align:left;">
			<!-- php buffer start --><code><font color="#000000">
<font color="#0000BB"></font><font color="#007700">&lt;</font><font color="#0000BB">properties</font><font color="#007700">&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&lt;</font><font color="#0000BB">type</font><font color="#007700">&gt; </font><font color="#0000BB">Source </font><font color="#007700">&lt;/</font><font color="#0000BB">type</font><font color="#007700">&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&lt;</font><font color="#0000BB">name</font><font color="#007700">&gt; </font><font color="#0000BB">Blooper </font><font color="#007700">&lt;/</font><font color="#0000BB">name</font><font color="#007700">&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&lt;</font><font color="#0000BB">delay</font><font color="#007700">&gt; <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;</font><font color="#0000BB">type</font><font color="#007700">&gt; </font><font color="#0000BB">Deterministic </font><font color="#007700">&lt;/</font><font color="#0000BB">type</font><font color="#007700">&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;</font><font color="#0000BB">parameters</font><font color="#007700">&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;</font><font color="#0000BB">param</font><font color="#007700">&gt;&nbsp;&nbsp;</font><font color="#0000BB">4 </font><font color="#007700">&lt;/</font><font color="#0000BB">param</font><font color="#007700">&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/</font><font color="#0000BB">parameters</font><font color="#007700">&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&lt;</font><font color="#0000BB">delay</font><font color="#007700">&gt;<br />&lt;/</font><font color="#0000BB">properties</font><font color="#007700">&gt; <br /></font><font color="#0000BB"></font>
</font>
</code><!-- php buffer end -->
		</div>
		</code>
		<hr />
	</div>
</div>This would be in the information necessary to instantiate a class:<br />
<br />
Source(String name, DistrbutionSample delay)<br />
<br />
Where Deterministic is a class that extends distributions sample and param is a value needed to contruct a deterministic class.<br />
<br />
<br />
<br />
I cant hard code the values like:<br />
ApplicationContext context = WebApplicationContextUtils.getWebApplicationContex  t(getServletContext());<br />
Source src = (Source) context.getBean(&quot;source&quot;);<br />
<br />
because the servlet doesnt know if it needs to create instance of type SOURCE. There are numerous other classes it may need to instantiate, and the information is being set by the flex layer usnig xml strings.<br />
<br />
<br />
Any help with this would be much appreciated. Thanks.</div>

]]></content:encoded>
			<category domain="http://forum.springsource.org/forumdisplay.php?f=26">Core Container</category>
			<dc:creator>Babyangel</dc:creator>
			<guid isPermaLink="true">http://forum.springsource.org/showthread.php?t=84413</guid>
		</item>
		<item>
			<title>detaching object in Hibernate</title>
			<link>http://forum.springsource.org/showthread.php?t=84412&amp;goto=newpost</link>
			<pubDate>Mon, 08 Feb 2010 23:25:34 GMT</pubDate>
			<description><![CDATA[Hi 
 
I have an POJO I retrieved from the database with Hibernate. I would like to "detach" this object. By this I mean, I do not want any changes...]]></description>
			<content:encoded><![CDATA[<div>Hi<br />
<br />
I have an POJO I retrieved from the database with Hibernate. I would like to &quot;detach&quot; this object. By this I mean, I do not want any changes made to the object to be reflected in the database until getHibernateTemplate().saveOrUpdate() has been called on it.<br />
<br />
Is there a way to do this? I looked in the HibernateTemplate javadoc and didnt see anything<br />
<br />
Thank you!</div>

]]></content:encoded>
			<category domain="http://forum.springsource.org/forumdisplay.php?f=27">Data Access</category>
			<dc:creator>benhsu_bfly</dc:creator>
			<guid isPermaLink="true">http://forum.springsource.org/showthread.php?t=84412</guid>
		</item>
	</channel>
</rss>
