Try to use service scope to request.

On 5/7/07, Eric Jean <[EMAIL PROTECTED]> wrote:
I am using XFire 1.2.5 and have been deploying services using the
XFireSpringServlet (like the jaxws-spring example included in the
distribution). My question is - can I set a destroy method on the
implementation for my service class?

For example, in the jaxws-spring example, I changed server.beans.xml to
look like this:
       <property name="serviceBean">
            <bean class="org.something.services.hello.impl.HelloServiceImpl"
                      destroy-method="dispose"/>
        </property>
And then in HelloServiceImpl, I put the code
    public void dispose() {
       System.out.println("DISPOSE CALLED");
    }

 From my understanding of the Spring framework, this should work. But,
when running the test I never see the dispose message printed out.

What can I do to make sure "dispose" is called?

Thanks,
Eric

---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email




--
-----
When one of our products stops working, we'll blame another vendor
within 24 hours.

---------------------------------------------------------------------
To unsubscribe from this list please visit:

   http://xircles.codehaus.org/manage_email

Reply via email to