You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@servicemix.apache.org by "Jamie Goodyear (JIRA)" <ji...@apache.org> on 2008/10/28 20:24:52 UTC

[jira] Created: (SMX4KNL-130) Support configurable lock directory for container level locking (for master/slave deployments).

Support configurable lock directory for container level locking (for master/slave deployments).
-----------------------------------------------------------------------------------------------

                 Key: SMX4KNL-130
                 URL: https://issues.apache.org/activemq/browse/SMX4KNL-130
             Project: ServiceMix Kernel
          Issue Type: Improvement
         Environment: *nix and windows.
            Reporter: Jamie Goodyear
         Attachments: smx4knl-130.txt

Allow the lock directory to be configurable. Currently the lock file is located in the directory represented by the value of the "servicemix.base" property.

{code}
File base = new File(props.getProperty("servicemix.base"));
{code}

Ideally the container should support using a property that is dedicated to this locking mechanism (servicemix.lockdir?) and if it is not specified, use the servicemix.base.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Assigned: (SMX4KNL-130) Support configurable lock directory for container level locking (for master/slave deployments).

Posted by "Jamie Goodyear (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/SMX4KNL-130?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jamie Goodyear reassigned SMX4KNL-130:
--------------------------------------

    Assignee: Jamie Goodyear

> Support configurable lock directory for container level locking (for master/slave deployments).
> -----------------------------------------------------------------------------------------------
>
>                 Key: SMX4KNL-130
>                 URL: https://issues.apache.org/activemq/browse/SMX4KNL-130
>             Project: ServiceMix Kernel
>          Issue Type: Improvement
>         Environment: *nix and windows.
>            Reporter: Jamie Goodyear
>            Assignee: Jamie Goodyear
>         Attachments: smx4knl-130.txt
>
>
> Allow the lock directory to be configurable. Currently the lock file is located in the directory represented by the value of the "servicemix.base" property.
> {code}
> File base = new File(props.getProperty("servicemix.base"));
> {code}
> Ideally the container should support using a property that is dedicated to this locking mechanism (servicemix.lockdir?) and if it is not specified, use the servicemix.base.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (SMX4KNL-130) Support configurable lock directory for container level locking (for master/slave deployments).

Posted by "Guillaume Nodet (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/SMX4KNL-130?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Guillaume Nodet updated SMX4KNL-130:
------------------------------------

    Patch Info: [Patch Available]

> Support configurable lock directory for container level locking (for master/slave deployments).
> -----------------------------------------------------------------------------------------------
>
>                 Key: SMX4KNL-130
>                 URL: https://issues.apache.org/activemq/browse/SMX4KNL-130
>             Project: ServiceMix Kernel
>          Issue Type: Improvement
>         Environment: *nix and windows.
>            Reporter: Jamie Goodyear
>            Assignee: Guillaume Nodet
>         Attachments: smx4knl-130.txt, smx4knl-130b.txt
>
>
> Allow the lock directory to be configurable. Currently the lock file is located in the directory represented by the value of the "servicemix.base" property.
> {code}
> File base = new File(props.getProperty("servicemix.base"));
> {code}
> Ideally the container should support using a property that is dedicated to this locking mechanism (servicemix.lockdir?) and if it is not specified, use the servicemix.base.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Assigned: (SMX4KNL-130) Support configurable lock directory for container level locking (for master/slave deployments).

Posted by "Jamie Goodyear (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/SMX4KNL-130?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jamie Goodyear reassigned SMX4KNL-130:
--------------------------------------

    Assignee: Guillaume Nodet  (was: Jamie Goodyear)

Hi Guillaume,

  Could I have you review patch smx4knl-130b.txt (single class modification solution)?

Thanks,
Jamie

> Support configurable lock directory for container level locking (for master/slave deployments).
> -----------------------------------------------------------------------------------------------
>
>                 Key: SMX4KNL-130
>                 URL: https://issues.apache.org/activemq/browse/SMX4KNL-130
>             Project: ServiceMix Kernel
>          Issue Type: Improvement
>         Environment: *nix and windows.
>            Reporter: Jamie Goodyear
>            Assignee: Guillaume Nodet
>         Attachments: smx4knl-130.txt, smx4knl-130b.txt
>
>
> Allow the lock directory to be configurable. Currently the lock file is located in the directory represented by the value of the "servicemix.base" property.
> {code}
> File base = new File(props.getProperty("servicemix.base"));
> {code}
> Ideally the container should support using a property that is dedicated to this locking mechanism (servicemix.lockdir?) and if it is not specified, use the servicemix.base.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (SMX4KNL-130) Support configurable lock directory for container level locking (for master/slave deployments).

