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

Thread: file:inbound-channel-adapter with nio-locker and file-to-string-transformer

  1. #11
    Join Date
    Jan 2006
    Location
    Switzerland
    Posts
    15

    Default

    Yes I tried the exact configuration you posted, without anything else in the config file

    In my POM I have

    Code:
    <properties>
      <spring.version>3.1.1.RELEASE</spring.version>
      <spring.integration.version>2.1.1.RELEASE</spring.integration.version>
      <activeMQ.version>5.5.0</activeMQ.version>
      <xbean-spring.version>3.7</xbean-spring.version>
      <slf4j.version>1.5.11</slf4j.version>
    </properties>
    and Java 1.6.0_25, Windows 7

  2. #12
    Join Date
    Jan 2008
    Location
    Mohnton, PA USA (that's near Philadelphia)
    Posts
    2,148

    Default

    We are looking into it since it seems like the problem might be windows specific.

  3. #13
    Join Date
    Mar 2010
    Location
    Gtr Philadelphia, PA
    Posts
    2,020

    Default

    Reproduced on Windows XP - this seems to be a limitation/"feature" of the Windows operating system.
    Gary P. Russell
    Spring Integration Team
    SpringSource, a division of VMware

  4. #14
    Join Date
    Jan 2006
    Location
    Switzerland
    Posts
    15

    Default

    Does it mean that there is no solution to have nio-locker working on windows?

  5. #15
    Join Date
    Jan 2008
    Location
    Mohnton, PA USA (that's near Philadelphia)
    Posts
    2,148

    Default

    Well, if you read FileLock documentation it talks about it being specific to the OS - after all its a gateway to the native facilities and on the windows (the way i read it) the lock is exclusive.
    We are currently discussing the possibility of enabling configuration to make the lock shared, but the issue with that is that it wil be shared by any process within the same JVM which means it is not bound to threads. We did verify that the making the lock shared will get you passed the windows problem, but will it be appropriate stil remains a question.
    As I said we are stil discussing it so stay tuned

  6. #16
    Join Date
    Jan 2006
    Location
    Switzerland
    Posts
    15

    Default

    OK, I understand.

    Anyway, thank you very much for your help!

  7. #17
    Join Date
    Dec 2012
    Posts
    1

    Default

    Any updates on this issue? I am having the exact same problem.

  8. #18
    Join Date
    Jan 2009
    Location
    Ukraine, Kharkov
    Posts
    635

    Default

    Hello!

    Take a look here, please: http://forum.springsource.org/showthread.php?132984
    So, I think we'll raise an JIRA issue about 'more friendly nio-lock' and take care of it soon.

    HTH,
    Artem

Posting Permissions

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