Philippe,
I didn’t read the entire post (sorry). Here’s a way to put your properties into the server.cnf file.
A word of caution. Do not use the same pattern as webMethods, use your own property label.
company.app.property
For example: ge.edi.x12version=4010
Then create a java service.
Input signature: props (String Array)
Output signature: propValues (String Array)
This permits you to obtain more than one at a time.
IDataCursor pipelineCursor = pipeline.getCursor();
try{
if(pipelineCursor.first("props"))
{
String[] props = (String[]) pipelineCursor.getValue();
if(props != null)
{
int propsLength = props.length;
String[] propValues = new String[propsLength];
for(int iCounter = 0; iCounter < propsLength; iCounter++)
{
if(props[iCounter] != null)
{
propValues[iCounter] = System.getProperty(props[iCounter]);
}
pipelineCursor.last();
pipelineCursor.insertAfter(“propValues”, propValues);
}
}
}
catch(Exception e)
{
throw new ServiceException(e.getMessage());
}
}
You can try this out by first calling existing properties, like port.
HTH,
Ray
#webMethods#Integration-Server-and-ESB#Flow-and-Java-services