Thanks Rob,
It worked, BTW I wrote a small Java service which does the same function.
try
{
Integer integer = new Integer(0);
synchronized(integer)
{
myCounter = ++ myCounter <= 99999 ? myCounter:10000;
}
IDataHashCursor pipelineCursor = pipeline.getHashCursor();
pipelineCursor.last();
Integer yourCounter = new Integer(myCounter);
String result = (String) yourCounter.toString();
pipelineCursor.insertAfter(“yourCounter”, result);
pipelineCursor.destroy();
}
catch(Exception e)
{
throw new ServiceException(“Exception” + e.getMessage());
}
Your output variable is ‘yourCounter’, in the shared area define 'static int myCounter=10000.
Thanks,
Muru.
#webMethods#Integration-Server-and-ESB#Flow-and-Java-services