No, that would create some sort of circular thing where the CXF EndpointImpl would need the ServicesImpl and vice versa. That won't work.
A completely separate bean like: public class ConfigThing { public ConfigThing(EndpointImpl ep) { ep…..(); } } and in spring do: <bean class="…..ConfigThing"> <arg ref="SoapGateaway"/> … should do it. Dan On Oct 22, 2013, at 5:40 PM, cxfbeginner <hahapo...@yahoo.com> wrote: > Thanks Daniel. > > I am not sure I am doing it right but it is not working on my case. > I tried to inject it inside of "ServiceImpl" constructor. I am under > impression that the XML or injection has already been done when the class is > instantiated. > > <jaxws:endpoint id="SoapGateaway" address="/" > implementor="com.impl.ServicesImpl" > > > @Resource > private EndpointImpl endpoint; > > public ServicesImpl() { > endpoint.getPublishedEndpointUrl(); > } > > It looks like EndpointImpl only maps to one bean. I think I am doing it > wrong. > > > > -- > View this message in context: > http://cxf.547215.n5.nabble.com/How-to-get-jaxws-endpoint-object-at-the-server-during-initialization-code-first-approach-tp5735370p5735417.html > Sent from the cxf-dev mailing list archive at Nabble.com. -- Daniel Kulp dk...@apache.org - http://dankulp.com/blog Talend Community Coder - http://coders.talend.com