Search:

Type: Posts; User: daniel.mfreitas; Keyword(s):

Page 1 of 3 1 2 3

Search: Search took 0.02 seconds.

  1. I have found why the properties are not set....

    I have found why the properties are not set. There's a BeanFactoryPostProcessor that also implements ApplicationContextAware and uses the application context to load the bean to do some dynamic...
  2. @Component, @Autowired and xml mixed configuration not working

    Hello guys. I tried everything but I'm at a loss here. I have used this approach before when working in a project from scratch, but now I'm working on a legacy system which already uses Spring. I'm...
  3. But that means that I have to have an...

    But that means that I have to have an implementation of my interface right? What I'm really trying to do is "advise" interfaces. Yes it's crazy but let me explain.

    I have interfaces annotated with...
  4. Automatically creating proxies (no implementation of the interfaces required).

    Is it possible to have spring automatically create proxies for interfaces without having to declare any org.springframework.aop.framework.ProxyFactoryBean in the application context? Basically I...
  5. Creating your own Schema-based configuration

    Hello guys.

    Is it possible to create your own Schema-based configuration? Is there documentation about hits somewhere?

    Basically I have a utility that I use in almost all my spring apps (one...
  6. After a lot of research and try outs that's what...

    After a lot of research and try outs that's what I have found:

    <tx:annotation-driven/> does not work with AspectJ weaved beans created outside the spring container. (At least not fully ;))

    Take...
  7. Confused about AspectJ and @Transactional

    In the spring documentation it is stated under section '9.5.9. Using @Transactional with AspectJ' that "The aspect must also be configured with a transaction manager." and that "The simplest way to...
  8. Answering my own question, it seems there is no...

    Answering my own question, it seems there is no official aspect for the @Secured annotation. I checked the spring-aspects.jar source code and I could only see the transactional aspect. And for that...
  9. Quick question about spring-aspects and spring security.

    Basically, I have to create domain objects outside of the spring container (rich domain model created by new or returned by hibernate).

    Can I annotate their interfaces with @Secured and have them...
  10. Compile time weaving and domain objects loaded by hibernate.

    Hello folks,

    I'm getting the following error when I run my integration tests:


    java.lang.IllegalStateException: Property 'transactionManager' must be set on transaction aspect

    I'm using...
  11. Just a heads up on my final solution. I...

    Just a heads up on my final solution.

    I decided to keep everything in the same class. The code was already simple enough and I didn't want to fragment my objects too much. That left me to stub the...
  12. Thanks for the feedback. I already have...

    Thanks for the feedback. I already have integration tests for my dao layer with embedded databases.

    But I have this specific class which constructs a string to be passed to...
  13. Is it possible to create tru unit tests if classes depends on hibernate?

    I'm applying TDD in my project and I'm having good results so far. My classes are well better designed now than in previous non TDD approaches.

    I'm trying to stay true to unit testing and mock...
  14. Replies
    2
    Views
    1,875

    This is a bug in oracle jdbc driver: ...

    This is a bug in oracle jdbc driver:

    http://stackoverflow.com/questions/277744/jdbc-oracle-arrayindexoutofboundsexception

    I'm facing the same issues.

    I tried to downgrade to ojdbc14.jar but...
  15. I found a workaround for the issue. Instead of...

    I found a workaround for the issue. Instead of having the interceptor annotated with @Transactional, I created another class to execute the custom queries and delegated all calls to it. This class...
  16. Some experiments I did: If I have this: ...

    Some experiments I did:

    If I have this:



    //.... Other imports
    import java.lang.reflect.InvocationHandler;
    public class HibernateInvocationHandler implements InvocationHandler {...
  17. Annotation-driven transactions and ProxyFactoryBean

    Hello guys.

    I can't put annotation driven transactions to work with ProxyFactoryBean interceptors (the transactions work properly on other annotated beans, it just fails with my interceptor)....
  18. Yes I can do this. Actually the ...

    Yes I can do this. Actually the <constructor-arg> tag means "arguments needed to create an object" and not "java constructor arguments". If the beans are create by constructor or by factory methods...
  19. I saw a guy doing this in a blog (haven't tested...

    I saw a guy doing this in a blog (haven't tested it so don't know if it's correct)


    public class DaoFactoryCreator {
    public static DaoFactory createDaoFactory(List daos) {
    DaoFactory factory...
  20. Using factory beans with factory method parameters

    Hello guys.

    I have a factory that is responsible to create dynamic proxies for my DAOs. You send in the domain object Class you want to create the DAO proxy for and using reflection and naming...
  21. Looks good. I'm happy I could help. :D

    Looks good. I'm happy I could help. :D
  22. Well. It's is working for me with and without...

    Well. It's is working for me with and without form objects. I can show the validation errors set by the commons-validator framework and formaction bindAndValidate method as well as my custom error...
  23. My final solution: if (error) { //or...

    My final solution:



    if (error) { //or try..catch
    FormObjectAccessor formObjectAccessor = new FormObjectAccessor(requestContext);
    Errors errors =...
  24. P.S.2 Please post here your findings and if it...

    P.S.2 Please post here your findings and if it worked for you. I'm curious to know how other people approach this.
  25. P.S. I just noticed that if you do this and you...

    P.S. I just noticed that if you do this and you are using the same solution as I am, you can put any object/object name in Errors errors = new BindException();

    For example I am using:

    Errors...
Results 1 to 25 of 58
Page 1 of 3 1 2 3