Page 2 of 2 FirstFirst 12
Results 11 to 12 of 12

Thread: My Steps are hanging waiting on a semphore

  1. #11
    Join Date
    Jun 2005
    Posts
    4,241

    Default

    I'm actually surprised it ever worked. I always use JobRepositoryTestUtils and JdbcTemplate to clean up after a Job integration test.

    If you'd like to raise a JIRA ticket it might be a decent target for 3.0 to support a single transaction for testing jobs. It's not really a great idea for production use because jobs tend to run too long for a single transaction.

  2. #12
    Join Date
    Nov 2010
    Posts
    2

    Default

    Quote Originally Posted by Dave Syer View Post
    I'm actually surprised it ever worked. I always use JobRepositoryTestUtils and JdbcTemplate to clean up after a Job integration test.

    If you'd like to raise a JIRA ticket it might be a decent target for 3.0 to support a single transaction for testing jobs. It's not really a great idea for production use because jobs tend to run too long for a single transaction.
    Well, it might have been more luck than anything else since I assume that having more data than the commit size should blow up my test anyway.
    I do agree with the statement about production but I'll think about it if it would be a good idea for integration/unit testing. If I can't find any (real) downsides I'll raise a JIRA ticket for this. I might actually develop a quick 'n dirty solution for unit testing myself.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •