I'm trying to integrate a Java domain and service layer with a Grails app. The Java projects are built with Maven and the Grails project loads the JARs from the Maven repo. The service project...
Type: Posts; User: domurtag; Keyword(s):
I'm trying to integrate a Java domain and service layer with a Grails app. The Java projects are built with Maven and the Grails project loads the JARs from the Maven repo. The service project...
http://groovy.codehaus.org/
Hi,
I have STS 2.6.0.M1 installed. Is there any easy way for me to update to 2.6.0.M2? I don't want to install it from scratch as I already have a lot of other plugins installed and confiured in...
Hi,
This post on stackoverflow.com, provides a way of reusing error messages across different beans.
Cheers,
Don
Hi,
I'd like to convert this SimpleFormController to use the annotation support introduced in Spring 2.5
public class PriceIncreaseFormController extends SimpleFormController {
...
I have a Spring web application which is configured to use JDK proxying for AOP. The AOP annotations (such as @Transactional) are declared on the interfaces, rather than the implementation classes.
...
Hi,
I have a bunch of Spring beans which are picked up from the classpath via annotations, e.g.
@Repository("personDao")
public class PersonDaoImpl extends AbstractDaoImpl implements...
I considered that, but my goal is to reduce the total time for build and application startup. I don't see any particular reason why compiling the reports during build is going to be any quicker than...
The problem with this approach (as I mentioned above) is that it's only a matter of time, before someone forgets to check in the modified .jasper file after making a change to the .jrxml.
Hi,
I use Jasper reports with the JasperReportsMultiFormatView class provided by Spring. This class takes care of compiling the source .jrxml files to their compiled .jasper format when the...
Hi,
I'm using FreeMarkerConfigurationFactoryBean to retrieve FreeMarker templates. I would like these templates to be cached, but there doesn't appear to be anyway to indicate that this behaviour...
Hi,
I'd like to use FreeMarker to generate the text of emails that will be sent by my application. The generated text will never be returned to the view so I don't need to configure a FreeMarker...
Hi,
I had a look in the reference doc, and Spring seems to have pretty good support for sending mail. However, I need to login to a mail account, read the messages, and download any attachments....
Hi,
The sample provided with the download of the Spring Bean Validation framework indicates that it's possible to specify a default error message for a particular rule. For example, if I have a...
Hi,
I'm investigating an annotation-based approach to command bean validation using spring modules. In the tutorial, the following command bean (getters and setters omitted) is used:
public...
Hi,
I'm investigating an annotation-based approach to command bean validation using spring modules. In the tutorial, the following command bean (getters and setters omitted) is used:
public...
Thanks for the response. Am I correct in assuming that methods annotated with @Transactional must also be non-final?
Hi,
I use the @Transactional annotation (on implementation methods) to mark the boundaries of my services transactions. This is enabled by adding the following to my Spring config file
<bean...
Hi,
This is a general JMX question, and really has nothing to do with Spring's JMX support, so feel free to post a humbling reply, delete the post, or whatever....
I have a method which takes a...
Sorry to labour the point, but in the code sample I showed previously, con.prepareStatement() is only called once, so it's obvious that only a single PreparedStatement is created. However, you seem...
Sure, but from looking at the JdbcTemplate source code, it appears that if I call the method shown above several times:
getUsers(10);
getUsers(20);
Spring will create a new PreparedStatement...
For maximal performance, my objective is to have a prepared statement created and prepared the first time I execute a particular SQL statement, and for that same prepared statement to be executed for...
Thanks for the response. However, it's still not clear how I can achieve my goal, which is to ensure that a prepared statement is only created and prepared the first time a particular SQL statement...
Hi,
Here's a typical query from one of our Spring-JDBC DAOs:
public List<User> getUsers(final int age) {
return getJdbcTemplate().query(
new PreparedStatementCreator() {
public...
Hi,
I have the following Jasper report view configured:
<bean id="transactionReport" class="org.springframework.web.servlet.view.jasperreports.JasperReportsMultiFormatView">
<property...