Announcement Announcement Module
Collapse
No announcement yet.
JaxWS Spring and Application Server Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • JaxWS Spring and Application Server

    I'm on Spring 2.5
    I'm using tha native JAX-WS provided by my application server Java EE 5.

    I did create a "pure Java interface" HelloService class and a "pure Java implementation" HelloServiceImpl class.
    I've annotated them with @Webservice @WebMethod @WebParam

    The application server correctly detects this webservice and exposes it in http://<hostname>/<contextPath>/<webServiceName> i.e http://myhost/myapp/HelloWorldService

    The problem is that these are "pure java" classes, and there I've not the ApplicationContext.

    I do NOT want to use this:
    Code:
    <bean class="org.springframework.remoting.jaxws.SimpleJaxWsServiceExporter">
        <property name="baseAddress" value="http://localhost:9999/"/>
    </bean>
    I wish that the application server will manage the "publication" of the webservice and NOT spring.

    I suppose that currently the ApplicationServer does initialize HelloServiceImpl classes.
    So I suppose that setting it as a spring bean (where I can inject all the services I need) might cause some issue, who will initialize the webservice implementation? Spring or the AppServer?

    Thanks
Working...
X