Invoking services on different machines using the SCA (default) binding

The SCA (or default) binding which is typically used to connect modules and/or mediation modules together is not limited to same machine same cell connections, it is also possible to make an asynchronous or synchronous call (as the SCA binding supports both invocation styles) to a module/mediation module with an export SCA binding on another machine, in a different cell. The guidance for how to do this can be found here in the Information Center.

Advertisements

8 Responses to Invoking services on different machines using the SCA (default) binding

  1. David R says:

    Hi,
    How do you invoke a service that is deployed on a different machine which does not have a mediation/module?. The only information that I have, is the URL to the wsdl e.g. http://differentserver/soapservice/test.wsdl
    My toolset is the WID6.0.2 with the embedded ESB and process server.
    Please respond.
    Thanks,
    Best Regards,
    David R

  2. Hi David,
    Modules and mediation modules are composite applications which provide new services by combining (and possibly enhancing) existing ones. The way in which they connect to existing services is through an import. An import has an interface (described by a WSDL document) and a binding which describes how it connects to the service (this could be SOAP/HTTP, SOAP/JMS, MQ, JMS, SCA, etc.). In your case you will need an import with a web services binding.

    To create this, you will need to:

    a) Create a module or mediation module
    b) Import the WSDL describing your service (i.e. the WSDL on the other machine) by right clicking in the Business Integration view and choosing Import and then selecting WSDL/Interface and choosing your file from the filesystem
    c) Once this has been imported, then just drag and drop this interface onto the assembly diagram of your module and a dialog box should appear.
    d) Select Create an import with a web services binding
    e) Select to use an existing port, assuming the port information is in the WSDL you imported.

    You will now have an import with a web services binding which is connected to your service. You can now build the rest of your composite application within the module/mediation module using the components provided and then expose your module/mediation module as another service by adding an export. This also has an interface and its own binding (this may or may not be the same as the import binding).

    I suggest you check out the the Imports and Exports page in the Information Center as well to gain a better understanding.

    I hope that answers your question.

  3. David R says:

    Hi Chris,
    Many thanks for your quick response. I checked out your steps and was able to successfully deploy and test my module in the embedded esb server.
    Best Regards,
    David R

  4. Hi David, glad to hear you got things working.

    • Sam says:

      Hi Chris,
      I have a question about process server.
      My question is, I want to invoke a web service from SCA Binding (not from web service Binding) in Process Server.
      I have created a business process which invoke/calls my web service(ClientIndex). I am calling this BPEL from my assemble diagram SCA Binding import.
      So I have added my web service project and Module project to the process server and I have changed my serviceLocator end points appropriately.
      I got the following error while invoking my service from assembly diagram.

      Error
      at com.ibm.bpe.invocation.SCAInvocationHandler.invoke(SCAInvocationHandler.java:206)
      at com.ibm.bpe.engine.BpelActivityKindInvoke.doActivate(BpelActivityKindInvoke.java:457)
      at com.ibm.bpe.engine.BpelActivityStateInactive.activateOrSkip(BpelActivityStateInactive.java:233)
      at com.ibm.bpe.engine.BpelEngineCore.continueControlLink(BpelEngineCore.java:298)
      at com.ibm.bpe.engine.BpelContinueLinkMessage3.execute(BpelContinueLinkMessage3.java:86)
      at com.ibm.bpe.engine.BpelEngine.processInternalMessages(BpelEngine.java:5519)
      at com.ibm.bpe.framework.EngineMessageExecutionWorkObject.processAllEngineMessages(EngineMessageExecutionWorkObject.java:300)
      at com.ibm.bpe.framework.EngineMessageExecutionWorkObject.run(EngineMessageExecutionWorkObject.java:196)
      at com.ibm.bpe.framework.EngineMessageExecutor.execute(EngineMessageExecutor.java:165)
      at com.ibm.bpe.engine.BpelEngine.receiveEvent(BpelEngine.java:715)
      at com.ibm.bpe.engine.BpelEngine.receiveEvent(BpelEngine.java:640)
      at com.ibm.bpe.engine.BpelEngine.receiveEvent(BpelEngine.java:590)
      at com.ibm.bpe.framework.sca.ProcessSessionBean.invokeEngineSync(ProcessSessionBean.java:937)
      at com.ibm.bpe.framework.sca.ProcessSessionBean.invokeEngineSync(ProcessSessionBean.java:909)
      at com.ibm.bpe.framework.sca.ProcessSessionBean.processMessage(ProcessSessionBean.java:265)
      at com.ibm.bpe.framework.sca.EJSLocalStatelesscomponent_ClientIndexProcess_81534b8a.processMessage(EJSLocalStatelesscomponent_ClientIndexProcess_81534b8a.java:639)
      at com.ibm.bpe.framework.sca.ProcessImplementationHandler.handleInboundCalls(ProcessImplementationHandler.java:267)
      at com.ibm.bpe.framework.sca.ProcessImplementationHandler.processMessage(ProcessImplementationHandler.java:154)
      at com.ibm.ws.sca.internal.message.impl.MessageDispatcherImpl.processMessageWithPCI(MessageDispatcherImpl.java:714)
      at com.ibm.ws.sca.internal.message.impl.MessageDispatcherImpl.processMessage(MessageDispatcherImpl.java:1166)
      at com.ibm.ws.sca.internal.message.impl.ManagedMessageImpl.process(ManagedMessageImpl.java:838)
      at com.ibm.wsspi.sca.ejb.module.impl.ModuleSessionBean.processUOWMessage(ModuleSessionBean.java:336)
      at com.ibm.wsspi.sca.ejb.module.impl.ModuleSessionBean.transactionRequiredActivitySessionNotSupported(ModuleSessionBean.java:315)
      at com.ibm.wsspi.sca.ejb.module.EJSLocalStatelessModule_43132892.transactionRequiredActivitySessionNotSupported(EJSLocalStatelessModule_43132892.java:233)
      at com.ibm.ws.sca.internal.uow.handler.UOWStrategyImpl.transactionGlobalActivitySessionFalse(UOWStrategyImpl.java:311)
      at com.ibm.ws.sca.internal.uow.handler.JoinUOWHandler.processMessage(JoinUOWHandler.java:165)
      at com.ibm.ws.sca.internal.message.impl.MessageDispatcherImpl.processMessageWithPCI(MessageDispatcherImpl.java:725)
      at com.ibm.ws.sca.internal.message.impl.MessageDispatcherImpl.processMessage(MessageDispatcherImpl.java:1166)
      at com.ibm.ws.sca.internal.proxy.impl.ProxyInvocationHandlerImpl.invoke(ProxyInvocationHandlerImpl.java:788)
      at $Proxy13.processMessage(Unknown Source)
      at com.ibm.wsspi.sca.webservice.bean.impl.WebServiceBeanImpl.processInvoke(WebServiceBeanImpl.java:252)
      at com.ibm.wsspi.sca.webservice.ejb.impl.WebServiceSessionBean.invokeWS(WebServiceSessionBean.java:147)
      at com.ibm.wsspi.sca.webservice.ejb.impl.WebServiceSessionBean.invoke(WebServiceSessionBean.java:135)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:618)
      at com.ibm.ws.webservices.engine.dispatchers.java.JavaDispatcher.invokeMethod(JavaDispatcher.java:178)
      at com.ibm.ws.webservices.dispatchers.ejb.J2ee14EJBDispatcher.invokeMethod(J2ee14EJBDispatcher.java:173)
      at com.ibm.ws.webservices.engine.dispatchers.java.JavaDispatcher.invokeOperation(JavaDispatcher.java:141)
      at com.ibm.ws.webservices.engine.dispatchers.SoapRPCProcessor.processRequestResponse(SoapRPCProcessor.java:453)
      at com.ibm.ws.webservices.engine.dispatchers.SoapRPCProcessor.processMessage(SoapRPCProcessor.java:414)
      at com.ibm.ws.webservices.engine.dispatchers.BasicDispatcher.processMessage(BasicDispatcher.java:134)
      at com.ibm.ws.webservices.dispatchers.ejb.J2ee14EJBDispatcher.invoke(J2ee14EJBDispatcher.java:154)
      at com.ibm.ws.webservices.engine.PivotHandlerWrapper.invoke(PivotHandlerWrapper.java:228)
      at com.ibm.ws.webservices.engine.handlers.jaxrpc.JAXRPCHandler.invoke(JAXRPCHandler.java:147)
      at com.ibm.ws.webservices.engine.handlers.WrappedHandler.invoke(WrappedHandler.java:64)
      at com.ibm.ws.webservices.engine.PivotHandlerWrapper.invoke(PivotHandlerWrapper.java:228)
      at com.ibm.ws.webservices.engine.PivotHandlerWrapper.invoke(PivotHandlerWrapper.java:228)
      at com.ibm.ws.webservices.engine.WebServicesEngine.invoke(WebServicesEngine.java:336)
      at com.ibm.ws.webservices.engine.transport.http.WebServicesServlet.doPost(WebServicesServlet.java:831)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
      at com.ibm.ws.webservices.engine.transport.http.WebServicesServletBase.service(WebServicesServletBase.java:341)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
      at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1081)
      at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:550)
      at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:478)
      at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3391)
      at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:267)
      at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:811)
      at com.ibm.ws.wswebcontainer.WebContainer.handleRequest(WebContainer.java:1455)
      at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:115)
      at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:458)
      at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:387)
      at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:267)
      at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.sendToDiscriminators(NewConnectionInitialReadCallback.java:214)
      at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.complete(NewConnectionInitialReadCallback.java:113)
      at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:165)
      at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)
      at com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)
      at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:136)
      at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:195)
      at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:743)
      at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:873)
      at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1473)
      Caused by: org.omg.CosNaming.NamingContextPackage.NotFound: IDL:omg.org/CosNaming/NamingContext/NotFound:1.0
      at com.ibm.ws.naming.ipcos.WsnOptimizedNamingImpl.handleNameNotFound(WsnOptimizedNamingImpl.java:2252)
      at com.ibm.ws.naming.ipcos.WsnOptimizedNamingImpl.getNextWsnOptimizedNamingContext(WsnOptimizedNamingImpl.java:1448)
      at com.ibm.ws.naming.cosbase.WsnOptimizedNamingImplBase.getTargetContext(WsnOptimizedNamingImplBase.java:4396)
      at com.ibm.ws.naming.cosbase.WsnOptimizedNamingImplBase$LeafOperationData.(WsnOptimizedNamingImplBase.java:5012)
      at com.ibm.ws.naming.cosbase.WsnOptimizedNamingImplBase.resolve_complete_info(WsnOptimizedNamingImplBase.java:2207)
      at com.ibm.ws.naming.jndicos.CNContextImpl.cosResolve(CNContextImpl.java:4351)
      at com.ibm.ws.naming.jndicos.CNContextImpl.doLookup(CNContextImpl.java:1901)
      … 105 more
      Wrapped by:
      com.ibm.websphere.sca.ServiceUnavailableException: javax.naming.NameNotFoundException: Context: widCell/nodes/widNode/servers/server1, name: cell/persistent/sca/ClientIndexService_Impl/export/ClientIndexService: First component in name ClientIndexService_Impl/export/ClientIndexService not found. [Root exception is org.omg.CosNaming.NamingContextPackage.NotFound: IDL:omg.org/CosNaming/NamingContext/NotFound:1.0]: caused by: javax.naming.NameNotFoundException: Context: widCell/nodes/widNode/servers/server1, name: cell/persistent/sca/ClientIndexService_Impl/export/ClientIndexService: First component in name ClientIndexService_Impl/export/ClientIndexService not found. [Root exception is org.omg.CosNaming.NamingContextPackage.NotFound: IDL:omg.org/CosNaming/NamingContext/NotFound:1.0]
      at com.ibm.ws.sca.internal.ejb.util.EJBStubAdapter.getStub(EJBStubAdapter.java:90)
      at com.ibm.ws.sca.internal.ejb.util.EJBStubHelper.lookup(EJBStubHelper.java:89)
      at com.ibm.ws.sca.internal.ejb.util.EJBStubHelper.lookup(EJBStubHelper.java:82)
      at com.ibm.ws.sca.internal.binding.handler.SCAImportBindingHandler.getExportEJBStub(SCAImportBindingHandler.java:146)
      at com.ibm.ws.sca.internal.binding.handler.SCAImportBindingHandler.processMessage(SCAImportBindingHandler.java:221)
      at com.ibm.ws.sca.internal.message.impl.MessageDispatcherImpl.processMessageWithPCI(MessageDispatcherImpl.java:725)
      at com.ibm.ws.sca.internal.message.impl.MessageDispatcherImpl.processMessage(MessageDispatcherImpl.java:1166)
      at com.ibm.ws.sca.internal.message.impl.ManagedMessageImpl.process(ManagedMessageImpl.java:838)
      at com.ibm.wsspi.sca.ejb.module.impl.ModuleSessionBean.processUOWMessage(ModuleSessionBean.java:336)
      at com.ibm.wsspi.sca.ejb.module.impl.ModuleSessionBean.transactionNotSupportedActivitySessionNotSupported(ModuleSessionBean.java:291)
      at com.ibm.wsspi.sca.ejb.module.EJSLocalStatelessModule_43132892.transactionNotSupportedActivitySessionNotSupported(EJSLocalStatelessModule_43132892.java:131)
      at com.ibm.ws.sca.internal.uow.handler.UOWStrategyImpl.transactionLocalActivitySessionFalse(UOWStrategyImpl.java:386)
      at com.ibm.ws.sca.internal.uow.handler.JoinUOWHandler.processMessage(JoinUOWHandler.java:131)
      at com.ibm.ws.sca.internal.message.impl.MessageDispatcherImpl.processMessageWithPCI(MessageDispatcherImpl.java:725)
      at com.ibm.ws.sca.internal.message.impl.MessageDispatcherImpl.processMessage(MessageDispatcherImpl.java:1166)
      at com.ibm.ws.sca.internal.proxy.impl.ProxyInvocationHandlerImpl.invoke(ProxyInvocationHandlerImpl.java:788)
      at $Proxy13.processMessage(Unknown Source)
      at com.ibm.bpe.invocation.SCAInvocationHandler.doinvoke_Sync_ReqRsp(SCAInvocationHandler.java:549)
      at com.ibm.bpe.invocation.SCAInvocationHandler.doinvoke(SCAInvocationHandler.java:439)
      at com.ibm.bpe.invocation.SCAInvocationHandler.access$000(SCAInvocationHandler.java:117)
      at com.ibm.bpe.invocation.SCAInvocationHandler$1.run(SCAInvocationHandler.java:210)
      at java.security.AccessController.doPrivileged(AccessController.java:197)
      at com.ibm.bpe.invocation.SCAInvocationHandler.invoke(SCAInvocationHandler.java:206)
      at com.ibm.bpe.engine.BpelActivityKindInvoke.doActivate(BpelActivityKindInvoke.java:457)
      at com.ibm.bpe.engine.BpelActivityStateInactive.activateOrSkip(BpelActivityStateInactive.java:233)
      at com.ibm.bpe.engine.BpelEngineCore.continueControlLink(BpelEngineCore.java:298)
      at com.ibm.bpe.engine.BpelContinueLinkMessage3.execute(BpelContinueLinkMessage3.java:86)
      at com.ibm.bpe.engine.BpelEngine.processInternalMessages(BpelEngine.java:5519)
      at com.ibm.bpe.framework.EngineMessageExecutionWorkObject.processAllEngineMessages(EngineMessageExecutionWorkObject.java:300)
      at com.ibm.bpe.framework.EngineMessageExecutionWorkObject.run(EngineMessageExecutionWorkObject.java:196)
      at com.ibm.bpe.framework.EngineMessageExecutor.execute(EngineMessageExecutor.java:165)
      at com.ibm.bpe.engine.BpelEngine.receiveEvent(BpelEngine.java:715)
      at com.ibm.bpe.engine.BpelEngine.receiveEvent(BpelEngine.java:640)
      at com.ibm.bpe.engine.BpelEngine.receiveEvent(BpelEngine.java:590)
      at com.ibm.bpe.framework.sca.ProcessSessionBean.invokeEngineSync(ProcessSessionBean.java:937)
      at com.ibm.bpe.framework.sca.ProcessSessionBean.invokeEngineSync(ProcessSessionBean.java:909)
      at com.ibm.bpe.framework.sca.ProcessSessionBean.processMessage(ProcessSessionBean.java:265)
      at com.ibm.bpe.framework.sca.EJSLocalStatelesscomponent_ClientIndexProcess_81534b8a.processMessage(EJSLocalStatelesscomponent_ClientIndexProcess_81534b8a.java:639)
      at com.ibm.bpe.framework.sca.ProcessImplementationHandler.handleInboundCalls(ProcessImplementationHandler.java:267)
      at com.ibm.bpe.framework.sca.ProcessImplementationHandler.processMessage(ProcessImplementationHandler.java:154)
      at com.ibm.ws.sca.internal.message.impl.MessageDispatcherImpl.processMessageWithPCI(MessageDispatcherImpl.java:714)
      at com.ibm.ws.sca.internal.message.impl.MessageDispatcherImpl.processMessage(MessageDispatcherImpl.java:1166)
      at com.ibm.ws.sca.internal.message.impl.ManagedMessageImpl.process(ManagedMessageImpl.java:838)
      at com.ibm.wsspi.sca.ejb.module.impl.ModuleSessionBean.processUOWMessage(ModuleSessionBean.java:336)
      at com.ibm.wsspi.sca.ejb.module.impl.ModuleSessionBean.transactionRequiredActivitySessionNotSupported(ModuleSessionBean.java:315)
      at com.ibm.wsspi.sca.ejb.module.EJSLocalStatelessModule_43132892.transactionRequiredActivitySessionNotSupported(EJSLocalStatelessModule_43132892.java:233)
      at com.ibm.ws.sca.internal.uow.handler.UOWStrategyImpl.transactionGlobalActivitySessionFalse(UOWStrategyImpl.java:311)
      at com.ibm.ws.sca.internal.uow.handler.JoinUOWHandler.processMessage(JoinUOWHandler.java:165)
      at com.ibm.ws.sca.internal.message.impl.MessageDispatcherImpl.processMessageWithPCI(MessageDispatcherImpl.java:725)
      at com.ibm.ws.sca.internal.message.impl.MessageDispatcherImpl.processMessage(MessageDispatcherImpl.java:1166)
      at com.ibm.ws.sca.internal.proxy.impl.ProxyInvocationHandlerImpl.invoke(ProxyInvocationHandlerImpl.java:788)
      at $Proxy13.processMessage(Unknown Source)
      at com.ibm.wsspi.sca.webservice.bean.impl.WebServiceBeanImpl.processInvoke(WebServiceBeanImpl.java:252)
      at com.ibm.wsspi.sca.webservice.ejb.impl.WebServiceSessionBean.invokeWS(WebServiceSessionBean.java:147)
      at com.ibm.wsspi.sca.webservice.ejb.impl.WebServiceSessionBean.invoke(WebServiceSessionBean.java:135)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:618)
      at com.ibm.ws.webservices.engine.dispatchers.java.JavaDispatcher.invokeMethod(JavaDispatcher.java:178)
      at com.ibm.ws.webservices.dispatchers.ejb.J2ee14EJBDispatcher.invokeMethod(J2ee14EJBDispatcher.java:173)
      at com.ibm.ws.webservices.engine.dispatchers.java.JavaDispatcher.invokeOperation(JavaDispatcher.java:141)
      at com.ibm.ws.webservices.engine.dispatchers.SoapRPCProcessor.processRequestResponse(SoapRPCProcessor.java:453)
      at com.ibm.ws.webservices.engine.dispatchers.SoapRPCProcessor.processMessage(SoapRPCProcessor.java:414)
      at com.ibm.ws.webservices.engine.dispatchers.BasicDispatcher.processMessage(BasicDispatcher.java:134)
      at com.ibm.ws.webservices.dispatchers.ejb.J2ee14EJBDispatcher.invoke(J2ee14EJBDispatcher.java:154)
      at com.ibm.ws.webservices.engine.PivotHandlerWrapper.invoke(PivotHandlerWrapper.java:228)
      at com.ibm.ws.webservices.engine.handlers.jaxrpc.JAXRPCHandler.invoke(JAXRPCHandler.java:147)
      at com.ibm.ws.webservices.engine.handlers.WrappedHandler.invoke(WrappedHandler.java:64)
      at com.ibm.ws.webservices.engine.PivotHandlerWrapper.invoke(PivotHandlerWrapper.java:228)
      at com.ibm.ws.webservices.engine.PivotHandlerWrapper.invoke(PivotHandlerWrapper.java:228)
      at com.ibm.ws.webservices.engine.WebServicesEngine.invoke(WebServicesEngine.java:336)
      at com.ibm.ws.webservices.engine.transport.http.WebServicesServlet.doPost(WebServicesServlet.java:831)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
      at com.ibm.ws.webservices.engine.transport.http.WebServicesServletBase.service(WebServicesServletBase.java:341)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
      at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1081)
      at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:550)
      at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:478)
      at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3391)
      at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:267)
      at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:811)
      at com.ibm.ws.wswebcontainer.WebContainer.handleRequest(WebContainer.java:1455)
      at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:115)
      at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:458)
      at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:387)
      at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:267)
      at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.sendToDiscriminators(NewConnectionInitialReadCallback.java:214)
      at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.complete(NewConnectionInitialReadCallback.java:113)
      at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:165)
      at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)
      at com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)
      at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:136)
      at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:195)
      at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:743)
      at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:873)
      at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1473)
      Caused by: javax.naming.NameNotFoundException: Context: widCell/nodes/widNode/servers/server1, name: cell/persistent/sca/ClientIndexService_Impl/export/ClientIndexService: First component in name ClientIndexService_Impl/export/ClientIndexService not found. [Root exception is org.omg.CosNaming.NamingContextPackage.NotFound: IDL:omg.org/CosNaming/NamingContext/NotFound:1.0]
      at com.ibm.ws.naming.jndicos.CNContextImpl.processNotFoundException(CNContextImpl.java:4730)
      at com.ibm.ws.naming.jndicos.CNContextImpl.doLookup(CNContextImpl.java:1907)
      at com.ibm.ws.naming.jndicos.CNContextImpl.doLookup(CNContextImpl.java:1862)
      at com.ibm.ws.naming.jndicos.CNContextImpl.lookupExt(CNContextImpl.java:1552)
      at com.ibm.ws.naming.jndicos.CNContextImpl.lookup(CNContextImpl.java:1354)
      at com.ibm.ws.naming.util.WsnInitCtx.lookup(WsnInitCtx.java:172)
      at javax.naming.InitialContext.lookup(InitialContext.java:363)
      at com.ibm.ws.sca.internal.ejb.util.EJBLocator$JndiLocator.locate(EJBLocator.java:464)
      at com.ibm.ws.sca.internal.ejb.util.EJBLocator.locate(EJBLocator.java:442)
      at com.ibm.ws.sca.internal.ejb.util.EJBObjectFactory.createStub(EJBObjectFactory.java:72)
      at com.ibm.ws.sca.internal.ejb.util.EJBStubAdapter.getStub(EJBStubAdapter.java:87)
      … 96 more
      Caused by: org.omg.CosNaming.NamingContextPackage.NotFound: IDL:omg.org/CosNaming/NamingContext/NotFound:1.0
      at com.ibm.ws.naming.ipcos.WsnOptimizedNamingImpl.handleNameNotFound(WsnOptimizedNamingImpl.java:2252)
      at com.ibm.ws.naming.ipcos.WsnOptimizedNamingImpl.getNextWsnOptimizedNamingContext(WsnOptimizedNamingImpl.java:1448)
      at com.ibm.ws.naming.cosbase.WsnOptimizedNamingImplBase.getTargetContext(WsnOptimizedNamingImplBase.java:4396)
      at com.ibm.ws.naming.cosbase.WsnOptimizedNamingImplBase$LeafOperationData.(WsnOptimizedNamingImplBase.java:5012)
      at com.ibm.ws.naming.cosbase.WsnOptimizedNamingImplBase.resolve_complete_info(WsnOptimizedNamingImplBase.java:2207)
      at com.ibm.ws.naming.jndicos.CNContextImpl.cosResolve(CNContextImpl.java:4351)
      at com.ibm.ws.naming.jndicos.CNContextImpl.doLookup(CNContextImpl.java:1901)
      … 105 more

      SCA context:
      Interaction: [invoke,getCaseDetails] {TestSCAInvokeProc}ClientIndexProcess.component#ClientIndexServicePartner => {TestSCAInvokeProc}Import1.import
      Handler: com/ibm/ws/sca/internal/binding/handler/SCAImportBindingHandler (com.ibm.ws.sca.internal.binding.handler.SCAImportBindingHandler,com/ibm/wsspi/sca/extensions/ImportBindingGroup2)

      Thanks in advance

  5. jeremy says:

    Hi Chris,
    Great Tips ‘n’ Tricks.

    I have abandoned the task of connecting an Import to a Session Bean running on a different WebSphere Application Server. (not in the same cell).
    It appears that an import with a EJB Session Bean binding only allows you to enter a JNDI reference, which is not enough to get to the bean on another server.
    So I’m now using a web service instead.

    However, do you know of a way that this could be done?

    Thanks,

    Jeremy.

  6. Hi Jeremy – according to one of my colleagues the way to do this is through JNDI namespace federation. In cell1 you manually create a naming binding which connects to some content in the name tree in cell2. You can then perform JNDI lookups in cell1’s namespace which in fact cross over into cell2.

    For example – if you create a cell-level binding in cell1 called cell2, and your target ejb exists on nodeA.server1 in cell2. Then your ejb-ref should be bound to an absolute JNDI address of the form: cell/cell2/nodes/nodeA/servers/server1/ejbs/myejb.

    Hope that solves your problem.

    Chris

    PS Thanks to Stephen for the assistance on this.

  7. Raghu says:

    Hi David,

    Can you let me know the steps how an ejb application can invoke a Mediation module which is using sca binding.

    We are using Websphere Integration developer 6.2. And also let me know whether a non sca application can invoke a sca binding?

    Regards.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: