Search:

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

Search: Search took 0.02 seconds.

  1. TheTransactionalSubclass has @Service. Wasn't in...

    TheTransactionalSubclass has @Service. Wasn't in the original post.




    Yes, had same thought; but as weaving, starts to add complexity as you say.


    As Spring AOP works on interfaces...
  2. Autodiscover via Spring...

    Autodiscover via Spring <context:component-scan/>.




    Yep, I know the proxies and am surprised "full object" (meaning parent too) not proxied/calls not intercepted. I have wondered perhaps I...
  3. Hi, thanks for the reply. I debated where to...

    Hi, thanks for the reply.

    I debated where to post; nothing was obvious. I chose here because Spring Transactions by default use AOP, which is the implementation we're using. I think the answer...
  4. Should parent class methods run in transaction?

    If a child class is annotated with @Transactional, should the methods in the parent class also run in a transaction when the parent class methods are called directly (on an instance of the child...
  5. Replies
    10
    Views
    2,208

    Would you mind please explaining how to...

    Would you mind please explaining how to inject/configure an overridden WebAuthenticationDetails instance for the UsernamePasswordAuthenticationFilter?

    I can see that the path is:...
  6. I copied JpaPagingItemReader locally and changed...

    I copied JpaPagingItemReader locally and changed

    EntityTransaction tx = entityManager.getTransaction();
    tx.begin();

    to

    entityManager.joinTransaction();

    and deleted
  7. How use JTA with JpaPagingItemReader when calls getTransaction()?

    Per spec, cannot call em.getTransaction() when in a JTA transaction.

    Since JpaPagingItemReader.doReadPage() has:

    EntityTransaction tx = entityManager.getTransaction();

    Running with JTA...
  8. Replies
    9
    Views
    1,384

    I am wondering the reasons for using...

    I am wondering the reasons for using JobRegistrar? Is it for a "production run" configuration need or other?

    Particularly, we're struggling with Spring test contexts with adding a JTA manager (it...
  9. Yes, that doc example is very misleading. That's...

    Yes, that doc example is very misleading. That's exactly our cause too - @Transactional test.
  10. Hi, thank you for the reply. Sorry I wasn't...

    Hi, thank you for the reply.

    Sorry I wasn't clear - the questions pertain to Spring Batch in standalone JSE. I plan to have each job launched individually/in their own JVM.

    Our system apps are...
  11. Configuring multiple jobs, CLI launching, and tests

    What is the recommended approach(es) to arrange the Spring Batch context files for multiple jobs and their shared beans? And how do you launch them from CLI?

    Launching a job from CLI can only...
  12. How to use 3.x Field Formatting not in MVC?

    How does one configure and use domain entities annotated with Spring field formatting annotations (e.g. @NumberFormat, @DateTimeFormat) outside of Spring MVC? Our particular use case is creating...
Results 1 to 12 of 12