IBM webMethods Hybrid Integration

IBM webMethods Hybrid Integration

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
  • 1.  Java Service is destorying the pipeline values

    Posted Fri April 09, 2010 09:18 PM

    Hi,

    Actually I got a problem with a Java service.

    I am invoking the java service in a main service. when I execute the main service, the pipeline variables are getting destoryed once the java service step is done. so I am getting an error as there are no variables in the pipleline except the results of the java service to continue to next steps in main service.

    Please somebody help me out as I don’t have any knowledge on Java side.

    Tha java code looks like the following

    String folder, service;
    IDataCursor pipelineCursor_1 = pipeline.getCursor();

    // pipeline
    try {
    if (pipeline != null){
    IData svcName = Service.doInvoke(“Test.pub”, “getSetting”, pipeline);
    IDataCursor svcNameCursor = svcName.getCursor();
    String serviceName = IDataUtil.getString(svcNameCursor, “value”);
    StringTokenizer tokenizer = new StringTokenizer(serviceName, “:”);
    if (serviceName != null){
    IDataUtil.put( pipelineCursor_1, “folder”, tokenizer.nextToken() );
    IDataUtil.put( pipelineCursor_1, “service”, tokenizer.nextToken() );
    IDataUtil.put( pipelineCursor_1, “nameSpace”, (Object)NSName.create(serviceName));
    }
    } else {
    throw new ServiceException(“Input Pipeline is null.”);
    }
    } catch(Exception e) {
    throw new ServiceException("Exception caught while accessing file. "+e.getMessage());
    }
    // pipeline
    pipelineCursor_1.destroy();

    The Same code is working in 6.1 Version but I am getting this problem in 7.1 Version.

    Thanks,
    Nag


    #Integration-Server-and-ESB
    #Flow-and-Java-services
    #webMethods


  • 2.  RE: Java Service is destorying the pipeline values

    Posted Mon April 19, 2010 08:02 PM

    ok… got it solved… Found the issue…


    #Integration-Server-and-ESB
    #Flow-and-Java-services
    #webMethods


  • 3.  RE: Java Service is destorying the pipeline values

    Posted Tue April 20, 2010 05:53 AM

    Can you share the issue and solution to help those that might encounter the same in the future?


    #Flow-and-Java-services
    #Integration-Server-and-ESB
    #webMethods