My guess is there is a setter method or a protected field in the test class. The test class is an AbstractDependencyInjectionSpringContextTests or a AbstractTransactionDataSourceSpringContextTests....
Type: Posts; User: Alef Arendsen; Keyword(s):
My guess is there is a setter method or a protected field in the test class. The test class is an AbstractDependencyInjectionSpringContextTests or a AbstractTransactionDataSourceSpringContextTests....
If you think this is a bug, please create an issue in our JIRA issue tracker, located at jira.springframework.org. This will be highly appreciated by our development team.
If you want to solve...
If you think this is a bug, or if there's room for improvement, please file a JIRA issue at jira.springframework.org. I'm pretty sure Juergen (et. al.) have their reasons for doing things the way...
Could you elaborate. If this is true, it means autowiring byType will never work, since everything extends from java.lang.Object.
You're trying to inject a UserDao into a setter method I presume....
You can get this from the SpringSource Tool Suite, not from a plain Eclipse instance. Please refer to http://www.springsource.com/products/suite/sts for more information.
Typically you shouldn't add model object directly to the request. This defeats the purpose of the separation between the model map and the HttpServletRequest. It does works though.
The...
I'm not sure why you have code like that in your application. The DispatcherServlet takes care of all the looking up of handlers and executing of requests for you. There is not need to write the code...
Hi guys,
I posted this as a comment to Solomon's blog post as well:
Hi Solomon,
I'm using @Service in combination with @Transactional all the time, but not on Tomcat, so I currently can't...
In an attempt to get even more people answering our poll questions, I'll start announcing them on the forums as well. The polls are no longer located on the forum itself, but instead on the Spring...
readOnly only works for certain transaction managers. If I recall correctly, with a DataSourceTransactionManager it won't work. Spring internally hints the underlying resource to switch to read only,...
Hi Jorg,
it's good idea to start investigating what the community wants in terms of new features in the next major version. The first thing I wanted to do was get an anonymous poll in place on the...
:)
It's a multiple choice question.
31% of all are using the JtaTransactionManager, but it might not be the only one they're using. That's why it doesn't add up (in fact, adding up doesn't make...
Yes, it's a limitation of the forum software. I'm looking into possible alternatives to make this a anonymous vote, as this would also render more feedback.
rgds,
Alef
No, don't worry, I've moved the totals to reflect the correct selections, so while the old individual selections remain visible, the totals are correct.
Okay, I managed to include more options. You can't add more than 10 options at a time, but adding themin two edits works... Arno, I took the freedom to add one vote to the last option for you (as...
Ah okay, I should probably include that as an option too I guess... Which of the option should I delete now ;-)... I guess the JmsTransactionManager is next :(.
Hi Arno,
I assume you're using this through Spring's JtaTransactionManager?
I'll add a clarification to the poll about this, coz' it sure is confusing ;-).
-- THIS POLL HAS BEEN CLOSED. FUTURE POLLS WILL TAKE PLACE ON WWW.SPRINGFRAMEWORK.ORG --
As a follow-up on the last poll on transaction management, we'd like to hear from you which transaction...
Yes this will definitely improve performance!!
This is an interesting question! It should be possible to add this to the <tx:annotation-driven> tag. I'll see if I can come up with a prototype...
Hey DM,
this was a mistake. The tx:advice element should have mentioned the id, as you're correctly pointing out. I've updated the main poll post to reflect this.
thanks for spotting this.
Alef
Hi Adelino,
I usually am pretty much of the same opinion; keep things separated as much as possible. In certain situations however, I've seen compelling arguments for annotations ('is a service...
Ah, about the merge=true property; I forgot about that; you're absolutely right!
I agree with Karl; both approaches are useful. For new projects, I'd probably still go for the tx:advice approach...
You might want to take a look at Spring Web Services. The Object-XML mapping functionality there should help you there. I've asked Arjen to tune in as well...
There are heaps of information. One of the ones that's a little more introductory but serves the purpose well (isn't focused on Spring AOP or AspectJ or anything, just the theoretical concepts) is...