Results 1 to 5 of 5

Thread: Spring Batch and LDAP?

  1. #1
    Join Date
    Jan 2008
    Posts
    2

    Default Spring Batch and LDAP?

    Hi,
    I would like to write a batch that reads data from db and Ldap server and than writes it ldap server. Is is possible to use Ldap server an input or output source in Spring Batch?

  2. #2
    Join Date
    Jun 2006
    Location
    The Netherlands
    Posts
    13,625

    Default

    InputSource is merely an interface how you implement it (file, db, ldap, http, r2d2 data interface, c3p0 babble) doesn't matter. So yes but you will have to implement it yourself.
    Marten Deinum
    Java Consultant / Pragmatist / Open Source Enthousiast / Author


    Pro Spring MVC: With Web Flow
    Conspect

    Have you read the reference guide.
    Use the [ code ] tags, young padawan

  3. #3

    Default

    I was thinking about writing an LDAP-aware input source at one point, too. This is a common enough need, and this is a commonly used protocol, so it might be worthwhile to submit a request for this functionality as a JIRA issue. Additionally, you may want to attach your solution for consideration.

    In any case, you'll have to write it yourself for now, so keep posting if you have any questions.

  4. #4
    Join Date
    Jan 2008
    Posts
    2

    Default

    After analyzing samples provided with Spring Batch I think that it'll be better to use ItemProvider/ItemProcessor pattern. ItemProvider will read from db userId and user profile and then ItemProviderProcessTasklet will pass it to ItemProcessor to write attribute.
    However my batch also has to remove profile from users who don't have it in db anymore. This will require more logic - loading all users with given profile and checking if proper entry exists in db. I've been considering putting all this logic in ItemProvider so it would provide just attributes to remove for ItemProcessor.
    What do you think about this solution? I'm new to Spring/Spring Batch ( I only use spring-ldap) so I guess there might be better way to do this.

  5. #5

    Default Any solution for this

    Hi,
    I am new to Spring Batch and trying to read from LDAP and write to DB, It would be great if you could help me with any inputs, Thank you.

Posting Permissions

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