CVS Update - 050628

"Sasa Bojanic" <[email protected]>
Newsgroups gmane.comp.java.enhydra.shark
Message-ID <00c701c57bce$85f8ed50$1200a8c0@bobrock>
Hi,

there are some changes in CVS in order to enable usage of Data Sources.

We tested Data Sources with JSPClient application comming with shark, on Tomcat-5.5.9, and it works if you do some worarounds:


1. create new folder sharkworklisthandler under Tomcat's webapps foler, and unpack sharkworklisthandler.war there
2. change Shark.conf file:
    - add new lines:
        DatabaseManager.DB.sharkdb.Connection.DataSourceName=jndi:hsqlDB
        DatabaseManager.DB.sharkdb.Connection.ConnectionFactory=com.lutris.appserver.server.sql.DataSourceDBConnectionFactory
        DatabaseManager.DB.sharkdb.ConnectionAllocator=com.lutris.appserver.server.sql.datasource.DataSourceConnectionAllocator
    - comment lines:
        #DatabaseManager.DB.sharkdb.JdbcDriver="org.hsqldb.jdbcDriver"
        #DatabaseManager.DB.sharkdb.Connection.Url="jdbc:hsqldb:@@/db/hsql/hsql"
        #DatabaseManager.DB.sharkdb.Connection.User="sa"
        #DatabaseManager.DB.sharkdb.Connection.Password=""
3. put attached context.xml file into webapps/sharkworklisthandler/meta-inf and modify url path if neccessary
4. put attached jar files in webapps/sharkworklisthandler/web-inf/lib (there are 4 new jars eafXXX.jar and util.jar that should
replace the original one)
5. copy hsqldb.jar from sharkworklisthandler/web-inf into Tomcat's common/lib
6. start Tomcat and open URL http://localhost:8080/sharkworklisthandler/ from your WEB browser


Regards,
Sasa.
context.xml (text/xml, 343 B)
<?xml version="1.0" encoding="UTF-8"?>
<Context>
  <Resource
    name="hsqlDB"
    type="javax.sql.DataSource"
    password=""
    driverClassName="org.hsqldb.jdbcDriver"
    maxIdle="2"
    maxWait="5000"
    username="sa"
    url="jdbc:hsqldb:C:/jakarta-tomcat-5.5.9/webapps/sharkworklisthandler/db/hsql/hsql"
    maxActive="4"/>
</Context>
eaf_api.jar (application/octet-stream, 73.1 KB) - not displayed
eafcommonlogging.jar (application/octet-stream, 4.4 KB) - not displayed
eafconfreader.jar (application/octet-stream, 11.9 KB) - not displayed
eaflog4j.jar (application/octet-stream, 7.7 KB) - not displayed
util.jar (application/octet-stream, 70 KB) - not displayed
message.footer (text/plain, 271 B)
--
You receive this message as a subscriber of the [email protected] mailing list.
To unsubscribe: mailto:[email protected]
For general help: mailto:[email protected]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.