Results 1 to 7 of 7

Thread: SPRING BATCH J2EE Container

  1. #1
    Join Date
    Aug 2010
    Posts
    8

    Default SPRING BATCH J2EE Container

    We are figuring out a batch architecture that has Spring Batch as "BatchEngine" and that leverages the low level J2EE AS services (Pooling,CLustering,Load Balancing etc...). Is that possible without break the j2ee specification (especially if we use spring AsynchTaskExcutor in our job configuration) and having unpredictable concurrent thread scenarios?

    In particular, can i deploy my spring batch jobs under WebLogic or Jboss, and using a Partition Step with an AsynchTaskExecutor without having conflits on J2ee application server work managers?

  2. #2
    Join Date
    Jun 2005
    Posts
    4,230

    Default

    Spring has support for JEE thread pools via http://static.springsource.org/sprin...kExecutor.html

  3. #3
    Join Date
    Aug 2010
    Posts
    8

    Default

    Thank you Dave,
    I will give a try to JBossWorkManagerTaskExecutor.

  4. #4
    Join Date
    Aug 2010
    Posts
    9

    Default

    Hi Dave,

    i believe that the work manager api is not a J2EE standard since the relevant JSRs were not approved :
    http://www.jcp.org/en/jsr/detail?id=237
    http://www.jcp.org/en/jsr/detail?id=236

    so wouldn't that solution be breaking J2EE compliance ?

  5. #5
    Join Date
    Jun 2005
    Posts
    4,230

    Default

    True, but that is splitting hairs. The appserver vendors provide WorkManager implementations and insist that apps use them instead of the native thread APIs, so it's irrelevant if the standard is really part of JEE or not.

  6. #6
    Join Date
    Aug 2010
    Posts
    9

    Default

    Interesting.. then it's not clear why the WorkManager approach was not accepted as a standard , if the major app server vendors insist on using it (can you refer to where this recommendation is expressed ?) then you are saying that the non compliance is only a formality.
    can you shed some light on why the JSR's were not accepted formally ?

    i'm asking bacause this (spring batch JEE comliance) is raised as a major concern by our CTO office ..

    Thanks

  7. #7
    Join Date
    Jun 2005
    Posts
    4,230

    Default

    I have no opinions or information relating to work manager JSRs. My opinion: your CTO needs to get some perspective - what does he gain from not using the relatively vendor-neutral work manager APIs, or the completely vendor-neutral Spring APIs? If people want to write "non-compliant" JEE applications he can try and stop them, but the Java language is not going to help him. And you don't need to use the multi-threading features of Spring (or Spring Batch) if you don't want to.

Posting Permissions

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