Search:

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

Page 1 of 2 1 2

Search: Search took 0.02 seconds.

  1. Sorry I did some testing and my idea does not...

    Sorry I did some testing and my idea does not work. Seems you need to define the security context in the root context so it will be shared between all servlets in the same war.
  2. If, since the login forms are totally different,...

    If, since the login forms are totally different, the application you reach is also different (that is other controllers and views but uses the same root context) one way to solve this might be to...
  3. Thread: Question on DI

    by ullgren
    Replies
    8
    Views
    403

    In the same way as the previous examples. By...

    In the same way as the previous examples. By injecting the repositories and other dependencies.
  4. Replies
    1
    Views
    235

    You can use different prefixes when loading...

    You can use different prefixes when loading properties and/or importing spring context files [1].

    If I where you I would consider using the same spring context file for both partners and then use...
  5. Thread: Question on DI

    by ullgren
    Replies
    8
    Views
    403

    In the way you put it now I would not directly...

    In the way you put it now I would not directly inject the Car bean into the POJO.
    I would create two DAOs (CarRepository and InsuranceRepository) that I inject into the POJO.

    Then I would use...
  6. I'm not sure if this is just a typo but in your...

    I'm not sure if this is just a typo but in your main you load the xml into context but get the bean from ctx.

    Do you have a more complete test case you can share on github or similar?

    //...
  7. Replies
    1
    Views
    342

    The request scope is only available in web-aware...

    The request scope is only available in web-aware Spring ApplicationContext implementation [1].
    So you will probably not be able to get a request scoped bean in the thread that consumes the message....
  8. @Qualifier is not the way to name a bean. Instead...

    @Qualifier is not the way to name a bean. Instead you should use the name attribute on @Bean annotation. See the reference documentation [1].

    So for you it should be.


    package test;

    import...
  9. Welcome :-) In my opinion the most important...

    Welcome :-)


    In my opinion the most important implementations of the BeanFactory[1] interface is all the different application context implementations.
    Simplified you could see it as the...
  10. Replies
    6
    Views
    308

    No I have not yet recreated the problem. My...

    No I have not yet recreated the problem. My initial answer was just a hunch. I will see if I have time to create a test case to recreate it.
    Do you happen to have a small proof of concept project...
  11. Thread: Question on DI

    by ullgren
    Replies
    8
    Views
    403

    Without having more information on your specific...

    Without having more information on your specific use case I can give the following advice.

    1. Create a repository or catalogue, much in the same way that spangleweed suggest above, and inject it...
  12. Replies
    6
    Views
    308

    What version of Spring, Eclipse, Java and what...

    What version of Spring, Eclipse, Java and what container (Tomcat, Jetty or other) are you using ?
  13. Replies
    6
    Views
    308

    I would think that the proper Java Bean naming...

    I would think that the proper Java Bean naming convention should be to use a upper case "C".

    What do you base your naming convention on ?
  14. Thread: Question on DI

    by ullgren
    Replies
    8
    Views
    403

    Could you provide more details ? What input is...

    Could you provide more details ?
    What input is it that you have to base your decision on ?
    Is it some user input or a parameter in a config file ?

    // Pontus
  15. Spring Cache is implemented using Sping AOP...

    Spring Cache is implemented using Sping AOP proxies so calls done between methods in the same object will not be passed through the proxy and there for not cached.
    See the spring reference manual[1]...
  16. From the posted stack trace it seems you have...

    From the posted stack trace it seems you have changed your code since your original post.

    You need to make sure that the object returned from getType() has a getName() method.

    BR
    Pontus
  17. This is without testing it, but I think you...

    This is without testing it, but I think you should be able to do somthing like this


    @Cacheable(value = "defaultCache", key="#root.target.getType() + #id")


    See the "28.3.1.2 Custom Key...
  18. Replies
    1
    Views
    333

    Hello, Not sure that you can use wild card...

    Hello,

    Not sure that you can use wild card like that to match property names.

    You could have one property where you have multiple vales as a comma separated list.


    extra=AAA,BBBB,CCC
  19. I do not know if there is a standardized turn-key...

    I do not know if there is a standardized turn-key solution to this problem but I would solve this by putting a message broker, active mq or rabbit mq, on a local DMZ and let the cloud application...
  20. Replies
    2
    Views
    12,721

    I assume this is the example you are looking for ...

    I assume this is the example you are looking for
    https://github.com/SpringSource/spring-security/tree/9b423a7726e999b6c80e8c4a769a99dd634f56ce/samples/ldap

    Also the reference documentation incl...
  21. Thread: XSD to Java

    by ullgren
    Replies
    3
    Views
    713

    If you are using maven for building there is the...

    If you are using maven for building there is the JAXB XJC Maven 2 Plugin (http://jaxb.java.net/jaxb-maven2-plugin/).

    I use maven and normally place all the XSD:s (and the generation of java files)...
  22. Replies
    5
    Views
    1,937

    Set the LogTargetClassInvocation property of...

    Set the LogTargetClassInvocation property of PerformanceMonitorInterceptor to true:


    <bean id="springMonitoringAspectInterceptor"
    ...
  23. Replies
    5
    Views
    1,937

    In the log4j config your appender has threshold...

    In the log4j config your appender has threshold INFO.
    Since perflogging is on TRACE level you need to change that to TRACE for the appender.

    As it is now the logging will be done on the logger...
  24. Replies
    5
    Views
    1,937

    I've not tested your example but if...

    I've not tested your example but if com.project14.service.common.AppService is an interface you should probably use the pointcut expresion


    The + sign indicates that it should match any subtype...
  25. Replies
    2
    Views
    602

    The note in section 7.2.3.1...

    The note in section 7.2.3.1 states.



    To intercept protected methods you need to use native AspectJ loadtime weaving.
Results 1 to 25 of 35
Page 1 of 2 1 2