在 Oracle 数据库中使用 Java
我当前的java代码部署到数据库,plsql代码调用它并使用它。 我需要从数据库中取出 Java 代码并且仍然能够使用它。
我想到的选项是:
- Web 服务
- Java 存储过程
- 调用操作系统命令
- 使用 pl/sql RMI
您的建议是什么? 请添加缺点和优点。
谢谢, 里兰
my current java code is deployed to the DB and the plsql code calls it and uses it.
I need to get the Java code out of the database and still be able to use it.
The options I had in mind are:
- Web services
- Java Stored Procedures
- Calling OS command using pl/sql
- RMI
What is your recommendation?
please add cons and pros.
thanks,
Leeran
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您能澄清一下“从数据库中获取 Java 代码”对您意味着什么吗?您是否打算将其打包到 JAR 中并将其从数据库中完全删除?我不清楚您是否希望将此操作移至中间层并且不再让 PL/SQL 调用它。
以下是我对您建议的选择的想法:
Can you clarify what "get the Java code out of the database" means to you? Is your intent to package it in a JAR and remove it from the database entirely? It's not clear to me whether or not you wish to move this operation to the middle tier and not have PL/SQL call it anymore.
Here are my thoughts on your proposed choices:
目前尚不完全清楚您想做什么或为什么。如果您只想重复使用一些代码,作为构建过程的一部分,请从数据库中获取 java,以便可以编译它并将其包含在您的 jar/war 文件中。
It isn't completely clear what you want to do or why. If you just want to re-use some code, as part of your build procedure, fetch the java from the database so it can be compiled and included in your jar/war file.