activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Arthur Naseef (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (AMQ-5509) Broker quits silently when no access to activemq-data folder
Date Tue, 20 Jan 2015 23:19:34 GMT

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

Arthur Naseef updated AMQ-5509:
-------------------------------
    Fix Version/s:     (was: 5.10.1)

> 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
>
> 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)

Mime
View raw message