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:14:57 UTC

[jira] [Created] (CAMEL-5804) Scala DSL does not support data formats same as Java DSL

Jason Chaffee created CAMEL-5804:
------------------------------------

             Summary: Scala DSL does not support data formats same as Java DSL
                 Key: CAMEL-5804
                 URL: https://issues.apache.org/jira/browse/CAMEL-5804
             Project: Camel
          Issue Type: Bug
          Components: camel-scala
    Affects Versions: 2.10.2
            Reporter: Jason Chaffee


It would be nice if the Scala DSL could support marshal() and unmarshal() as in the examples below:

{code}
from("direct:a").unmarshal().jaxb().to("direct:test")
{code}

{code}
from("direct:a").marshal().json().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-5804) Scala DSL does not support data formats same as Java DSL

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

Claus Ibsen updated CAMEL-5804:
-------------------------------

         Priority: Minor  (was: Major)
    Fix Version/s: 2.11.0
       Issue Type: Improvement  (was: Bug)

See the other JIRA ticket comment
                
> Scala DSL does not support data formats same as Java DSL
> --------------------------------------------------------
>
>                 Key: CAMEL-5804
>                 URL: https://issues.apache.org/jira/browse/CAMEL-5804
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-scala
>    Affects Versions: 2.10.2
>            Reporter: Jason Chaffee
>            Priority: Minor
>             Fix For: 2.11.0
>
>
> It would be nice if the Scala DSL could support marshal() and unmarshal() as in the examples below:
> {code}
> from("direct:a").unmarshal().jaxb().to("direct:test")
> {code}
> {code}
> from("direct:a").marshal().json().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-5804) Scala DSL does not support data formats same as Java DSL

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

Jason Chaffee commented on CAMEL-5804:
--------------------------------------

Part of the problem is that only the Java DSL and XML DSL are ever documented for these EIPs.  It took me a little bit of digging before I figured out how to get unmarshal/marshal to work properly in the Scala DSL.

I admit that I am a Scala newbie so I might not not what is the best practice for doing this in Scala, but it seems to be me there is no reason the Scala DSL cannot be fluent like the Java DSL, but maybe that is frowned upon in the Scala world.
                
> Scala DSL does not support data formats same as Java DSL
> --------------------------------------------------------
>
>                 Key: CAMEL-5804
>                 URL: https://issues.apache.org/jira/browse/CAMEL-5804
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-scala
>    Affects Versions: 2.10.2
>            Reporter: Jason Chaffee
>            Priority: Minor
>             Fix For: 2.11.0
>
>
> It would be nice if the Scala DSL could support marshal() and unmarshal() as in the examples below:
> {code}
> from("direct:a").unmarshal().jaxb().to("direct:test")
> {code}
> {code}
> from("direct:a").marshal().json().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