I have a few questions.
Regarding the code to publish BankImpl:
Endpoint ep = Endpoint.publish("http://localhost:8080/BankAccount",
new BankAccountImpl());
W3CEndpointReference er =
(W3CEndpointReference)ep.getEndpointReference();
Endpoint.publish("http://localhost:8080/Bank", new BankImpl(er));
I typically do things in Spring (for the server code at least).
I typically use <jaxws:endpoint>. I'm not 100% sure how to configure Spring
to do what is shown above:
I would expect something like this:
<jaxws:endpoint
id="bankEndpoint"
implementor="#bankImpl"
address="/Bank" />
<bean id="bankImpl" class="com.dankulp.bank.BankImpl">
<constructor-arg ref="bankAccountEndpoint"/>
</bean>
<jaxws:endpoint
id="bankAccountEndpoint"
implementor="#bankAccountImpl"
address="/BankAccount" />
<bean id="bankAccountImpl" class="com.dankulp.bank.BankAccountImpl"/>
I probably messed it up :)
--
View this message in context:
http://cxf.547215.n5.nabble.com/Stateful-web-services-with-CXF-tp3212822p3227666.html
Sent from the cxf-user mailing list archive at Nabble.com.