Oracle Data Source Configuration Prerequisites: Jboss_home=jboss's home directory (installation directory) has the Jndi name of the test Jboss4.2.0-ga version data source is oracleds Oracle data source with password code is configured 1%jboss_home%/docs/examples/jca/oracle-ds.xml copy to%jboss_home%/server/default/deploy directory 2 Open Oracle-ds.xml, do the following edit a modify Jndi name <jndi-name> oracleds</jndi-name> b Modify DB URL < Connection-url> Jdbc:oracle:thin: @localhost:1521:yyaccp</connection-url> c Modify Driver <driver-class >oracle.jdbc.driver.OracleDriver</driver-class> d Modify user name and password <user-name >noble</user-name> <password>yyaccp</password> 3 Open%jboss_home%/ Server/default/conf/standardjbosscmp-jdbc.xml Modify Data source <datasource>java:/OracleDS</datasource> 4 Open %jboss_home%/server/default/conf/login-config.xml Copy the following to the file last <application-policy name = "Oracledbrealm "> <authentication> <login-module code =" Org.jboss.resource.security.ConfiguredIDentityloginmodule " flag =" Required "> < Module-option name = "Principal" >OracleDS</module-option> <module-option name = "UserName" >noble</module-option> <module-option name = "Password" >yyaccp</module-option> <module-option name = "Managedconnectionfactoryname" > Jboss.jca:service=localtxcm,name= OracleDS </module-option> </login-module> </authentication> </application-policy> 5 Oracle driver, copy to%jboss_home%/server/default/lib directory 6 complete JBOSS Oracle data source configuration &NB Sp above operation, the completion of JBOSS basic data source configuration, but the configuration file has a password in the code, unsafe, the following describes how to encrypt the password configuration 1 generate encrypted password a Enter the DOS command line mode b Set jboss_home environment variable c JAVA-CP%jboss_home%/lib/jboss-jmx.jar;%jboss_home%/lib/jboss-common.jar;%jboss_home%/server/default/lib /jboss-jca.jar;%jboss_home%/server/default/lib/jbosssx.jar ORG.JBOSS.RESOURCE.SEcurity. Secureidentityloginmodule YYACCP d generate YYACCP Encryption Password: 7236463cd79f258f 2 Repeat configuration as above configuration 3 modify%jboss_home%/server/ Default/deploy/oracle-ds.xml replaces previous < with <security-domain> encryptdbpassword</security-domain> User-name>noble</user-name> <password>yyaccp</password> 4 Open%jboss_home%/server/ Default/conf/login-config.xml a <application-policy name = "Oracledbrealm" > to < Application-policy name = "Encryptdbpassword" > B will <login-module code = " Org.jboss.resource.security.ConfiguredIdentityLoginModule " flag = "Required" > changed to <login-module code = " Org.jboss.resource.security.SecureIdentityLoginModule " flag = "Required" > C convert <module-option name = "Password" >yyaccp</module-option> to <module-option name = "Password" > 7236463cd79f258f </module-option> D Delete <module-option name = "Principal" >OracleDS</module-option> 5 Complete the Oracle data source configuration for JBoss encrypted passwords
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.