Sorry Pedro, I can't think off hand of any reason why it would truncate the
first character, I've never ran into that problem and am pretty new with
that BC/SE myself!


Pedro Araújo wrote:
> 
> thank you for the explanation,
> 
> my scenario is very simple, i dont have any transformation:
> 
> Client <-> CXF-BC (consumer) <-> CXF-SE
> 
> my CXF-BC xbean:
> 
> <beans xmlns="http://www.springframework.org/schema/beans";
>        xmlns:cxfbc="http://servicemix.apache.org/cxfbc/1.0";
>        xmlns:xsi="http://http://www.w3.org/2001/XMLSchema-instance";
>        xmlns:teste="http://teste/CP/";
>        xsi:schemaLocation="http://servicemix.apache.org/cxfbc/1.0
> http://servicemix.apache.org/schema/servicemix-cxfbc-3.2.3.xsd
> http://www.springframework.org/schema/beans
> http://www.springframework.org/schema/beans/spring-beans-2.0.xsd";>
>                                   
> <cxfbc:consumer wsdl="classpath:TesteServiceImpl.wsdl"
>   endpoint="TesteServiceImplPort"
>   service="teste:TesteServiceImplService"
>   targetEndpoint="TesteServiceImplPort"
>   targetService="teste:TesteServiceImplService"
>   targetInterface="teste:TesteServiceImpl" />
> </beans>
> 
> 
> 
> Brian Taylor wrote:
>> 
>> That statement 'Unable to inject ComponentContext' is not an error...that
>> method is not required to be implemented. The statement is there to
>> remind you that it was not implemented. We implement that method if the
>> service needs access to that object (ComponentContext).
>> 
>> Do you have output filters set up in the CXF BC that are mucking with the
>> output? Are you performing any translation between the CXF SE and CXF BC
>> by a Translation/Transformation SE such as Saxon SE?
>> 
>> 
>> Pedro Araújo wrote:
>>> 
>>> thank you Brian, the message disappeared :)
>>> 
>>> but what's the difference? The WS response it's the same with or without
>>> this code... when i invoke the "number" method with value "10" the WS
>>> responds "0" :\ 
>>> 
>>> I'm using CXF-BC.
>>> 
>>> Regards,
>>> 
>>> Pedro Araújo
>>> 
>>> 
>>> Brian Taylor wrote:
>>>> 
>>>> Would look like this:
>>>> 
>>>> @WebService(targetNamespace = "http://teste/CP/";) 
>>>> public class TesteServiceImpl implements TesteService { 
>>>>         
>>>>         private ComponentContext ctx;
>>>> 
>>>>         @WebMethod 
>>>>         public int number(int number) { 
>>>>                 System.out.println( " ********* TesteServiceImpl ->
>>>> number: "+number + "**"); 
>>>>                 return number; 
>>>>         } 
>>>>        
>>>>         public void setContext(ComponentContext ctx) {
>>>>             this.ctx = ctx;   
>>>>         }
>>>> 
>>>> } 
>>>> 
>>>> You may want to place your annotations in the TesteService interface
>>>> (and do not place setContext() in it) so that you don't have to
>>>> explicitly mark setContext() in TesteServiceImpl as a non-operation
>>>> considering it's public.
>>>> 
>>>> 
>>>> Pedro Araújo wrote:
>>>>> 
>>>>> Hi all,
>>>>> 
>>>>> I'm using CXF-SE to expose a Web Service in SM 3.3.
>>>>> When i'm deploying it i get this message:
>>>>> 
>>>>> 
>>>>> DEBUG - CxfSeComponent - Unable to inject ComponentContext:
>>>>> pedro.pt.cxfSE.TesteServiceImpl.setContext(javax.jbi.component.ComponentContext)
>>>>> 
>>>>> it's a normal message or i'm doing something wrong?
>>>>> 
>>>>> my xbean:
>>>>> 
>>>>> <cxfse:endpoint>
>>>>>    <cxfse:pojo>
>>>>>       <bean class="pedro.pt.cxfSE.TesteServiceImpl"/>
>>>>>    </cxfse:pojo>
>>>>> </cxfse:endpoint>
>>>>> 
>>>>> 
>>>>> my TesteServiceImpl Class: 
>>>>> 
>>>>> @WebService(targetNamespace = "http://teste/CP/";)
>>>>> public class TesteServiceImpl implements TesteService {
>>>>>   
>>>>>   @WebMethod
>>>>>   public int number(int number) {
>>>>>           System.out.println( " ********* TesteServiceImpl -> number: 
>>>>> "+number
>>>>> + "**");
>>>>>           return number;
>>>>>   }
>>>>> }
>>>>> 
>>>>> Thank you,
>>>>> 
>>>>> Pedro Araújo
>>>>> 
>>>>> 
>>>>> 
>>>> 
>>>> 
>>> 
>>> 
>> 
>> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Unable-to-inject-ComponentContext-tp25366499p25387065.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Reply via email to