简体   繁体   English

如何使用来自一个客户端的两个自定义打包程序在 JPOS 中解析两种不同的 iso 格式

[英]How can i parse two different iso format in JPOS with two custom packager from one client

I am using JPOS for implement EFT switch.我正在使用 JPOS 来实现 EFT 开关。 I have a client that depend on Bank bin send two different format of the ISO8583.我有一个依赖银行 bin 的客户端发送两种不同格式的 ISO8583。 How can i process all requests and response same type of request ISO.我如何处理所有请求并响应相同类型的请求 ISO。

I use this XML to config clients我用这个 XML 来配置客户端

<channel-adaptor name="cms-rx-tx" class="org.jpos.q2.iso.ChannelAdaptor">

    <channel class="org.jpos.iso.channel.ASCIIChannel"
             packager="org.jpos.iso.packager.ISO87APackager">
        <property name="host" value="xxx.xxx.xxx.xxx"/>
        <property name="port" value="xxxx"/>
        <property name="connect-timeout" value="15"/>
    </channel>
    <in>cms-channel-client-send</in>
    <out>cms-channel-client-receive</out>
    <reconnect-delay>10000</reconnect-delay>
</channel-adaptor>

If you want to use the same port, you need a special Channel implementation that would override the 'getDynamicPackager' method.如果要使用相同的端口,则需要一个特殊的 Channel 实现来覆盖“getDynamicPackager”方法。 It's customary to use different ports for different packagers, though.不过,习惯上为不同的打包程序使用不同的端口。

暂无
暂无

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

相关问题 在不知道格式的情况下解析JSON(可以是两个不同的对象之一) - Parse JSON without knowing format (can be one of two different objects) 如何从Jpos ISO8583打包文件中读取所有记录,其中包含一行中的所有记录 - How to read all records from Jpos ISO8583 packaged file which contains all records in one line 如何将两个不同的文本意图从一个活动发送到另一个活动到同一个 textview? - How can I send two different text intents to the same textview from one activity to another? 使用 JPOS 附加 2 个字节的十六进制长度两个 Iso8583 消息 - Appending length in hex of 2 bytes two Iso8583 message using JPOS 从jPOS ISO提取元素值 - Extracting Element Value from jPOS ISO 如何使用 JPOS ISO8583 消息格式通过传递字段名称来检索字段值 - How to retrieve field values by passing field name using JPOS ISO8583 message format 如何在不复制代码的情况下从两个不同的CSV文件读取并创建两个不同的数组? - How can I read from two different CSV files and create two different arrays without duplicating code? 是否有(在 jpos 中)任何将 ISO 消息从一个版本转换为另一个版本的转换器? - Is there (in jpos) any convertor which convert ISO message from one verion to another version? 我如何从两个不同的表中获取数据 - How can i get data from two different tables 如何映射来自不同数据源的两个模型? - How can I map two models from different data sources?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM