cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Liu (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CXF-3473) Thread issue in CXF LocalConduit and LocalDestination
Date Thu, 05 May 2011 01:15:03 GMT

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

David Liu commented on CXF-3473:
--------------------------------

Thanks Willem.

David

> Thread issue in CXF LocalConduit and LocalDestination
> -----------------------------------------------------
>
>                 Key: CXF-3473
>                 URL: https://issues.apache.org/jira/browse/CXF-3473
>             Project: CXF
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 2.2, 2.4
>            Reporter: David Liu
>            Assignee: Willem Jiang
>             Fix For: 2.4.1
>
>
>   In CXF's LocalConduit and LocalDestination, it always creates a new Thread to process
Request message and Response message. It will cause performance issue if we use Local transport
for internal message routing.
>   Can we use Executor instead of creating thread? thanks.
> In LocalDestination.java:
> {code}
>     final Runnable receiver = new Runnable() {
>         public void run() {                                    
>             if (exchange != null) {
>                 exchange.setInMessage(m);
>             }
>             conduit.getMessageObserver().onMessage(m);
>         }
>     };
>     
>     new Thread(receiver).start();
> {code} 
> In LocalConduit:
> {code}
>    final Runnable receiver = new Runnable() {
>        public void run() {
>            ExchangeImpl ex = new ExchangeImpl();
>            ex.setInMessage(inMsg);
>            ex.put(IN_EXCHANGE, exchange);
>            destination.getMessageObserver().onMessage(inMsg);
>        }
>    };
>    new Thread(receiver).start();
> {code} 
> David

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message