我查看了 Internet,但找不到任何简单的教程或文档来解释该问题。
我想将我的 JBoss 7.1.1 Final 连接到 Oracle 数据库。我在 64 位 Windows 上使用 Oracle Database 11g 快捷版。
问题是我应该怎么做才能将我的 jboss 连接到 Oracle DB?
最佳答案
检查这个答案 jboss 7 oracle datasource configuration
简而言之,您必须为您的 oracle 驱动程序声明一个 jboss 模块。 然后,您在 standalone-xxx.xml 中创建数据源并添加对驱动程序的引用。
最后,您可以通过使用数据源中声明的 jndi-name 在任何 persistence.xml 中使用此数据源。
所有这些都在提供的 url 中进行了解释。
祝你好运!
关于database - 如何将 JBoss 7.1.1 Final 连接到 Oracle 数据库?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26062181/