if (this.mode == GUI_MODE) {
// if user configure the msgBox url using the UI we have to
// pick the latest one which
// set by the UI
if (this.gfacEmbeddedMode) {
invoker = new EmbeddedGFacInvoker(portTypeQName,
WSDLUtil.wsdlDefinitions5ToWsdlDefintions3(wsNode
.getComponent().getWSDL()), node.getID(),
this.engine.getMonitor().getConfiguration()
.getMessageBoxURL().toASCIIString(),
this.engine.getMonitor().getConfiguration().getBrokerURL().toASCIIString(), this.notifier, this.topic,
this.engine.getConfiguration().getJcrComponentRegistry().getRegistry(),
portTypeQName.getLocalPart(),this.engine.getConfiguration());
} else {
invoker = new GenericInvoker(portTypeQName,
WSDLUtil.wsdlDefinitions5ToWsdlDefintions3(wsNode
.getComponent().getWSDL()), node.getID(),
this.engine.getMonitor().getConfiguration()
.getMessageBoxURL().toASCIIString(),
gfacURLString, this.notifier);
}
} else {
if(this.gfacEmbeddedMode){
invoker = new EmbeddedGFacInvoker(portTypeQName,
WSDLUtil.wsdlDefinitions5ToWsdlDefintions3(wsNode
.getComponent().getWSDL()), node.getID(),
this.configuration.getMessageBoxURL()
.toASCIIString(),
this.configuration.getBrokerURL().toASCIIString(), this.notifier, this.topic, configuration.getJcrComponentRegistry().getRegistry(),