是否有不同的方法从 Oracle Application Express 调用 Java
朋友们,
我正在处理一个需要从 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
据我所知,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.