动态配置StreamingAttachment属性

时间:2012-02-01 13:42:46

标签: jax-ws

我正在开发JAX-WS Web服务。我的Java类看起来像(带注释):

@MTOM
@WebService(endpointInterface = "mtomtest.wsserver.mtomserver")
@StreamingAttachment(parseEagerly=true, memoryThreshold=4000000L, dir="D:\\projects\\123\\files\\temp")
public class mtomserverImpl implements mtomserver {

注意StreamingAttachment注释的硬编码值。我希望能够从我的代码动态初始化这些值 - 任何东方的方式?所以我想做(在服务器上):

configureMyself() {
    setMemoryThreshold(12345);
    setTempDir("c:\\mydirectory");
}

1 个答案:

答案 0 :(得分:0)

相关问题