0
我正在开发JAX-WS Web服务。我的Java类看起来像(带注释):动态配置StreamingAttachment属性
@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");
}