Java Reference
In-Depth Information
<Resource name="jdbc/juddiDB" auth="Container"
type="javax.sql.DataSource"
username="juddi" password="juddi"
driverClassName="com.mysql.jdbc.Driver"
url="jdbc:mysql://localhost:3306/juddiDB?autoReconnect=true"
maxActive="100" maxIdle="30" maxWait="10000"
/>
</Context>
If you want to use a different database, just install its driver and put the appropriate URL in
the url field.
Note that you will have to restart Tomcat to pick up the changes in the context. To do so, nav-
igate to your Tomcat bindirectory and issue these commands:
$ ./shutdown.sh
$ ./startup.sh
$ tail -n1000 -f ../logs/catalina.out
The tail command allows you to see the end of the logs file, and the -f (force) switch keeps
it scrolling as entries are added. (Of course, that's optional.) Now that the server is running
again, go to the home page at http://localhost:8080/juddi/ and click the “Validate” link
to make sure that everything went well.
If the Happy jUDDI page has no red in it, as shown in Figure 11-1 , you're all set to start pub-
lishing to your repository using the JAX-R API.
Search WWH ::




Custom Search