There really are two options:

1) Use spring to actually create your ServiceImpl and use spring injection.   

<bean id="myservice" class="....ServiceImpl">
    <property name="bean" ref="refBean"/>
</bean>
<jaxws:endpoint implementor="#myservice" .../>


2)  Use an @Resource thing:
 @WebService
 public class ServiceImpl implements Service{
    @Resouce(name = "myBean")
    public SpringBean bean;
 } 


Dan

On Wednesday 05 November 2008 3:18:05 pm Joshua Partogi wrote:
> Hi Glen,
>
> Thanks for replying.
>
> See in my endpoint let's say I have a bean as such:
>
> @WebService
> public class ServiceImpl implements Service{
>    public SpringBean bean;
> }
>
> Now how do I inject this bean from spring bean xml config? What do I
> put inside the jaxws:endpoint element?
> <jaxws:endpoint id="service"
>   ...>
>
> </jaxws:endpoint>
>
> I still haven't got the gist of CXF yet.
>
> Thanks in advance
>
> On Thu, Nov 6, 2008 at 1:13 AM, Glen Mazza <[EMAIL PROTECTED]> wrote:
> > Would the first and third code segments of Step #2 here[1] be what you're
> > looking for?
> >
> > [1] http://www.jroller.com/gmazza/date/20080716



-- 
Daniel Kulp
[EMAIL PROTECTED]
http://dankulp.com/blog

Reply via email to