Return-Path: Delivered-To: apmail-servicemix-dev-archive@www.apache.org Received: (qmail 71944 invoked from network); 4 Feb 2008 23:04:00 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 4 Feb 2008 23:04:00 -0000 Received: (qmail 60733 invoked by uid 500); 4 Feb 2008 23:03:51 -0000 Delivered-To: apmail-servicemix-dev-archive@servicemix.apache.org Received: (qmail 60719 invoked by uid 500); 4 Feb 2008 23:03:51 -0000 Mailing-List: contact dev-help@servicemix.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@servicemix.apache.org Delivered-To: mailing list dev@servicemix.apache.org Received: (qmail 60699 invoked by uid 99); 4 Feb 2008 23:03:51 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 04 Feb 2008 15:03:51 -0800 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 04 Feb 2008 23:03:31 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 4DBBB714070 for ; Mon, 4 Feb 2008 15:03:38 -0800 (PST) Message-ID: <21762823.1202166218314.JavaMail.jira@brutus> Date: Mon, 4 Feb 2008 15:03:38 -0800 (PST) From: "Bruce Snyder (JIRA)" To: dev@servicemix.apache.org Subject: [jira] Resolved: (SM-1130) FtpPoller should offer configurable targetOperation MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/activemq/browse/SM-1130?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Bruce Snyder resolved SM-1130. ------------------------------ Resolution: Fixed Fix Version/s: 3.3 3.2.2 Committed to the trunk (3.3) via [revision 618478 |http://svn.apache.org/viewvc?rev=618478&view=rev]. Committed to the 3.2 branch via [revision 618485|http://svn.apache.org/viewvc?rev=618485&view=rev]. > FtpPoller should offer configurable targetOperation > --------------------------------------------------- > > Key: SM-1130 > URL: https://issues.apache.org/activemq/browse/SM-1130 > Project: ServiceMix > Issue Type: Improvement > Components: servicemix-ftp > Affects Versions: 3.1.2 > Reporter: Philippe Pinheiro > Assignee: Bruce Snyder > Fix For: 3.2.2, 3.3 > > Attachments: SM1130_patch.txt, SMX-1130.txt > > > Same issue as for FilePoller : SM-1115 > FtpPoller currently does not use a target operation when sending a message to a target service. The operation must be set, for example, when sending a file to a Ode SU. If not set, Ode throws sort of NPE complaining operation is not set. > FtpPoller should offer a targetOperation property configurable via XBeans. > This can be achieved by adding a targetOperation property > ... > private QName targetOperation = null; > ... > public QName getTargetOperation() { return targetOperation; } > public void setTargetOperation(QName targetOperation) { this.targetOperation = targetOperation; } > ... > protected void processFile(File aFile) throws Exception { ... exchange.setInMessage(message); if (getTargetOperation() != null) exchange.setOperation(getTargetOperation()); // <--- NEW marshaler.readMessage(exchange, message, in, name); ... } > Then, the SU may be configured properly as follows: > service="proj:inbox" > endpoint="inbox" > targetService="process:receive" > targetOperation="process:receive" > ... > > In case the attribute is not set in the xbean.xml, the current behaviour is not changed. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.