I am trying to test some of my spring beans that require AOP. I would like to use mocks created by Mockito but I'm having the following difficulties.
I have the following configuration
...
Type: Posts; User: teknokrat; Keyword(s):
I am trying to test some of my spring beans that require AOP. I would like to use mocks created by Mockito but I'm having the following difficulties.
I have the following configuration
...
I hope someone can make sense of this. I am not too sure whether its a bug or not, but I recently had an issue with trying to set a custom header in the HttpServletResponse parameter of an...
Ok, It appears that the response is getting committed somewhere. I don't believe it is anything I am doing as I am not using the response for anything other than setting the header. Interestingly,...
I did some debugging but couldn't find anything that would create such a problem. For some reason when I add the ETags filter, then it all works.
I am trying to set a header on the http response inside an interceptor's postHandle method. The code is just a simple response.setHeader("header", "value");
For some reason though the header is...
thanks, that worked
The title says it all. I want to get a property of the httpsession injected into my controller via a @value annotation and I would like to know what is the spring-el expression I should use?
Which view classes would be best? To give you an idea of what i am doing, I need to output X<L generated by JAXB, and text/plain messages. Is there and spring support for any of these?
cheers
I have created a number of Views that manage the response stream themselves. The data i have is not html and is constructed dynamically so i don't need any templates, jsps, etc. Can someone comment...
I have a number of methods in my controller mapped as
@RequestMapping("/*/getUser")
public View getUser(String name) throws Exception {...}
I would like to be able to get hold of the path of...
Ok, discovered the OpenEntityManagerInViewFilter. That seems to have done the trick.
I have a custom view that serializes my entire object graph which comes from the database. I have a DAO which uses a JPA entity manager to get the data from the db, but it closes the transaction...
Ok, I got it to work. Basically for anyone else who has trouble with this the file.resource.loader.path must be set to empty for velocity to use absolute file names. So you actually need the line
...
I am trying to use velocity support in spring in a standalone app. I have defined the velocity engine bean using
<bean id="velocity2"...
That did the trick
thank you
The following definition works
<bean id="jmxConnector" class="javax.management.remote.JMXConnectorFactory" factory-method="newJMXConnector">
<constructor-arg><ref...
No, I am not using an app server. Its a small project and doesn't require one. The use case I have is that once a job is submitted ( via the web ) a thread needs to go and spider a set of sites....
So what is the best practice for having spring manage these worker threads? The dao ( extended from HibernateDaoSupport) is threadsafe, but I assume that when it comes time for a database...
We are currently using Spring + webwork + Hibernate with the OpenSessionInViewFilter. Everything works great when confined to a single request. However, we now have to implement some long running...
Ok, thanks, I'lll give a go
first rate support guys!
Correction, the actions are not webworks's but xwork's. This is the command framework we use for our business methods and has nothing to do with the web per se ( of course webwork uses them to...
Tried proxying the actions using TransactionProxyBean but this apparently creates singletons only and webwork actions cannot be singletons. Where do i go from here? has anyone successfully managed to...