Camel中的文件读取问题(File read issue in Camel)
我在申请中使用
camel
。 我的客户端将使用SFTP将其文件放在我的服务器文件夹中。 然后我的应用程序将处理文件。 有时他会放大文件,我的应用程序在将文件写入我的服务器文件夹时读取文件。要解决这个问题,我的朋友建议2个选项:
- readLock =改
- preMove。
在我的情况下哪个是正确的?
from("file://target/input")
I am using
camel
in my application. My client will place his files in my server folder using SFTP. My application will then process the files. Sometimes he puts big files, and my application reads the file while they're being written into my server folder.To solve this issue my friends suggest 2 options:
- readLock=changed
- preMove.
Which is correct in my case?
from("file://target/input")
原文:https://stackoverflow.com/questions/31662376
更新时间:2022-02-25 07:02
最满意答案
有几件事需要评论:
- 这里要强调的最重要的事情是,如果您将信用卡放在AirTicket电话上,它将被收费。
- 没有办法发送蒙面信用卡,你可以发送一个被收费或不发送。
- 如果您不想发送信用卡,这是您处理付款后似乎明智的做法,那么在AirTicket电话中,您应该使用CASH进行付款。
There are several things to comment:
- The most important thing to highlight here is that if you put the credit card on the AirTicket call, it will be charged.
- There is no way to send a masked credit card, you either send one to be charged or not send it.
- If you don't want to send the credit card, which seems to be a sensible thing to do since you are handling the payment, then in the AirTicket call you should use CASH for payment.
相关问答
更多-
你不能。 该网站不提供有关该卡的所有信息,因为这是不必要的,并构成诈骗威胁。 在API文档中,我们将找到共享信息的示例。 "source": { "id": "card_1BLoXK2eZvKYlo2CUZoDPXh1", "object": "card", "address_city": null, "address_country": null, "address_line1": null, "address_line1_check": null, "address_line2": null, "add ...
-
掩盖信用卡号码(Masking credit card number)[2022-06-03]
正则表达式可以正常工作,所以你拥有的是好的。 要实际执行正则表达式,请使用以下代码: $str = "The quick brown fox jumps over 5192696222257727 dog."; $masked = preg_replace("/(?:4[0-9]{12}(?:[0-9]{3})?|5[1-5][0-9]{14}|6(?:011|5[0-9][0-9])[0-9]{12}|3[47][0-9]{13}|3(?:0[0-5]|[68][0-9])[0-9]{11}|(?:21 ... -
您可以使用信用卡类型的模块 let creditCardType = require('credit-card-type'); let visaCards = creditCardType(yourCCNumber); console.log(visaCards[0].type); // Type You can use a module like credit-card-type let creditCardType = require('credit-card-type'); let visaC ...
-
如果您有权在Stripe帐户中编写Radar规则,则可以编写规则来阻止卡,如果卡指纹与您要阻止的卡匹配。 卡指纹对于特定卡是唯一的,因此这将清除使用该特定卡所产生的任何费用。 该规则如下: Block if :card_fingerprint: = 'hr23f4S8u1aOxh5R' 这将通过导航到仪表板的雷达部分,然后导航到规则选项卡来添加。 然后会有一个添加规则按钮。 卡指纹可以在付款的卡详细信息部分的仪表板中找到,也可以通过运行检索费用API调用通过API找到,该调用返回卡指纹以及一系列附加信息。 ...
-
Converge Payment Api的测试信用卡号是多少?(What is the test credit card number for Converge Payment Api?)[2022-02-27]
我收到错误# 9999 ,并显示“ Only Test Cards Allowed ”消息。 我在Elavon的网站上找到了一个样本,其中有一个信用卡号为5472063333333330 。 使用这个数字,我的测试能够通过。 I was getting Error # 9999 with the message Only Test Cards Allowed. I found a sample on Elavon's site that had an example with the credit card ... -
在PHP中掩盖信用卡号码(Mask credit card number in PHP)[2022-08-16]
这应该使用substr : function ccMasking($number, $maskingCharacter = 'X') { return substr($number, 0, 4) . str_repeat($maskingCharacter, strlen($number) - 8) . substr($number, -4); } This should work using substr: function ccMasking($number, $maskingCharacte ... -
有几件事需要评论: 这里要强调的最重要的事情是,如果您将信用卡放在AirTicket电话上,它将被收费。 没有办法发送蒙面信用卡,你可以发送一个被收费或不发送。 如果您不想发送信用卡,这是您处理付款后似乎明智的做法,那么在AirTicket电话中,您应该使用CASH进行付款。 There are several things to comment: The most important thing to highlight here is that if you put the credit card on ...
-
您绝对不应该使用URL参数来获取信用卡信息。 网络上的其他客户端访问的URL很容易被网络上的其他计算机嗅探和记录(当然也有某些限制)。 您应该使用POST参数提交信息,以便它们包含在邮件正文中,而不是URL本身。 然后,只要您提交到HTTPS页面,数据就应该是安全的,而不需要先加密它(在这种情况下,消息本身使用SSL加密)。 You should absolutely not be using URL parameters for the credit card information. URLs that ...
-
您缺少名称空间声明。 尝试在RQ标头中添加xmlns =“http://webservices.sabre.com/sabreXML/2011/10”。 You're missing the namespace declarations. Try adding xmlns="http://webservices.sabre.com/sabreXML/2011/10" in the RQ header.
-
在React中输入掩码卡号(Mask card number input in React)[2023-05-09]
mask函数必须应用于jquery对象,而不是普通的dom元素,并且还需要将此行放在componentDidMount中。 componentDidMount: function () { var $input_elem = $(React.findDOMNode(this.refs.cardInput)); // now you have a jquery object $input_elem.mask("0000 0000 0000 0000", callback_options ...