[jira] Assigned: (CAMEL-1395) Refactor - All models classes xxxType renamed to xxxDefinition
[ https://issues.apache.org/activemq/browse/CAMEL-1395?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Claus Ibsen reassigned CAMEL-1395: -- Assignee: Hadrian Zbarcea (was: Claus Ibsen) Refactor - All models classes xxxType renamed to xxxDefinition -- Key: CAMEL-1395 URL: https://issues.apache.org/activemq/browse/CAMEL-1395 Project: Apache Camel Issue Type: Task Components: camel-core Reporter: Claus Ibsen Assignee: Hadrian Zbarcea Fix For: 2.0-M1 From James As an aside I wonder if one of these days we should refactor org.apache.camel.model.*Type to be *Definition as thats kinda what they are - the logical, design type definition of routes. For example the SplitterDefintion just defines how to create a Splitter, its not a Splitter (the Processor in the processor package). -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.
[jira] Commented: (CAMEL-1395) Refactor - All models classes xxxType renamed to xxxDefinition
[ https://issues.apache.org/activemq/browse/CAMEL-1395?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=50249#action_50249 ] Claus Ibsen commented on CAMEL-1395: Hadrian could you also rename ExceptionDefinition - OnExceptionDefinition AggregatorDefinition - AggregateDefinition DelayerDefinition - DelayDefinition ThrotterlDefinition - ThrottleDefinition ResequencerDefintion - ResequenceDefinition SplitterDefinition - SplitDefinition EnricherDefintion - EnrichDefinition Then they are also in line with the DSL name changes to use verbs for action. Refactor - All models classes xxxType renamed to xxxDefinition -- Key: CAMEL-1395 URL: https://issues.apache.org/activemq/browse/CAMEL-1395 Project: Apache Camel Issue Type: Task Components: camel-core Reporter: Claus Ibsen Assignee: Hadrian Zbarcea Fix For: 2.0-M1 From James As an aside I wonder if one of these days we should refactor org.apache.camel.model.*Type to be *Definition as thats kinda what they are - the logical, design type definition of routes. For example the SplitterDefintion just defines how to create a Splitter, its not a Splitter (the Processor in the processor package). -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.
[jira] Commented: (CAMEL-1395) Refactor - All models classes xxxType renamed to xxxDefinition
[ https://issues.apache.org/activemq/browse/CAMEL-1395?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=50250#action_50250 ] Claus Ibsen commented on CAMEL-1395: And we should consider the xxxRef to be xxxRefDefinition also. As they are all defintions of the model. And in fact I am wondering if xxxRef is a bad name, it should be without the Ref. But we should get a talk with James about this. Refactor - All models classes xxxType renamed to xxxDefinition -- Key: CAMEL-1395 URL: https://issues.apache.org/activemq/browse/CAMEL-1395 Project: Apache Camel Issue Type: Task Components: camel-core Reporter: Claus Ibsen Assignee: Hadrian Zbarcea Fix For: 2.0-M1 From James As an aside I wonder if one of these days we should refactor org.apache.camel.model.*Type to be *Definition as thats kinda what they are - the logical, design type definition of routes. For example the SplitterDefintion just defines how to create a Splitter, its not a Splitter (the Processor in the processor package). -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.
[jira] Assigned: (CAMEL-1376) wiretap() to be able to send an InOnly message exchange with the result of an InOut request without affecting the current message exchange
[ https://issues.apache.org/activemq/browse/CAMEL-1376?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Claus Ibsen reassigned CAMEL-1376: -- Assignee: Claus Ibsen wiretap() to be able to send an InOnly message exchange with the result of an InOut request without affecting the current message exchange -- Key: CAMEL-1376 URL: https://issues.apache.org/activemq/browse/CAMEL-1376 Project: Apache Camel Issue Type: Improvement Reporter: James Strachan Assignee: Claus Ibsen Fix For: 2.0.0 we should be able to do something like this... {code} from(jetty:http://localhost:8585/cxf/HelloWorld;) .to(http://localhost:8080/cxf/HelloWorld;) .wiretap(seda:cheese); {code} such that the *seda:cheese* gets the output of the HelloWorld service as an InOut - but the response is returned fine to the HTTP client. i.e. the presence of the wiretap() does not in any way affect the exchange - it appears to work exactly the same as {code} from(jetty:http://localhost:8585/cxf/HelloWorld;) .to(http://localhost:8080/cxf/HelloWorld;); {code} and any output of the seda:cheese does not affect the response to the HTTP client. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.
[jira] Updated: (CAMEL-1428) SftpConsumer : GenericFileRenameProcessStrategy - String index out of bounds
[ https://issues.apache.org/activemq/browse/CAMEL-1428?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Paddy Daly updated CAMEL-1428: -- Attachment: camel-error3.txt SftpConsumer : GenericFileRenameProcessStrategy - String index out of bounds Key: CAMEL-1428 URL: https://issues.apache.org/activemq/browse/CAMEL-1428 Project: Apache Camel Issue Type: Bug Components: camel-ftp Affects Versions: 2.0.0 Environment: Windows XP Reporter: Paddy Daly Assignee: Claus Ibsen Fix For: 2.0.0 Attachments: camel-error.txt, camel-error2.txt, camel-error3.txt While trying to consume a file via SFTP and using the moveExpression to move the file into a done folder a renameException is thrown. In GenericFile the relativeFileName reads something like the following. /incoming/test/file1.txt When it tries to call this code and exception is thrown because File.separator is '\' in a windows environment. String relative = relativeFileName.substring(0, relativeFileName.lastIndexOf(File.separator)); -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.
[jira] Work started: (CAMEL-1428) SftpConsumer : GenericFileRenameProcessStrategy - String index out of bounds
[ https://issues.apache.org/activemq/browse/CAMEL-1428?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Work on CAMEL-1428 started by Claus Ibsen. SftpConsumer : GenericFileRenameProcessStrategy - String index out of bounds Key: CAMEL-1428 URL: https://issues.apache.org/activemq/browse/CAMEL-1428 Project: Apache Camel Issue Type: Bug Components: camel-ftp Affects Versions: 2.0.0 Environment: Windows XP Reporter: Paddy Daly Assignee: Claus Ibsen Fix For: 2.0-M1 Attachments: camel-error.txt, camel-error2.txt, camel-error3.txt While trying to consume a file via SFTP and using the moveExpression to move the file into a done folder a renameException is thrown. In GenericFile the relativeFileName reads something like the following. /incoming/test/file1.txt When it tries to call this code and exception is thrown because File.separator is '\' in a windows environment. String relative = relativeFileName.substring(0, relativeFileName.lastIndexOf(File.separator)); -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.
Camel in Sonar
The Sonar guys were kind enough to add Camel to their public server. http://www.nabble.com/Re%3A-New-projects-in-public-sonar-instance--p22360333.html Take a peek at how well we do here http://nemo.sonar.codehaus.org/project/index/org.apache.camel:camel-parent -- Cheers, Jon http://janstey.blogspot.com/
Re: Camel in Sonar
On Fri, Mar 6, 2009 at 2:49 PM, Jon Anstey jans...@gmail.com wrote: The Sonar guys were kind enough to add Camel to their public server. http://www.nabble.com/Re%3A-New-projects-in-public-sonar-instance--p22360333.html Take a peek at how well we do here http://nemo.sonar.codehaus.org/project/index/org.apache.camel:camel-parent Very cool Jon. I was about to suggest if we could get that in house at fuse. Very cool. -- Cheers, Jon http://janstey.blogspot.com/ -- Claus Ibsen Apache Camel Committer Open Source Integration: http://fusesource.com Blog: http://davsclaus.blogspot.com/
Re: Camel in Sonar
Hi Could you add a link to it somewhere, there is an existing page where Gert added the links to public hudson something with developer On Fri, Mar 6, 2009 at 3:13 PM, Claus Ibsen claus.ib...@gmail.com wrote: On Fri, Mar 6, 2009 at 2:49 PM, Jon Anstey jans...@gmail.com wrote: The Sonar guys were kind enough to add Camel to their public server. http://www.nabble.com/Re%3A-New-projects-in-public-sonar-instance--p22360333.html Take a peek at how well we do here http://nemo.sonar.codehaus.org/project/index/org.apache.camel:camel-parent Very cool Jon. I was about to suggest if we could get that in house at fuse. Very cool. -- Cheers, Jon http://janstey.blogspot.com/ -- Claus Ibsen Apache Camel Committer Open Source Integration: http://fusesource.com Blog: http://davsclaus.blogspot.com/ -- Claus Ibsen Apache Camel Committer Open Source Integration: http://fusesource.com Blog: http://davsclaus.blogspot.com/
[jira] Commented: (CAMEL-1428) SftpConsumer : GenericFileRenameProcessStrategy - String index out of bounds
[ https://issues.apache.org/activemq/browse/CAMEL-1428?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=50271#action_50271 ] Claus Ibsen commented on CAMEL-1428: Paddy I am still working on this one as it leads me to do a minor refactor in the core to fix it better. SftpConsumer : GenericFileRenameProcessStrategy - String index out of bounds Key: CAMEL-1428 URL: https://issues.apache.org/activemq/browse/CAMEL-1428 Project: Apache Camel Issue Type: Bug Components: camel-ftp Affects Versions: 2.0.0 Environment: Windows XP Reporter: Paddy Daly Assignee: Claus Ibsen Fix For: 2.0-M1 Attachments: camel-error.txt, camel-error2.txt, camel-error3.txt While trying to consume a file via SFTP and using the moveExpression to move the file into a done folder a renameException is thrown. In GenericFile the relativeFileName reads something like the following. /incoming/test/file1.txt When it tries to call this code and exception is thrown because File.separator is '\' in a windows environment. String relative = relativeFileName.substring(0, relativeFileName.lastIndexOf(File.separator)); -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.
Re: Camel in Sonar
Added some info here http://cwiki.apache.org/confluence/display/CAMEL/Continuous+integration+builds On Fri, Mar 6, 2009 at 10:43 AM, Claus Ibsen claus.ib...@gmail.com wrote: Hi Could you add a link to it somewhere, there is an existing page where Gert added the links to public hudson something with developer On Fri, Mar 6, 2009 at 3:13 PM, Claus Ibsen claus.ib...@gmail.com wrote: On Fri, Mar 6, 2009 at 2:49 PM, Jon Anstey jans...@gmail.com wrote: The Sonar guys were kind enough to add Camel to their public server. http://www.nabble.com/Re%3A-New-projects-in-public-sonar-instance--p22360333.html Take a peek at how well we do here http://nemo.sonar.codehaus.org/project/index/org.apache.camel:camel-parent Very cool Jon. I was about to suggest if we could get that in house at fuse. Very cool. -- Cheers, Jon http://janstey.blogspot.com/ -- Claus Ibsen Apache Camel Committer Open Source Integration: http://fusesource.com Blog: http://davsclaus.blogspot.com/ -- Claus Ibsen Apache Camel Committer Open Source Integration: http://fusesource.com Blog: http://davsclaus.blogspot.com/ -- Cheers, Jon http://janstey.blogspot.com/
[jira] Created: (CAMEL-1431) camel-cxf and spring DSL does not work very well
camel-cxf and spring DSL does not work very well Key: CAMEL-1431 URL: https://issues.apache.org/activemq/browse/CAMEL-1431 Project: Apache Camel Issue Type: Sub-task Components: camel-cxf Affects Versions: 2.0-M1 Reporter: Charles Moulliard Hi, Camel-cxf and camel works very well when the routing is defined like this : public class ReportIncidentRoutes extends RouteBuilder { public void configure() throws Exception { // webservice response for OK OutputReportIncident OK = new OutputReportIncident(); OK.setCode(0); // endpoint to our CXF webservice String cxfEndpoint = cxf://http://localhost:8080/camel-example/incident; + ?serviceClass=org.apache.camel.example.reportincident.ReportIncidentEndpoint + wsdlURL=wsdl/report_incident.wsdl; // first part from the webservice - file backup from(cxfEndpoint) // we need to convert the CXF payload to InputReportIncident that FilenameGenerator and velocity expects .convertBodyTo(InputReportIncident.class) // return OK as response .transform(constant(OK)); } @ContextConfiguration public class ReportIncidentRoutesTest extends AbstractJUnit4SpringContextTests { private static final transient Log LOG = LogFactory.getLog(ReportIncidentRoutesTest.class); @Autowired protected CamelContext camelContext; // should be the same address as we have in our route private final static String ADDRESS = http://localhost:8080/camel-example/incident;; //private final static QName endpointName = new QName(http://reportincident.example.camel.apache.org;, ReportIncidentEndpoint); protected static ReportIncidentEndpoint createCXFClient() { // we use CXF to create a client for us as its easier than JAXWS and works JaxWsProxyFactoryBean factory = new JaxWsProxyFactoryBean(); factory.setServiceClass(ReportIncidentEndpoint.class); factory.setAddress(ADDRESS); //factory.setEndpointName(endpointName); return (ReportIncidentEndpoint) factory.create(); } @Test public void testRendportIncident() throws Exception { assertNotNull(camelContext); // create input parameter InputReportIncident input = new InputReportIncident(); input.setIncidentId(123); input.setIncidentDate(2008-08-18); input.setGivenName(Claus); input.setFamilyName(Ibsen); input.setSummary(Bla); input.setDetails(Bla bla); input.setEmail(davscl...@apache.org); input.setPhone(0045 2962 7576); // create the webservice client and send the request ReportIncidentEndpoint client = createCXFClient(); OutputReportIncident out = client.reportIncident(input); // assert we got a OK back assertEquals(0, out.getCode()); } } but not when the routing is defined in spring DSL ?xml version=1.0 encoding=UTF-8? beans xmlns=http://www.springframework.org/schema/beans; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xmlns:camel=http://camel.apache.org/schema/spring; xmlns:cxf=http://camel.apache.org/schema/cxf; xsi:schemaLocation= http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd http://camel.apache.org/schema/osgi http://camel.apache.org/schema/osgi/camel-osgi.xsd http://camel.apache.org/schema/spring http://camel.apache.org/schema/spring/camel-spring.xsd http://camel.apache.org/schema/cxf http://camel.apache.org/schema/cxf/camel-cxf.xsd; bean id=webService class=org.apache.camel.example.reportincident.beans.WebService / bean id=OK class=org.apache.camel.example.reportincident.OutputReportIncident property name=code value=0/ /bean !-- webservice endpoint -- cxf:cxfEndpoint id=reportIncident address=http://localhost:8080/camel-example/incident; wsdlURL=wsdl/report_incident.wsdl serviceClass=org.apache.camel.example.reportincident.ReportIncidentEndpoint xmlns:s=http://reportincident.example.camel.apache.org; /cxf:cxfEndpoint camelContext trace=true xmlns=http://camel.apache.org/schema/osgi; camel:packageorg.apache.camel.example.reportincident.routing/camel:package !-- CXF route -- camel:route camel:from uri=cxf:bean:reportIncident / camel:convertBodyTo
[jira] Commented: (CAMEL-1432) Amazon SQS Component
[ https://issues.apache.org/activemq/browse/CAMEL-1432?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=50276#action_50276 ] Hadrian Zbarcea commented on CAMEL-1432: Great idea roberto, and thanks for the contribution. I wonder though how this could be unit tested as one needs an account with amazon. Amazon SQS Component Key: CAMEL-1432 URL: https://issues.apache.org/activemq/browse/CAMEL-1432 Project: Apache Camel Issue Type: New Feature Environment: All Reporter: roberto rojas Priority: Minor The creation of an Amazon SQS component that could be used as from/to endpoint for routes. This component could be used in a following fashion: route from uri=file:data-in / convertBodyTo type=java.lang.String / to uri=sqs:sqsProducer?accessId=...secretKey=...queueName=dataQueue / /route route from uri=sqs:sqsConsumer?accessId=...amp;secretKey=...amp;queueName=dataQueue / to uri=uri=file:data-out / /route The provided patch could be used as a starting point for such component. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.
[jira] Commented: (CAMEL-1432) Amazon SQS Component
[ https://issues.apache.org/activemq/browse/CAMEL-1432?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=50277#action_50277 ] roberto rojas commented on CAMEL-1432: -- @ Hadrian That's a great question. I'll take a look at what the Typica API is doing to see if we can somehow mock it. Amazon SQS Component Key: CAMEL-1432 URL: https://issues.apache.org/activemq/browse/CAMEL-1432 Project: Apache Camel Issue Type: New Feature Environment: All Reporter: roberto rojas Priority: Minor The creation of an Amazon SQS component that could be used as from/to endpoint for routes. This component could be used in a following fashion: route from uri=file:data-in / convertBodyTo type=java.lang.String / to uri=sqs:sqsProducer?accessId=...secretKey=...queueName=dataQueue / /route route from uri=sqs:sqsConsumer?accessId=...amp;secretKey=...amp;queueName=dataQueue / to uri=uri=file:data-out / /route The provided patch could be used as a starting point for such component. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.
[jira] Updated: (CAMEL-1430) Camel VFS - Remove feature to consume a file directly, it just complicates matter and is very seldom used
[ https://issues.apache.org/activemq/browse/CAMEL-1430?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Claus Ibsen updated CAMEL-1430: --- Fix Version/s: 2.0.0 Camel VFS - Remove feature to consume a file directly, it just complicates matter and is very seldom used - Key: CAMEL-1430 URL: https://issues.apache.org/activemq/browse/CAMEL-1430 Project: Apache Camel Issue Type: Task Components: camel-core Affects Versions: 2.0.0 Reporter: Claus Ibsen Assignee: Claus Ibsen Fix For: 2.0-M1, 2.0.0 When configuring an endpoint to consume from files/ftp etc. it should only support a starting directory. Not file!!! You can still consume a single file by combining the starting folder and a regex to match the single file only. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.
[jira] Resolved: (CAMEL-1430) Camel VFS - Remove feature to consume a file directly, it just complicates matter and is very seldom used
[ https://issues.apache.org/activemq/browse/CAMEL-1430?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Claus Ibsen resolved CAMEL-1430. Resolution: Fixed Committed revision 750962. Camel VFS - Remove feature to consume a file directly, it just complicates matter and is very seldom used - Key: CAMEL-1430 URL: https://issues.apache.org/activemq/browse/CAMEL-1430 Project: Apache Camel Issue Type: Task Components: camel-core Affects Versions: 2.0.0 Reporter: Claus Ibsen Assignee: Claus Ibsen Fix For: 2.0-M1 When configuring an endpoint to consume from files/ftp etc. it should only support a starting directory. Not file!!! You can still consume a single file by combining the starting folder and a regex to match the single file only. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.
[jira] Commented: (CAMEL-1428) SftpConsumer : GenericFileRenameProcessStrategy - String index out of bounds
[ https://issues.apache.org/activemq/browse/CAMEL-1428?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=50279#action_50279 ] Claus Ibsen commented on CAMEL-1428: Paddy can you try again? I have just committed a fix. I had to do some more work to get it properly fixed. Now the code that handles/computes file names, and rename file names etc. is much cleaner and relies a bit more on JDK. SftpConsumer : GenericFileRenameProcessStrategy - String index out of bounds Key: CAMEL-1428 URL: https://issues.apache.org/activemq/browse/CAMEL-1428 Project: Apache Camel Issue Type: Bug Components: camel-ftp Affects Versions: 2.0.0 Environment: Windows XP Reporter: Paddy Daly Assignee: Claus Ibsen Fix For: 2.0-M1 Attachments: camel-error.txt, camel-error2.txt, camel-error3.txt While trying to consume a file via SFTP and using the moveExpression to move the file into a done folder a renameException is thrown. In GenericFile the relativeFileName reads something like the following. /incoming/test/file1.txt When it tries to call this code and exception is thrown because File.separator is '\' in a windows environment. String relative = relativeFileName.substring(0, relativeFileName.lastIndexOf(File.separator)); -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.
[jira] Updated: (CAMEL-1428) SftpConsumer : GenericFileRenameProcessStrategy - String index out of bounds
[ https://issues.apache.org/activemq/browse/CAMEL-1428?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Paddy Daly updated CAMEL-1428: -- Attachment: camel-error4.txt SftpConsumer : GenericFileRenameProcessStrategy - String index out of bounds Key: CAMEL-1428 URL: https://issues.apache.org/activemq/browse/CAMEL-1428 Project: Apache Camel Issue Type: Bug Components: camel-ftp Affects Versions: 2.0.0 Environment: Windows XP Reporter: Paddy Daly Assignee: Claus Ibsen Fix For: 2.0-M1 Attachments: camel-error.txt, camel-error2.txt, camel-error3.txt, camel-error4.txt While trying to consume a file via SFTP and using the moveExpression to move the file into a done folder a renameException is thrown. In GenericFile the relativeFileName reads something like the following. /incoming/test/file1.txt When it tries to call this code and exception is thrown because File.separator is '\' in a windows environment. String relative = relativeFileName.substring(0, relativeFileName.lastIndexOf(File.separator)); -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.
[jira] Created: (CAMEL-1433) Camel VFS - The 5 options for include/exclude pre/postfix + regex should be combined into 2 regex, one for include and one for exclude
Camel VFS - The 5 options for include/exclude pre/postfix + regex should be combined into 2 regex, one for include and one for exclude -- Key: CAMEL-1433 URL: https://issues.apache.org/activemq/browse/CAMEL-1433 Project: Apache Camel Issue Type: Improvement Components: camel-core Affects Versions: 2.0.0 Reporter: Claus Ibsen Assignee: Claus Ibsen Priority: Minor Fix For: 2.0.0 Reducing 5 options to 2 options makes it easier to work with. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.