Search:

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

Search: Search took 0.01 seconds.

  1. Note that this only applies to Hibernate3 beans....

    Note that this only applies to Hibernate3 beans. In hibernate4 it is currently not possible to set the interceptor to the transaction manager - see https://jira.springsource.org/browse/SPR-9987 for...
  2. I've added a ticket for this:...

    I've added a ticket for this: https://jira.springsource.org/browse/SPR-9987

    As for pappnas's code - it appears to be adding the interceptor to the sessionFactory, not to the session.
  3. Does any Spring guru have any idea regarding this?

    Does any Spring guru have any idea regarding this?
  4. How to exposeTransactionAware on a 2nd sessionFactory in hibernate4?

    The test below was working in my application with Hibernate3. When I upgraded it to hibernate4, it started failing.


    @RunWith(SpringJUnit4ClassRunner.class)...
  5. For those interested: this is due to the way we...

    For those interested: this is due to the way we have to lookup resources via the classloader. From ...
  6. Not really Kent: 1) Moving...

    Not really Kent:

    1) Moving originalApplicationContext.xml and myproperties.properties in Module1 from main/resources to test/resources makes (module2's) CopiedSpringPropertiesTest yield the error...
  7. [Possible Bug] PropertyPlaceholderConfigurer doesn't find resource with *

    Dear all,

    I have created the attached project to illustrate what I wonder is a bug.

    I am using the PropertyPlaceholderConfigurer in the usual fashion, with a wildcard:



    <bean...
  8. I don't think it's the same. That link talks...

    I don't think it's the same. That link talks about "defining which properties file to use in web.xml", not about setting web.xml elements to values defined in a properties file.
  9. Can one use .properties variables in web.xml file?

    I have a web application with a PropertyPlaceholderConfigurer that fetches properties from a somefile.properties.

    In web.xml I have:



    <context-param>...
  10. Oh, much clearer. Thanks a lot jtougas. So...

    Oh, much clearer. Thanks a lot jtougas.

    So basically inner methods are called directly by the pojo class. They do not pass the proxied class and therefore any annotations are ignored (ie, the...
  11. Marten, could you please check if your answer...

    Marten, could you please check if your answer also applies to http://forum.springsource.org/showthread.php?t=107611 ?

    More specifically, I don't understand your last sentence: what do you mean by...
  12. @Transaction REQUIRES_NEW - does it start a new transaction?

    Dear all,

    I am trying to use spring's transaction management for my hibernate tests. In this quick scenario I am testing a generalDAO to which I @autowire the sessionFactory.

    Regarding this...
  13. Replies
    1
    Views
    861

    Circular dependency on prototype beans

    The setup is


    public class MedicinalProduct{
    private List<ActiveSubstanceStrength> activeSubstanceStrength;
    }

    public class ActiveSubstanceStrength {

    private Integer id;
  14. How to handle authorization with interceptor and annotation

    I have some authorization code which I used in Struts2 to handle authorization.

    Basically, I annotate a method with SecuredRoles(roles="a,b,c") and the Struts 2's interceptor checks that against...
Results 1 to 14 of 14