Forum Discussion
VNygaard
17 years agoNew Contributor
Hi..
It's running okay in foreground, but it sits waiting a keystroke to terminate..
We downloaded the source.. In the SoapUIMockServiceRunner class..
/**
* Runs the configured tool for the specified interface.. needs to be refactored to use
* some kind of registry/factory pattern for tools
*
* Param iface
*/
public void runMockService( WsdlMockService mockService )
{
try
{
if( path != null )
mockService.setPath( path );
if( port != null )
mockService.setPort( Integer.parseInt( port ));
mockService.addMockRunListener( new LogListener() );
MockRunner runner = mockService.start();
System.in.read();
runner.stop();
}
catch (Exception e)
{
SoapUI.logError( e );
}
}
..is probably preventing it from being ran in the background..
It's running okay in foreground, but it sits waiting a keystroke to terminate..
We downloaded the source.. In the SoapUIMockServiceRunner class..
/**
* Runs the configured tool for the specified interface.. needs to be refactored to use
* some kind of registry/factory pattern for tools
*
* Param iface
*/
public void runMockService( WsdlMockService mockService )
{
try
{
if( path != null )
mockService.setPath( path );
if( port != null )
mockService.setPort( Integer.parseInt( port ));
mockService.addMockRunListener( new LogListener() );
MockRunner runner = mockService.start();
System.in.read();
runner.stop();
}
catch (Exception e)
{
SoapUI.logError( e );
}
}
..is probably preventing it from being ran in the background..
Related Content
- 4 years agoasavoia
- 9 years agoMarekFric
- 8 years agominoseah629
- 9 years agoKnowledge