[ 
https://issues.apache.org/activemq/browse/SM-939?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_39585
 ] 

Freeman Fang commented on SM-939:
---------------------------------

Hi Nodet,
Right, it's not good in this patch
The reason I publish the endpoint in process method is that until now the 
DeliveryChannal which we pass to JBITransportFactory  support accept accept 
method, it should be DeliverChannlImpl
But in start and validate method, the DeliveryChannel is EndpointPointDelivery 
which not support accept method.

After provide the patch, I realize this problem so now I only pulish the 
endpoint once when the first JBI exchange is received.
Now the code is like 
if (!isPublished) {
                isPublished = true;
                address = "jbi://" + ID_GENERATOR.generateSanitizedId();
                endpoint.publish(address);
......

Is it Ok?

Best Regards

Freeman



> CXF based Service Engine and Bnding Component
> ---------------------------------------------
>
>                 Key: SM-939
>                 URL: https://issues.apache.org/activemq/browse/SM-939
>             Project: ServiceMix
>          Issue Type: New Feature
>            Reporter: Guillaume Nodet
>            Assignee: Freeman Fang
>            Priority: Critical
>             Fix For: 3.2
>
>         Attachments: patch.txt, patch0627.txt, patch0702.txt
>
>


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