I can't find a good example of how to set the scope property when the
XFireExporter is being used, so I made my best guess:
<bean name="hello.server"
class="org.codehaus.xfire.spring.remoting.XFireExporter">
<property name="serviceBean">
<bean class="org.something.services.hello.impl.HelloServiceImpl"
destroy-method="dispose"/>
</property>
<property name="serviceClass"
value="org.something.services.hello.impl.HelloServiceImpl" />
<property name="serviceFactory">
<ref bean="xfire.jaxwsServiceFactory" />
</property>
<property name="wsdlURL" value="hello.wsdl"/>
<property name="scope" value="request"/>
</bean>
Still though, when I run the test case, I do not see the "dispose"
message printed at the end. All I see is this:
INFO: Stopping Acceptor
ServerSocket[addr=0.0.0.0/0.0.0.0,port=0,localport=8191]
May 7, 2007 11:37:12 AM org.mortbay.http.SocketListener stop
INFO: Stopped SocketListener on 0.0.0.0:8191
May 7, 2007 11:37:12 AM org.mortbay.jetty.servlet.ServletHandler$Context log
INFO: XFireServlet: destroy
May 7, 2007 11:37:12 AM org.mortbay.util.Container stop
INFO: Stopped [EMAIL PROTECTED]
May 7, 2007 11:37:13 AM org.mortbay.util.Container stop
INFO: Stopped ServletHttpContext[/,/]
May 7, 2007 11:37:13 AM org.mortbay.util.Container stop
INFO: Stopped [EMAIL PROTECTED]
Am I doing something wrong still?
Thanks,
Eric
Tomek Sztelak wrote:
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
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email