Tag: 主机

Jetty:设置普通主机

我如何强制Jetty打开所有部署的webapps,从特定的虚拟主机开始,如test.localhost:8080/myapp而不是localhost:8181/myapp ? 这是jetty.xml的片段: … …我试图玩jetty.host值,但仍然没有成功。 🙁 如何?

从Windows桌面应用程序连接到CICS

现在有了新的要求。 我手边有一些特别的工作。 要求是连接基于桌面的Java应用程序以从某些CICS Transaction生成的Mainframe中读取数据。 [基本上我必须读取所有附加到文件中的记录(与我们在linux中执行tail -f文件名的方式相同)。 这仅仅是因为我的要求是不同的。] 我询问,并且知道我的雇主无法向我提供MQ或CICS Transaction Gateway访问权限。 他提出了一些屏幕抓取方法。 我已经使用VB.Net应用程序和Quick3270以及IBM Communicator Emulators完成了这项工作。 这两个仿真器都提供了可用于读取屏幕上任何内容的function。 您可以参考EHILLAPI编程详细信息(仿真器编程语言) – http://publib.boulder.ibm.com/infocenter/pcomhelp/v5r9/index.jsp?topic=/com.ibm.pcomm.doc/books/html /emulator_programming07.htm如果你有兴趣学习。 但是这种方法限制了我可以出现在屏幕上的最大字节数。 使用这种方法会出现严重的网络延迟,因为我每次都必须刷新(基本上在CICS上从一个页面移动到另一个页面)以获取跨越多个页面的数据。 你能否建议我一些方法,以便我的雇主不需要让客户打开他的大型机上的任何端口或安装任何软件(因为这对我的雇主来说是不可能的)。 我可以使用3270终端仿真并检索所有(或至少更多数据)。 这样就可以满足我的雇主的要求,他不需要向他的客户提出任何要求。 (在任何情况下,我们都在模拟器中触发CICS事务)。 我们希望一切都在我的雇主的最终完成,而不会打扰客户的大型机甚至一点点。 请不要建议MQ,因为客户端没有它。 如果您仍在建议CICS Transaction Gateway,那么请告诉我如何连接到远程计算机(我需要技术细节)。 – 我需要从客户那里询问哪些信息。 – 我需要在我的机器上安装什么软件。 – 使用该软件的技术细节。 问候, 尼廷

我可以在Tomcat上运行.jar文件吗?

一个非常菜鸟的问题。 我可以在Tomcat上运行.jar文件吗? 我不是在构建一个网络应用程序。 我只需要在其中运行一个带有HalloWorld的.jar。 这是可能/适当的吗? 谢谢

spring integration sftp mainframe:写文件失败; 嵌套exception为3:权限被拒绝

我正在尝试使用spring integration sftp:outbound-gateway将文件sft到大型机:这是配置: 哪里 remote.upload.filename.credit.fmpl=/!DTS4.UP.G3TRF.S60304 remote.upload.directory=/ 我得到例外: Caused by: org.springframework.integration.MessagingException: Failed to write to ‘//!DTS4.UP.G3TRF.S60304’ while uploading the file at org.springframework.integration.file.remote.RemoteFileTemplate.sendFileToRemoteDirectory(RemoteFileTemplate.java:392) at org.springframework.integration.file.remote.RemoteFileTemplate.access$500(RemoteFileTemplate.java:56) at org.springframework.integration.file.remote.RemoteFileTemplate$1.doInSession(RemoteFileTemplate.java:213) … 46 more Caused by: org.springframework.core.NestedIOException: failed to write file; nested exception is 3: Permission denied at org.springframework.integration.sftp.session.SftpSession.write(SftpSession.java:158) at org.springframework.integration.file.remote.RemoteFileTemplate.sendFileToRemoteDirectory(RemoteFileTemplate.java:385) … 48 more Caused by: 3: Permission denied at com.jcraft.jsch.ChannelSftp.throwStatusError(ChannelSftp.java:2629) […]

InetAddress.getByName(host).isReachable(timeout)的最佳替代方案

我正在尝试访问主机并拥有以下代码 if(!InetAddress.getByName(host).isReachable(TIMEOUT)){ throw new Exception(“Host does not exist::”+ hostname); } 我可以从Windows ping主机名,并在其上执行tracert并返回所有数据包。 但java抛出exception“Host is not exists ::”; 我给出的超时值是2000ms,到5000ms。 我也尝试了3000。 我无法理解这个问题的原因是什么。 我在网上研究过,有人说InetAddress.getByName(host).isReachable(time)不可靠,并且根据内部系统行事。 如果这是真的,最好的选择是什么。 请建议。

如何为Cobol副本生成java~jrecord代码

如何使用RecordEditor从Cobol Copybook 生成 Java~JRecord代码来读取/写入二进制EBCDIC大型机文件 。 这是一个问题和答案 ,试图防止提出一些不良/误导性问题,或者可以指出答案。