Hi All,
I thought it'd be a good idea to share this with all of you. I was trying to configure an MS Access DS using JBoss 3.0 (Jdk 1.4.0, NT) and downloaded the msaccess-service.xml file from the CVS. Then I struggled for 2-3 days to get it working. Everytime I try to access the DS, I'd get a NameNotFoundException. The DS was not registering in the JNDI tree. After a lot of juggling, finally got it working. Here's the file that's working :
---------------------------------------------
<?xml version="1.0" encoding="UTF-8"?>
<depends optional-attribute-name="ManagedConnectionFactoryName">
MSAccessDS
<config-property name="ConnectionURL" type="java.lang.String">jdbc:odbc:MSAccessDSN</config-property>
<config-property name="DriverClass" type="java.lang.String">sun.jdbc.odbc.JdbcOdbcDriver</config-property>
<depends optional-attribute-name="OldRarDeployment">jboss.jca:service=RARDeployment,name=JBoss LocalTransaction JDBC Wrapper
<depends optional-attribute-name="ManagedConnectionPool">
0
50
5000
15
ByContainer
<depends optional-attribute-name="CachedConnectionManager">jboss.jca:service=CachedConnectionManager
<depends optional-attribute-name="JaasSecurityManagerService">jboss.security:name=JaasSecurityManager
java:/TransactionManager
jboss.jca:service=RARDeployer
---------------------------------------------
The problem I think was with the JaasSecurityManagerService config. It said jboss:security:service. But I got it working by modifying to jboss:security:name. Being a newbie, I'm not sure what this means but it sure works :). Also the JNDI name should appear under RARDeployment MBean which was outside in the original file. Someone please update the CVS tree so that others don't struggle the way I had to.
Bye
Feroz