[jboss-user] [Datasource Configuration] New message: "XADatasource Oracle configuration"
Krishna Attravanam
do-not-reply at jboss.com
Thu Mar 4 14:34:44 EST 2010
User development,
A new message was posted in the thread "XADatasource Oracle configuration":
http://community.jboss.org/message/530043#530043
Author : Krishna Attravanam
Profile : http://community.jboss.org/people/akrishmohan
Message:
--------------------------------------------------------------
Hi -
I have been trying to bind an XADatasource to JNDI and this is the configuration I am using.But for some reason, I dont see the datasource getting bound to JNDI. Not sure where the problem is. Is there any additional configuration missing? ANy pointers would be helpful.
Ds.xml
<datasources>
<!-- Here's an xa example -->
<xa-datasource>
<jndi-name>OracleXaDS</jndi-name>
<xa-datasource-class>oracle.jdbc.xa.client.OracleXADataSource</xa-datasource-class>
<xa-datasource-property name="URL">jdbc:oracle:thin:@blah:1525:DB</xa-datasource-property>
<security-domain>CustomXARealm</security-domain>
<!--pooling parameters-->
<min-pool-size>5</min-pool-size>
<max-pool-size>100</max-pool-size>
<blocking-timeout-millis>5000</blocking-timeout-millis>
<idle-timeout-minutes>15</idle-timeout-minutes>
<metadata>
<type-mapping>Oracle9i</type-mapping>
</metadata>
</xa-datasource>
</datasources>
Login-config.xml
----------------------
<application-policy name = "CustomXARealm">
<authentication>
<login-module code = "mypackage.CustomLoginModule"
flag = "required">
<module-option name = "principal">user</module-option>
<module-option name = "userName">user</module-option>
<module-option name = "password">encryptedpassword</module-option>
<module-option name = "managedConnectionFactoryName">jboss.jca:service=XATxCM,name=OracleXaDS</module-option>
</login-module>
</authentication>
</application-policy>
Please help.
Thanks
K
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/530043#530043
More information about the jboss-user
mailing list