OutBinding doesn't allow for DeliveryChannel.accept()
-----------------------------------------------------

                 Key: SM-828
                 URL: https://issues.apache.org/activemq/browse/SM-828
             Project: ServiceMix
          Issue Type: Bug
          Components: servicemix-core
    Affects Versions: 3.0
         Environment: Windows XP
ServiceMix 3.0
JDK 1.5
            Reporter: James Lorenzen
            Priority: Blocker
         Attachments: OutBinding.java

The incorrect use of AtomicBoolean in OutBinding prevents components from ever 
receiving a new MessageExchange through the DeliveryChannel accept() method.
The variable stop gets initialized with false. The start method sets it to 
true. The run method checks the value and only calls accept if this statement 
is true:
while(!stop.get()).

Since the value of stop is true, the component never calls 
DeliveryChannel.accept().

This bug has been found because we attempted to deploy our component, who 
extends OutBinding, in OpenESB/Glassfish. Our component was never receiving the 
message and this is how we discovered the bug.

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