[ 
https://issues.apache.org/activemq/browse/SMX4KNL-163?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jamie Goodyear updated SMX4KNL-163:
-----------------------------------

    Attachment: for-discussion-only.txt

Hi All,

  I've attached a file "for-discussion-only.txt" for the purposes of discussing 
the DefaultJDBCLock. 

  I used AMQ's DefaultDataLocker as a blue print for how to construct this 
class. In AMQ the keepAlive function perfoms a service similar to SMX's Lock 
interface lock(), I intend here for Main#lock() to call the 
DefaultJDBCLock#lock() method continuously thereby  maintaining a lock on the 
Servicemix locking table. 

  To use the jdbc lock a user would have to include the following in their 
system.properties file:

{noformat}
servicemix.lock=true
servicemix.lock.class=org.apache.servicemix.kernel.main.DefaultJDBCLock
servicemix.lock.jdbc.url=jdbc:derby://localhost:1527/sample
servicemix.lock.jdbc.driver=org.apache.derby.jdbc.ClientDriver
servicemix.lock.jdbc.user=user
servicemix.lock.jdbc.password=password
{noformat}

 The mechanism for creating a SMX4 locking table and/or re-using another 
application's locking table needs to be developed & tested. 

> Provide default jdbc lock impl for master/slave deployments
> -----------------------------------------------------------
>
>                 Key: SMX4KNL-163
>                 URL: https://issues.apache.org/activemq/browse/SMX4KNL-163
>             Project: ServiceMix Kernel
>          Issue Type: New Feature
>         Environment: All
>            Reporter: Jamie Goodyear
>            Assignee: Jamie Goodyear
>             Fix For: 1.1.0
>
>         Attachments: for-discussion-only.txt, smx4knl-163.txt
>
>
> Provide default jdbc lock impl for master/slave deployments.
> From note on SMX4KNL-106:
> By default, a file based locking mechanism is used. There is an interface 
> that can be implemented to allow other locking mechanisms such as JDBC. This 
> would require setting a system property for the class name of the lock (it 
> can be done in etc/system.properties) and changing the shell script to add 
> the needed jars to the boot classpath.

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

Reply via email to