Hi,
You shouldn't start jetty in cxf-se at all, as cxf se is
ServiceEngine so it should use JBI transport underlying only.
Per JBI spec, all transport protocol handling stuff should be delegate
to the Binding Component, you should use cxf bc which will take care
of jetty start/stop.
Freeman
On 2011-3-9, at 上午12:42, jcamus wrote:
Hi !
I am having an issue when undeploying (and redeploying just after) a
su
(cxf-se) containing a bean using a jetty server. In the
redeployement I have
the error message :
"java.net.BindException: Address already in use: JVM_Bind"
The problem is that the first server started in the first deployment
is not
stopped when redeployment is done !
How can I solve this problem ? How can I detect in my bean that the
jetty
server must be stopped (using finalize does not work, as GC can be
called
after redeployment..).
Regards.
--
View this message in context:
http://servicemix.396122.n5.nabble.com/How-to-free-resources-in-a-bean-during-undeployment-tp3414218p3414218.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.
--
Freeman Fang
------------------------
FuseSource: http://fusesource.com
blog: http://freemanfang.blogspot.com
twitter: http://twitter.com/freemanfang
Apache Servicemix:http://servicemix.apache.org
Apache Cxf: http://cxf.apache.org
Apache Karaf: http://karaf.apache.org
Apache Felix: http://felix.apache.org