Search:

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

Search: Search took 0.07 seconds.

  1. How to discover, if new transaction is created

    Hi,

    I have transaction methods managed by Spring @Transactional (Propagation REQUIRED).
    On the begin of method I need to discover, if method is called from transactional or non-transactional...
  2. Warwick, I'm afraid I have not good solution. ...

    Warwick,

    I'm afraid I have not good solution.
    Because my method is only *loader*, I set hibernate lazy=true. But I know I must figure out this in future.
    I believe this is because UserBus used...
  3. Replies
    1
    Views
    745

    Hi, Specification: instead of "recommendation"...

    Hi,

    Specification: instead of "recommendation" I use term "warning" now.
    A validator can report a failure or warning.
    Failure is standard exception.
    A warning is a failure that can be ignored...
  4. Replies
    1
    Views
    745

    Optional validation - Recommendation

    Hi,

    I'm looking for best practices for "Recommendation" - optional validators rule.

    Idea:
    We use Spring Validators for strict validation on user-input.
    In Validators we define rules that...
  5. I have still not good solution. With...

    I have still not good solution.

    With not-transactional behaviour I have problem with hibernate LAZY, because session is closed after any load in method.
    Solution is mapping as lazy=false, but...
  6. gehel thanks for answer, but annotation...

    gehel
    thanks for answer, but annotation @Transactional is achieve to describe class OR method, so moving to class has no effect.
    Problem is just in use userBus as userDetailsService in...
  7. Can anybody tell me if "not-proxied...

    Can anybody tell me if "not-proxied @transactional objects used in userDetailsService" is a feature?
    Or have I a chance to correct it?

    Thanks
    Jara
  8. Configuration is scattered in couple files. One...

    Configuration is scattered in couple files. One file is "main" and imports another files (tree structure).
    So yes userBus is loaded into the same context as the <tx:annotation-driven> element. I...
  9. Marten, thank you for answer. ...

    Marten,

    thank you for answer.
    TransactionManager in userBus is a residue of my experiments. I donīt require it and put it away now.


    Jara
  10. custom dao for userDetailsService + @Transactional - not proxied

    Hello,

    I have bus service UserBus for user-management, methods are annotated with @Transactional.
    Transactions worked fine before I used Acegi and UserBus as userDetailsService in...
  11. Addition

    Addition: of course applicationContext_unitils only extends or changes applicationContext_product, junit uses both contexts. Priority is applicationContext_unitils.
  12. "deactivate" MethodDefinitionSourceAdvisor for junit

    Hi,

    I have project with secured bussiness method via @Secured.
    In applicationContext_product I have


    <bean...
  13. Replies
    1
    Views
    1,421

    Sorry for stupid question, I solved it by import...

    Sorry for stupid question, I solved it by import Spring.jar.

    Jara
  14. Replies
    1
    Views
    1,421

    ApplicationContext not found by compile

    Hi, I can try SpringRich and have a newcommer problem:

    I have SpringRCP 0.2.1, Oracle JDeveloper 10.1.3., Java 5.

    When compiling main code


    i get from compiler(!) error
    ApplicationContext...
  15. Solved. We forgot old Spring 2.0 jar in...

    Solved.

    We forgot old Spring 2.0 jar in WEB-INF\lib.
    And Spring 2.0 had this NPE in DEBUG mode.

    JUnit tests runs with in-classpath Spring 2.01, but servlet runs with this out-of-mind old...
  16. Thank you for answer. servlet uses the same...

    Thank you for answer.

    servlet uses the same configuration from BUS like junittests:



    w4sn-servlet.xml
    ...
    <!--import resource="applicationContext.xml"/-->
    <import...
  17. NPE - Context initialization failed in DEBUG mode

    Hi,
    I have app Spring 2.01 + Hibernate + Spring MVC, it runs on Oracle OC4J.
    When I set LOG4J level to DEBUG, I get exception



    2007-02-13 07:17:37,687 ERROR...
Results 1 to 17 of 17