You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Jason Chaffee (JIRA)" <ji...@apache.org> on 2012/11/18 23:10:58 UTC

[jira] [Created] (CAMEL-5803) Scala DSL splitter does not support tokenizeXML

Jason Chaffee created CAMEL-5803:
------------------------------------

             Summary: Scala DSL splitter does not support tokenizeXML
                 Key: CAMEL-5803
                 URL: https://issues.apache.org/jira/browse/CAMEL-5803
             Project: Camel
          Issue Type: Bug
          Components: camel-scala
    Affects Versions: 2.10.2
            Reporter: Jason Chaffee
            Priority: Blocker


The Scala DSL does not properly support the splitter for tokenize and tokenizeXML.  The DSL should be modified to allow this:

{code}
from("direct:a").split().tokenizeXML("order").parallelProcessing().streaming().to("direct:test")
{code}

or this:

{code}
from("direct:a").split().tokenize("\n").parallelProcessing().streaming().to("direct:test")
{code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Resolved] (CAMEL-5803) Scala DSL splitter does not support tokenizeXML

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CAMEL-5803?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Claus Ibsen resolved CAMEL-5803.
--------------------------------

       Resolution: Fixed
    Fix Version/s: 2.11.0
                   2.10.3
         Assignee: Claus Ibsen
    
> Scala DSL splitter does not support tokenizeXML
> -----------------------------------------------
>
>                 Key: CAMEL-5803
>                 URL: https://issues.apache.org/jira/browse/CAMEL-5803
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-scala
>    Affects Versions: 2.10.2
>            Reporter: Jason Chaffee
>            Assignee: Claus Ibsen
>            Priority: Minor
>             Fix For: 2.10.3, 2.11.0
>
>
> The Scala DSL does not properly support the splitter for tokenize and tokenizeXML.  The DSL should be modified to allow this:
> {code}
> from("direct:a").split().tokenizeXML("order").parallelProcessing().streaming().to("direct:test")
> {code}
> or this:
> {code}
> from("direct:a").split().tokenize("\n").parallelProcessing().streaming().to("direct:test")
> {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (CAMEL-5803) Scala DSL splitter does not support tokenizeXML

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CAMEL-5803?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Claus Ibsen updated CAMEL-5803:
-------------------------------

      Priority: Major  (was: Blocker)
    Issue Type: Improvement  (was: Bug)

The Scala DSL is independent from Java DSL, and there will be constructs that are not 100% identical between them.

The splitter ought to support a generic Expression, and for that you can use the TokenizeLanguage from camel-core to create an expression that is like the Java DSL tokenizeXML.


                
> Scala DSL splitter does not support tokenizeXML
> -----------------------------------------------
>
>                 Key: CAMEL-5803
>                 URL: https://issues.apache.org/jira/browse/CAMEL-5803
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-scala
>    Affects Versions: 2.10.2
>            Reporter: Jason Chaffee
>
> The Scala DSL does not properly support the splitter for tokenize and tokenizeXML.  The DSL should be modified to allow this:
> {code}
> from("direct:a").split().tokenizeXML("order").parallelProcessing().streaming().to("direct:test")
> {code}
> or this:
> {code}
> from("direct:a").split().tokenize("\n").parallelProcessing().streaming().to("direct:test")
> {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (CAMEL-5803) Scala DSL splitter does not support tokenizeXML

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CAMEL-5803?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Claus Ibsen updated CAMEL-5803:
-------------------------------

    Priority: Minor  (was: Major)
    
> Scala DSL splitter does not support tokenizeXML
> -----------------------------------------------
>
>                 Key: CAMEL-5803
>                 URL: https://issues.apache.org/jira/browse/CAMEL-5803
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-scala
>    Affects Versions: 2.10.2
>            Reporter: Jason Chaffee
>            Priority: Minor
>
> The Scala DSL does not properly support the splitter for tokenize and tokenizeXML.  The DSL should be modified to allow this:
> {code}
> from("direct:a").split().tokenizeXML("order").parallelProcessing().streaming().to("direct:test")
> {code}
> or this:
> {code}
> from("direct:a").split().tokenize("\n").parallelProcessing().streaming().to("direct:test")
> {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (CAMEL-5803) Scala DSL splitter does not support tokenizeXML

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CAMEL-5803?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13500160#comment-13500160 ] 

Claus Ibsen commented on CAMEL-5803:
------------------------------------

I added support for using tokenizeXML as shown below
{code}
    new RouteBuilder {
       "direct:b" ==> {
         split(tokenizeXML("person")) {
           to("log:b")
           to("mock:b")
         }
       }
    }
{code}
                
> Scala DSL splitter does not support tokenizeXML
> -----------------------------------------------
>
>                 Key: CAMEL-5803
>                 URL: https://issues.apache.org/jira/browse/CAMEL-5803
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-scala
>    Affects Versions: 2.10.2
>            Reporter: Jason Chaffee
>            Priority: Minor
>             Fix For: 2.10.3, 2.11.0
>
>
> The Scala DSL does not properly support the splitter for tokenize and tokenizeXML.  The DSL should be modified to allow this:
> {code}
> from("direct:a").split().tokenizeXML("order").parallelProcessing().streaming().to("direct:test")
> {code}
> or this:
> {code}
> from("direct:a").split().tokenize("\n").parallelProcessing().streaming().to("direct:test")
> {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira