首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > Java > 连接池的快速远程本机库调用

连接池的快速远程本机库调用

  • 资源大小:12.05 kB
  • 上传时间:2021-06-30
  • 下载次数:0次
  • 浏览次数:0次
  • 资源积分:1积分
  • 标      签: 远程 调用 连接 快速 本机

资 源 简 介

Fast Remote Native library Invocation with connection pooling Enable invoke remote service using TCP protocol Allows reuse libraries that do not support simultaneous access. The libraries can be local or remote, the invocation of the libraries can be invoker using JNA. The principle is as follows: The service is started on a TCP / IP port waiting for a connection. A process connects to the remote service. It waits for instructions: - The execution of a service - The creation of a new process Use case your library is not thread safe Your library is not sure (segmation fault, crash) and can"t be used in java server environment. Your libray is executed on an specific environment ``` @Override protected void setUp() throws Exception { /* * Start the server, listen default port 1234 */ MyServer server = MyServer.startServer(1234); // Start the remote service client Proc
VIP VIP
0.260331s