[ 
https://issues.apache.org/jira/browse/AMQ-5509?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14270169#comment-14270169
 ] 

Arthur Naseef commented on AMQ-5509:
------------------------------------

Using the code above to create a test program, I get the following reported via 
log4j:

{noformat}
2015-01-08 15:47:38,890 INFO  [com.artnaseef.RunBroker.main()] 
org.apache.activemq.store.SharedFileLocker - Database 
/tmp/amq5509/data/testAmq5509Broker/scheduler/lock is locked... waiting 10 
seconds for the database to be unlocked. Reason: java.io.IOException: Failed to 
create directory '/tmp/amq5509/data/testAmq5509Broker/scheduler'
{noformat}

Is a similar message not logged, or are different results expected?

> Broker quits silently when no access to activemq-data folder
> ------------------------------------------------------------
>
>                 Key: AMQ-5509
>                 URL: https://issues.apache.org/jira/browse/AMQ-5509
>             Project: ActiveMQ
>          Issue Type: Improvement
>          Components: Broker
>    Affects Versions: 1.5
>         Environment: Ubuntu 12.02
>            Reporter: N Gorisse
>            Priority: Trivial
>             Fix For: 5.10.1
>
>
> When I startup the broker by code, there is a silent exit when the folder 
> could not be accessed (by user rights). It's generally not pleasent behavior 
> when something doesn't work without saying why imhu. In any case it took us 
> several times an hour or two to figure out what was happening. Thanks for 
> fixing!
>               brokerService = new BrokerService();
>               brokerService.setBrokerName(brokerName);
>               brokerService.addConnector("tcp://" + host + ":" + port);
>               brokerService.setSchedulerSupport(true);
>               if (dataDirectory != null) {
>                       // In 5.10.0 this must be done before setting the 
> persistence
>                       // adapter...
>                       brokerService.setDataDirectory(dataDirectory);
>               }
>               // Allow JMX monitoring
>               brokerService.setUseJmx(true);
>               ManagementContext managementContext = new ManagementContext();
>               managementContext.setConnectorPort(port + 10000);
>               managementContext.setRmiServerPort(port + 20000);
>               brokerService.setManagementContext(managementContext);



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to