Guy Pardon wrote:
Hi,
What is the best way to get informed about the startup of the CXF
engine? We would need this to bind transaction ports for WSAT and do
recovery.
Thanks,
Guy
Hi Guy,
WS-RM is faced with a similar problem and uses the
ServerLifeCycleListener and ClientLifeCycleListener APIs to recover
unack'd messages from/to particular endpoint, see
org.apache.cxf.endpoint package in the api module.
For a non-endpoint specific mechanism you can implement something like a
wsat recovery manager as a bus extension that is instantiated when the
bus is initialised - you can then kick off the recovery process from
within the recovery manager bean's constructor, a @PostConstruct
annotated method or aother method marked as init-method in the Spring
cfg file fragment for the extension. Simply add a cxf-extension-... file
to your wsat module's META-INF/cxf directory, including a bean like:
<bean class="org.apache.cxf.ws.at.RecoveryManager">
....
</bean>
CXF will create an application context from all all META-INF/cxf/cxf-*
cfg files when its runtime is initialised/bus is created.
Hope that helps,
Andrea.
----------------------------
IONA Technologies PLC (registered in Ireland)
Registered Number: 171387
Registered Address: The IONA Building, Shelbourne Road, Dublin 4, Ireland