You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by Brian Taylor <br...@briantaylor.us> on 2009/08/06 16:48:18 UTC
CXF-SE: Public Method Exclusion During WSDL Generation
Hello,
I'm trying to deploy an SU in the CXF-SE and am getting a JAXB error stating
that JAXB can not parse the ComponentContext Interface. I added the
@WebMethod(exclude=true) annotation (as below) to let it know not to make it
a web service operation but it appears to be ignoring it. This is a JSR181
annotation no? I need this to work as I use the JBI ComponentContext to get
the Context to load the JNDI reference to the DataSource.
@WebMethod(exclude=true)
public void setContext(ComponentContext componentContext) {
this.componentContext = componentContext;
}
Respectfully,
Brian
--
View this message in context: http://www.nabble.com/CXF-SE%3A-Public-Method-Exclusion-During-WSDL-Generation-tp24848019p24848019.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.
Re: CXF-SE: Public Method Exclusion During WSDL Generation
Posted by Brian Taylor <br...@briantaylor.us>.
Thanks for the offer Freeman but I decided to stop using ComponentContext and
instead use Spring's ApplicationContext.
Brian
Freeman Fang wrote:
>
> Hi,
>
> Add @WebMethod(exclude=true) should work.
>
> Could you append your xbean.xml and all your SEI/Impl class here if
> you see problem?
>
>
> Freeman
> On 2009-8-6, at 下午10:48, Brian Taylor wrote:
>
>>
>> Hello,
>>
>> I'm trying to deploy an SU in the CXF-SE and am getting a JAXB error
>> stating
>> that JAXB can not parse the ComponentContext Interface. I added the
>> @WebMethod(exclude=true) annotation (as below) to let it know not to
>> make it
>> a web service operation but it appears to be ignoring it. This is a
>> JSR181
>> annotation no? I need this to work as I use the JBI ComponentContext
>> to get
>> the Context to load the JNDI reference to the DataSource.
>>
>> @WebMethod(exclude=true)
>> public void setContext(ComponentContext componentContext) {
>> this.componentContext = componentContext;
>> }
>>
>> Respectfully,
>> Brian
>> --
>> View this message in context:
>> http://www.nabble.com/CXF-SE%3A-Public-Method-Exclusion-During-WSDL-Generation-tp24848019p24848019.html
>> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>>
>
>
> --
> Freeman Fang
> ------------------------
> Open Source SOA: http://fusesource.com
>
>
>
--
View this message in context: http://www.nabble.com/CXF-SE%3A-Public-Method-Exclusion-During-WSDL-Generation-tp24848019p24902464.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.
Re: CXF-SE: Public Method Exclusion During WSDL Generation
Posted by Freeman Fang <fr...@gmail.com>.
Hi,
Add @WebMethod(exclude=true) should work.
Could you append your xbean.xml and all your SEI/Impl class here if
you see problem?
Freeman
On 2009-8-6, at 下午10:48, Brian Taylor wrote:
>
> Hello,
>
> I'm trying to deploy an SU in the CXF-SE and am getting a JAXB error
> stating
> that JAXB can not parse the ComponentContext Interface. I added the
> @WebMethod(exclude=true) annotation (as below) to let it know not to
> make it
> a web service operation but it appears to be ignoring it. This is a
> JSR181
> annotation no? I need this to work as I use the JBI ComponentContext
> to get
> the Context to load the JNDI reference to the DataSource.
>
> @WebMethod(exclude=true)
> public void setContext(ComponentContext componentContext) {
> this.componentContext = componentContext;
> }
>
> Respectfully,
> Brian
> --
> View this message in context: http://www.nabble.com/CXF-SE%3A-Public-Method-Exclusion-During-WSDL-Generation-tp24848019p24848019.html
> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>
--
Freeman Fang
------------------------
Open Source SOA: http://fusesource.com