You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by "Jean-Baptiste Onofré (JIRA)" <ji...@apache.org> on 2011/08/03 11:26:27 UTC

[jira] [Created] (CAMEL-4301) cxfEndpoint serviceClass attribute should accept an interface or an anstract class

cxfEndpoint serviceClass attribute should accept an interface or an anstract class
----------------------------------------------------------------------------------

                 Key: CAMEL-4301
                 URL: https://issues.apache.org/jira/browse/CAMEL-4301
             Project: Camel
          Issue Type: Improvement
          Components: camel-cxf
            Reporter: Jean-Baptiste Onofré


If you define a route looking like:

    <cxf:cxfEndpoint id="wsBean"
                     serviceClass="net.nanthrax.test.camel.cxf.WSBean"
                     address="http://0.0.0.0:9090/test"/>

    <camelContext xmlns="http://camel.apache.org/schema/spring">
        <route>
            <from uri="cxf:bean:wsBean"/>
            <to uri="direct:bean"/>
        </route>
        <route>
            <from uri="direct:bean"/>
            <to uri="serviceBean"/>
        </route>
    </camelContext>

the methods of the CXF endpoint wsBean are just facade (the route doesn't use the implementation of the wsBean method, and map the method definition to the serviceBean target bean).

It could be confusing for the users: they have to define methods body but it's not used :)

It could be fine to use directly an interface or an abstract class in serviceClass.

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

       

[jira] [Resolved] (CAMEL-4301) cxfEndpoint serviceClass attribute should accept an interface or an anstract class

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

Jean-Baptiste Onofré resolved CAMEL-4301.
-----------------------------------------

    Resolution: Not A Problem

> cxfEndpoint serviceClass attribute should accept an interface or an anstract class
> ----------------------------------------------------------------------------------
>
>                 Key: CAMEL-4301
>                 URL: https://issues.apache.org/jira/browse/CAMEL-4301
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-cxf
>            Reporter: Jean-Baptiste Onofré
>
> If you define a route looking like:
>     <cxf:cxfEndpoint id="wsBean"
>                      serviceClass="net.nanthrax.test.camel.cxf.WSBean"
>                      address="http://0.0.0.0:9090/test"/>
>     <camelContext xmlns="http://camel.apache.org/schema/spring">
>         <route>
>             <from uri="cxf:bean:wsBean"/>
>             <to uri="direct:bean"/>
>         </route>
>         <route>
>             <from uri="direct:bean"/>
>             <to uri="serviceBean"/>
>         </route>
>     </camelContext>
> the methods of the CXF endpoint wsBean are just facade (the route doesn't use the implementation of the wsBean method, and map the method definition to the serviceBean target bean).
> It could be confusing for the users: they have to define methods body but it's not used :)
> It could be fine to use directly an interface or an abstract class in serviceClass.

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

       

[jira] [Commented] (CAMEL-4301) cxfEndpoint serviceClass attribute should accept an interface or an anstract class

Posted by "Jean-Baptiste Onofré (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CAMEL-4301?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13078668#comment-13078668 ] 

Jean-Baptiste Onofré commented on CAMEL-4301:
---------------------------------------------

I just tried and it's already the case. serviceClass could contain an interface with the @WebService annotation.
I check the wiki page of camel-cxf and update it if required.

> cxfEndpoint serviceClass attribute should accept an interface or an anstract class
> ----------------------------------------------------------------------------------
>
>                 Key: CAMEL-4301
>                 URL: https://issues.apache.org/jira/browse/CAMEL-4301
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-cxf
>            Reporter: Jean-Baptiste Onofré
>
> If you define a route looking like:
>     <cxf:cxfEndpoint id="wsBean"
>                      serviceClass="net.nanthrax.test.camel.cxf.WSBean"
>                      address="http://0.0.0.0:9090/test"/>
>     <camelContext xmlns="http://camel.apache.org/schema/spring">
>         <route>
>             <from uri="cxf:bean:wsBean"/>
>             <to uri="direct:bean"/>
>         </route>
>         <route>
>             <from uri="direct:bean"/>
>             <to uri="serviceBean"/>
>         </route>
>     </camelContext>
> the methods of the CXF endpoint wsBean are just facade (the route doesn't use the implementation of the wsBean method, and map the method definition to the serviceBean target bean).
> It could be confusing for the users: they have to define methods body but it's not used :)
> It could be fine to use directly an interface or an abstract class in serviceClass.

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