ssl - 启用 ssl 的 Jboss 远程处理
问题描述
我需要使用 ssl enable 添加 Jboss 远程处理,即,(使用 https)。我拥有 jboss 远程处理所需的所有库。
所以我找到了一个带有服务器端代码的教程,如下所示
我想知道在哪里配置 "https" 和 ssl 。
import org.jboss.remoting.InvokerLocator;
import org.jboss.remoting.transport.*;
public class Server {
public Server() throws Exception {
InvokerLocator myLocator = new InvokerLocator("http://127.0.0.1:8888");
Connector connector = new Connector();
connector.setInvokerLocator(myLocator.getLocatorURI());
connector.start();
connector.addInvocationHandler("MYSYS",new MyInvocationHandler());
}
public static void main(String[] args) throws Exception {
new Server();
}
}
解决方案
推荐阅读
- apache - Apache ProxyPass - 未找到接收 404 页面
- npm - 找不到 NPM 全局安装的包
- python-3.x - 根据字典替换尴尬数组中的值的有效方法?
- python - 我在 Firestore 中执行了多少次读取?
- python - 井字游戏 - 错误和人工智能
- compression - show_chunks() 与 DELETE 抱怨的不对应
- python - 如何键入带有封闭类类型的方法并通过继承更新它?
- javascript - 如何从从 javascript 发送到烧瓶的发布请求中获取返回值
- android - 颤动的应用程序卡在白色的空白屏幕上,然后失去设备连接
- python - SQLAlchemy 2.0 迁移 - 连接到数据库