Search:

Type: Posts; User: teknokrat; Keyword(s):

Search: Search took 0.03 seconds.

  1. Replies
    0
    Views
    636

    How can i mock aspects with mockito?

    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
    ...
  2. An issue with spring message converter and tomcat coyote connector

    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...
  3. Ok, It appears that the response is getting...

    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,...
  4. I did some debugging but couldn't find anything...

    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.
  5. Strange problem of setting response headers in interceptor

    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...
  6. thanks, that worked

    thanks, that worked
  7. How do I get the HttpSession via Spring-el

    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?
  8. Which view classes would be best? To give you an...

    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
  9. Working with the servlet output stream directly

    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...
  10. Replies
    0
    Views
    682

    How can i get the path of a request?

    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...
  11. Ok, discovered the OpenEntityManagerInViewFilter....

    Ok, discovered the OpenEntityManagerInViewFilter. That seems to have done the trick.
  12. How to I manage transactions per request using JPA

    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...
  13. Replies
    2
    Views
    2,057

    Ok, I got it to work. Basically for anyone else...

    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
    ...
  14. Replies
    2
    Views
    2,057

    How do I use velocity support

    I am trying to use velocity support in spring in a standalone app. I have defined the velocity engine bean using


    <bean id="velocity2"...
  15. Replies
    2
    Views
    1,406

    That did the trick thank you

    That did the trick

    thank you
  16. Replies
    2
    Views
    1,406

    Problem passing null parameters

    The following definition works


    <bean id="jmxConnector" class="javax.management.remote.JMXConnectorFactory" factory-method="newJMXConnector">
    <constructor-arg><ref...
  17. Replies
    4
    Views
    1,464

    No, I am not using an app server. Its a small...

    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....
  18. Replies
    4
    Views
    1,464

    So what is the best practice for having spring...

    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...
  19. Replies
    4
    Views
    1,464

    session, Transaction and worker threads

    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...
  20. Ok, thanks, I'lll give a go first rate support...

    Ok, thanks, I'lll give a go

    first rate support guys!
  21. Correction, the actions are not webworks's but...

    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...
  22. Help with putting transactions around webwork actions

    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...
Results 1 to 22 of 22