Xmlparserv2 error while application deployed in jboss, Installing Oracle ojdbc module in JBoss for Java web application

后端 未结 2 1454
一整个雨季
一整个雨季 2021-01-16 09:20

Referring to this SO thread - Java: Returning XMLType Data from StoredProcedure, Usage of ojdbc6.jar xdb6.jar xmlparserv2.jar for Java to PLSQL interaction [ojdbc6.jar, xdb6

2条回答
  •  感情败类
    2021-01-16 09:54

    Here's how I declare an Oracle datasource (for calling pl or executing xqueries)

    Injecting the Datasource (in a stateless ejb)

    @Resource(name = "java:jboss/datasources/xmlDatasource")
    private DataSource productDS;
    

    Declaring the datasource in standalone.xml

    
        jdbc:oracle:thin:@xxx:1521:xxx
        oracle.jdbc.driver.OracleDriver
        oracle
        
            0
            10
        
        
            xxx
            xxx
        
    
    
        
            oracle.jdbc.OracleDriver
        
    
    

    Module definition

    
    
        
            
        
        
            
        
    
    

    Add the module dependency to my ear application (which has the stateless ejb inside..) using maven (or edit your manifest.mf and add the module name)

    
        
            oracle.jdbc
        
    
    

提交回复
热议问题