Posted by "Guillaume Nodet (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/SMX4KNL-130?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Guillaume Nodet resolved SMX4KNL-130.
-------------------------------------

    Fix Version/s: 1.1.0
       Resolution: Fixed

Sending        main/src/main/java/org/apache/servicemix/kernel/main/SimpleFileLock.java
Transmitting file data .
Committed revision 711745.

Thx Jamie, keep up the good work !

> Support configurable lock directory for container level locking (for master/slave deployments).
> -----------------------------------------------------------------------------------------------
>
>                 Key: SMX4KNL-130
>                 URL: https://issues.apache.org/activemq/browse/SMX4KNL-130
>             Project: ServiceMix Kernel
>          Issue Type: Improvement
>         Environment: *nix and windows.
>            Reporter: Jamie Goodyear
>            Assignee: Guillaume Nodet
>             Fix For: 1.1.0
>
>         Attachments: smx4knl-130.txt, smx4knl-130b.txt
>
>
> Allow the lock directory to be configurable. Currently the lock file is located in the directory represented by the value of the "servicemix.base" property.
> {code}
> File base = new File(props.getProperty("servicemix.base"));
> {code}
> Ideally the container should support using a property that is dedicated to this locking mechanism (servicemix.lockdir?) and if it is not specified, use the servicemix.base.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (SMX4KNL-130) Support configurable lock directory for container level locking (for master/slave deployments).

Posted by "Jamie Goodyear (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/SMX4KNL-130?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jamie Goodyear updated SMX4KNL-130:
-----------------------------------

    Attachment: smx4knl-130.txt

Attached smx4knl-130.txt

Contains modifications to files:
main/src/main/java/org/apache/servicemix/kernel/main/SimpleFileLock.java
main/src/main/java/org/apache/servicemix/kernel/main/Main.java

These modifications provide support to specify lock file directory location.

Sample Usage in config.properties:
servicemix.lock.dir=/path/to/directory

> Support configurable lock directory for container level locking (for master/slave deployments).
> -----------------------------------------------------------------------------------------------
>
>                 Key: SMX4KNL-130
>                 URL: https://issues.apache.org/activemq/browse/SMX4KNL-130
>             Project: ServiceMix Kernel
>          Issue Type: Improvement
>         Environment: *nix and windows.
>            Reporter: Jamie Goodyear
>            Assignee: Jamie Goodyear
>         Attachments: smx4knl-130.txt
>
>
> Allow the lock directory to be configurable. Currently the lock file is located in the directory represented by the value of the "servicemix.base" property.
> {code}
> File base = new File(props.getProperty("servicemix.base"));
> {code}
> Ideally the container should support using a property that is dedicated to this locking mechanism (servicemix.lockdir?) and if it is not specified, use the servicemix.base.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (SMX4KNL-130) Support configurable lock directory for container level locking (for master/slave deployments).

Posted by "Jamie Goodyear (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/SMX4KNL-130?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jamie Goodyear updated SMX4KNL-130:
-----------------------------------

    Attachment: smx4knl-130b.txt

Alternate patch for smx4knl-130.

All handling of 'servicemix.lock.dir' is contained in SimpleFileLock.java.


> Support configurable lock directory for container level locking (for master/slave deployments).
> -----------------------------------------------------------------------------------------------
>
>                 Key: SMX4KNL-130
>                 URL: https://issues.apache.org/activemq/browse/SMX4KNL-130
>             Project: ServiceMix Kernel
>          Issue Type: Improvement
>         Environment: *nix and windows.
>            Reporter: Jamie Goodyear
>            Assignee: Jamie Goodyear
>         Attachments: smx4knl-130.txt, smx4knl-130b.txt
>
>
> Allow the lock directory to be configurable. Currently the lock file is located in the directory represented by the value of the "servicemix.base" property.
> {code}
> File base = new File(props.getProperty("servicemix.base"));
> {code}
> Ideally the container should support using a property that is dedicated to this locking mechanism (servicemix.lockdir?) and if it is not specified, use the servicemix.base.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.