Created https://jira.springsource.org/browse/SPR-9852 to address this issue
Type: Posts; User: btiernay; Keyword(s):
Created https://jira.springsource.org/browse/SPR-9852 to address this issue
Note that if I change Collections.unmodifiableMap to Collections.synchronizedMap the problem seems to go away. This leads me to believe the decorating Spring proxy is not thread safe when used in...
Is the following test method thread-safe, assuming that this is being called from multiple threads? Sometimes the println statement displays "null"
import java.util.Collections;
import...
Moving the flag to the AppConf class doesn't seem to work for me. Do you mind posting your code?
Thanks
One thing you might want to try is the example at the following link:
...
I aggree. This would be a welcomed addition. Also, it would be nice if this could work with @Configurable.
Here is the log at TRACE level.
For example, the following works:
import javax.annotation.Resource;
import org.junit.Assert;
import org.junit.Test;
import org.junit.runner.RunWith;
import...
I'm currently trying to get an annotation based solution to lazy init a bean on first use. This is similar to the xml based version specified here...
In order to simplify main management, I have created https://jira.springsource.org/browse/SPR-9044. If you like the proposed approach, please vote for it.
In order to simplify main management, I have created https://jira.springsource.org/browse/SPR-9044. If you like the proposed approach, please vote for it.
In order to simplify main setup I have created https://jira.springsource.org/browse/SPR-9044. If you like the proposed approach, please vote for it.
In order to address this issue, I have created https://jira.springsource.org/browse/SPR-9044. If you like the proposed approach, please vote for it.
In order to address this issue, I have created https://jira.springsource.org/browse/SPR-9044. If you like the proposed approach, please vote for it.
I actually tried something very basic with just a jsp page and a form which throws an exception with the file size is too big and it behaves exactly the same way... the stack trace is delayed.
...
Did you ever figure out a solution for this? I added a request listener to demarcate the lifespan of the request and determined that it continues to upload after the request has exited Tomcat. I'm...
Did you ever figure out a solution for this? I added a request handler to demarcate the lifespan of the request and determined that it continues to upload after the request has exited Tomcat. I'm...
Sorry for confusing the situation :)
Could you not do something like:
4.1 Hibernate.initialize(a);
4.2 session.evict(a);
I suppose these are just some of the natural issues associated with...
A couple of points:
1. Transaction semantics should be applied at the service level, not at the the presentation or DAO levels
2. It sounds like you are running in autocommit mode. This is...
If you are relying on interfaces, then perhaps you need to make your entities implement read only interface contracts, and return these from your service. Otherwise you are forced to use DTOs.
...
One way you can enforce such an architectual constraint is through Aspectj's "declare error / warning" mechanism. At heart here is policy problem, and this will help to enforce that policy.
Anyone get a resolution on this? I've been having similiar issues with LTW and tomcat leading to OOM issues
Is there a more succinct way of specifying the following?
<bean id="defaultMemberImage" class="org.springframework.beans.factory.config.MethodInvokingFactoryBean">
<property...
Found out this was best done with caching.
Is it possible to get spring to instantiate JPA entities into prototype scope on application startup? The problem I am encountering is that currently I am using the OEMIV filter to establish an...