Firedac TFDEventAlerter 和 Firebird 4.0

发布于 2025-01-16 11:21:55 字数 632 浏览 1 评论 0原文

我正在尝试使用 Delphi 10.4 中的 Firedac TFDEventAlerter 来处理 Firebird 4.0 数据库的事件。这可能吗?

在 Firebird 2.5 中一切正常,但与 Firebird 4.0 结合使用的相同代码不会响应 post_event()。

我还没有尝试过Firebird 3.0。我使用 fbClient 4.0.1.2692

我将客户端应用程序复制到运行 Firebird4.0 的服务器,并且可以正常工作(!)。事件是否使用不同的端口? 我想,如果客户端能够连接到数据库那就足够了。

正如 Arioch 所建议的,我查看了 firebird.conf,并看到以下内容:

# The TCP Port Number to be used for server Event Notification
# messages.The value of 0 (Zero) means that the server will choose
# a port number randomly.
#
# Per-connection configurable.
#
# Type: integer
#
#RemoteAuxPort = 0

因此,我想,我必须选择一个固定端口,并在防火墙中打开它。

I am trying to use the Firedac TFDEventAlerter in Delphi 10.4 to handle the events of a Firebird 4.0 database. Is that possible?

With Firebird 2.5 it all works fine, but the same code in combination with Firebird 4.0 does not respond to the post_event().

I have not tried it with Firebird 3.0. I use fbClient 4.0.1.2692

I copied the client application to the server where Firebird4.0 is running, and that works (!). Is it so that the events are using a different port?
I thought, if the client can connect to the database that should be enough.

As Arioch suggested, I took a look at firebird.conf, and see the following:

# The TCP Port Number to be used for server Event Notification
# messages.The value of 0 (Zero) means that the server will choose
# a port number randomly.
#
# Per-connection configurable.
#
# Type: integer
#
#RemoteAuxPort = 0

So, I suppose, I have to choose a fixed port, and open it in the firewall.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

我不在是我 2025-01-23 11:21:55

正如OP 在其他地方发布的

与版本无关。
FB4.0运行于
另一台服务器,我必须调整端口的防火墙
发送的事件(在 firebird.config 中配置)

As the OP posted elsewhere:

It had nothing to do with the version.
The FB4.0 was running on
another server, and I had to adjust teh firewall for the port the
events where sent ( configured in firebird.config )

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文