Has anyone configured JUDDI with msSQL data-store to work with JBOSS?
The problem I have encountered is that juddi web-application deployment descriptor uses following data source definition:
<resource-ref>
jUDDI DataSource
<res-ref-name>jdbc/juddiDB</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>CONTAINER</res-auth>
</resource-ref>
JNDI name resolves to: java:comp/env/jdbc/juddiDB
I use mySQL connector version 3.0.8 and I have configured data source descriptor mysql-ds.xml to look like:
<local-tx-datasource>
<jndi-name>comp/env/jdbc/juddiDB</jndi-name>
<connection-url>jdbc:mysql://localhost/juddi</connection-url>
<driver-class>com.mysql.jdbc.Driver</driver-class>
<user-name>...</user-name>
...
<min-pool-size>50</min-pool-size>
<max-pool-size>100</max-pool-size>
<blocking-timeout-millis>10000</blocking-timeout-millis>
<idle-timeout-minutes>15</idle-timeout-minutes>
</local-tx-datasource>
The problem is that data source is deployed under following JNDI: java:/comp/env/jdbc/juddiDB
It looks like that JBOSS adds '/' infant of JNDI path. Is it possible to get rid of the leading '/' or is there another way to resolve that problem?
Steve Viens already answered similar question (I should have read Juddi user group on sourceforge before posting question):
http://sourceforge.net/mailarchive/forum.php?thread_id=2782250&forum_id=7138
Just add property
juddi.dataSource=your_datasource
to
juddi.properties