简体   繁体   English

JAX-WS Service.getPort是否在每次调用时都返回一个新端口?

[英]Does JAX-WS Service.getPort return a new port on each call?

我想知道getPort调用会创建一个新端口还是一直在提供相同的端口,从而使其不是线程安全的吗?

the thread safety nature of the JAX-WS seems to be depend on the underlying implementation. JAX-WS的线程安全性似乎取决于基础实现。 see this question . 看到这个问题 Are you trying to reduce the GC overhead or reusing the Service object? 您是否要减少GC开销或重用Service对象?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM