Issue Details (XML | Word | Printable)

Key: AMQ-950
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Minor Minor
Assignee: Unassigned
Reporter: Renaud Bruyeron
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
ActiveMQ

createConnector="false" has no effect on Tiger

Created: 02/Oct/06 05:11 AM   Updated: 03/Oct/06 03:12 AM
Return to search
Component/s: Broker
Affects Version/s: 4.1.0
Fix Version/s: 4.1.0

Time Tracking:
Not Specified

Environment: JDK 1.5.0_08


 Description  « Hide

On Tiger, activemq always creates a rmi connector on port 1099 no matter what I do with -Djavax.management... and <managementContext/>
In particular, setting createConnector="false" should prevent AMQ from setting up its own connector, but it does not.

The problem is in the findMBeanServer() method:
if (result == null && createMBeanServer) { result = createMBeanServer(); }
else { createConnector(result); }

result is not null on Tiger with useJmx="true", and createConnector is not protected by if(createConnector) like it is on the non-Tiger flow.
The fix (I think) is simply to do this:
if (result == null && createMBeanServer) { result = createMBeanServer(); } }
else {
if(createConnector){ createConnector(result); }
}



 All   Comments   Work Log   Change History   Subversion Commits   FishEye   Crucible      Sort Order: Ascending order - Click to sort in descending order
James Strachan added a comment - 03/Oct/06 01:37 AM
Patch applied - many thanks Renaud.

BTW could you double check my version of your patch works - I only create a connector if result != null and createConnector is true.


James Strachan made changes - 03/Oct/06 01:37 AM
Field Original Value New Value
Resolution Fixed [ 1 ]
Status Open [ 1 ] Resolved [ 5 ]
Renaud Bruyeron added a comment - 03/Oct/06 02:59 AM

Hi James,

this looks correct to me, however I can't play with the latest 4.1 snapshots because they break with servicemix-3.0 final
(something wrong with jencks and the RA). It broke in the last 3 weeks (snapshot from 20060830 works).


Renaud Bruyeron added a comment - 03/Oct/06 03:12 AM

me again,

sorry, I meant to say that I plan to look into this issue with the latest snapshots - I don't have time right now but it is on my todo to provide more info on the problem I am seeing