是否有不同的方法从 Oracle Application Express 调用 Java

发布于 2024-08-12 08:06:04 字数 313 浏览 1 评论 0原文

朋友们,

我正在处理一个需要从 Apex 调用 Java API 的需求。

我提出的解决方案是创建一个 Java 类,将其存储在数据库中并添加一个 PL/SQL 包装器,然后使用它。这几乎就是这里描述的内容

虽然我对此感到满意,但我有兴趣知道这是否是唯一的方法?我还可以探索其他选择吗?

提前致谢

Friends,

I'm working on a requirement where I need to call a Java API from Apex.

The solution I put forward was to create a Java class, store it the database and add a PL/SQL wrapper and then use it. Which is pretty much what is described here.

Whilst I am happy with this, I am interested to know if this is the only method? are there other options that I could explore?

Thanks in advance

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

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

发布评论

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

评论(1

还在原地等你 2024-08-19 08:06:04

据我所知,APEX 对于调用 Java 存储过程没有任何特殊之处。
因此,这与从 PL/SQL 中调用 Java SP 是一样的。

此处所示 除了您现在使用的方法之外,没有其他方法可以做到这一点。
我只想补充一点,您实际上所说的包装器实际上是 Java SP 发布到数据字典的方式(它使其可用于 SQL/PLSQL 上下文)。在您的情况下,您可以通过定义顶级调用规范来完成此操作。或者,您可以通过定义包或对象类型调用规范来发布它。有关更多详细信息,请参阅此链接

From what I've seen, APEX doesn't have anything special for calling Java Stored Procedures.
So it's the same thing as calling a Java SP from within PL/SQL.

As can be seen here there is no other way of doing it beside the one you use now.
I would just add that what you actually call a wrapper is in fact the way a Java SP is published to the data dictionary(it makes it available to the SQL/PLSQL contexts). In your case you do it by defining a top-level call specification. Alternatively you can publish it by defining either a package or an object type call specification. For more details see this link.

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