将应用程序从 Eclipse 部署到 OAS (OC4J)
我们使用 JDev 开发应用程序并将其部署到 OC4J 和 OAS。 我们曾经使用 JDev 在开发和部署时为我们创建数据源配置。 (在开发中使用 jdev 附带的向导连接到数据源..并且在部署中因此我们不需要在应用程序服务器上手动进行任何数据源配置)
但是,当我们迁移到 eclipse 时,我们可以除非我们手动创建数据源(使用 em
或 j2ee\home\config\data-sources.xml
但在某些部署中,我们可能无法做到这一点,
那么,我们是否可以向 EAR 添加一些文件,以便我们可以告诉 OAS 我们需要从中创建 DS? 提示(我听说一些名为 orion*.xml 的东西,这与该请求有关吗?
谢谢。
We were using JDev to develop our applications and deploy them to OC4J and OAS.
we used to use JDev to create the data-source configuration for us both on dev and on deployment. (on dev using the wizard that come with jdev to connect to data-source.. and on deployment hence we don't need to do any Data-source configurations on the app server manually)
But, when we moved to eclipse, we couldn't no longer be able to deploy the EAR file unless we create the data-source manually (either using the em
or j2ee\home\config\data-sources.xml
but on some deployment, we may not be able to do such thing.
So, can we add some files for example to the EAR so that we can tell OAS that we need from it to create the DS for us??
Hint (I am hearing about some thing named orion*.xml, is this related to that request??
Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
你可以。
您需要将正确的 data-sources.xml 放入 EAR/META-INF 中,并从 EAR/META-INF/orion-application.xml 引用它,就像 j2ee\home\config\data-sources.xml 一样从 j2ee\home\config\application.xml 引用
You can.
You need to place the correct data-sources.xml into your EAR/META-INF and reference it from your EAR/META-INF/orion-application.xml the same way as j2ee\home\config\data-sources.xml is referenced from j2ee\home\config\application.xml