问题描述
我正在开发一个IDOC服务器,它可以连接到同一SAP系统上的多个目的地(网关主机将是相同的)并接收IDoc.我不确定是否需要运行多个JCoServer实例或具有多个目标的单个JCoServer.
I'm developing a IDOC server which can connect to multiple destinations on same SAP system(gateway host will be same) and receive IDocs. I'm not sure that I need multiple JCoServer instance running or single JCoServer with multiple destinations.
如果是后者,为什么在提供服务器数据时会有一个参数使用jco.server.repository_destination
属性指定目标名称?
If latter is the case, why would there is a parameter to specify the destination name using jco.server.repository_destination
property when providing the server data?
推荐答案
属性jco.server.repository_destination
用于告诉JCoServer使用哪个JCoDestination从SAP系统查询所需的RFC元数据.正确解释传入的RFC请求数据始终需要RFC元数据.
The property jco.server.repository_destination
is for telling the JCoServer which JCoDestination to use for querying required RFC meta data from the SAP system. RFC meta data is always needed for interpreting incoming RFC request data correctly.
因此,如果您的JCoServer仅用于服务源自同一SAP系统(相同SID)的RFC请求,则指定jco.server.repository_destination
就足够了.无论从此ABAP系统使用哪个RFC目标(在SM59中定义),RFC元数据都不会更改.
So if your JCoServer is only for serving RFC requests which originate from the same SAP system (the same SID), then specifying jco.server.repository_destination
is sufficient. The RFC meta data won't change regardless which RFC destination (defined in SM59) is used from this ABAP system.
但是,如果JCoServer还应该服务从其他SAP系统(从其他SID)发起的RFC请求,则所需的RFC元数据可能会有所不同,因此您还应该指定jco.server.repository_map
.通常,应始终从与RFC请求相同的SAP系统中查询RFC元数据.
But if the JCoServer is also supposed to serve RFC requests initiated from other SAP systems (from other SIDs), then the needed RFC meta data may differ and you should specify a jco.server.repository_map
in addition. In general, RFC meta data should always be queried from the same SAP system where an RFC request originates from.
顺便说一句,您不能使用相同的jco.server.progid
启动多个JCoServer实例以在相同的jco.server.gwhost
和jco.server.gwserv
处进行注册.如果尝试,那么JCo将引发一些异常.每个progid/gwhost/gwserv组合集都需要一个JCoServer实例.
By the way, you cannot start multiple JCoServer instances with the same jco.server.progid
for registering at the same jco.server.gwhost
and jco.server.gwserv
. If you try then JCo will throw some exception. You need one JCoServer instance for each progid/gwhost/gwserv combination set.
这篇关于用于多个目标的JCO IDOC服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!