I copied the cloudscape driver files to [jboss-home] \ lib \ ext.
Edited jboss.conf
Started jBoss.
Deployed a few beans in a jar-file.
Everything appears to be okay according to server.log and standard output.
:-)
Now:
What do I need to do in order to map my datasource name correctly, meaning:
In my beans I want to connect to Cloudscape this way:
DataSource ds = (DataSource)
nitial.lookup( "java:comp/env/jdbc/ConferenceDB" );
The beans which should access cloudscape have the following resource-ref in
ejb-jar.xml:
<resource-ref>
<res-ref-name> jdbc/ConferenceDB </res-ref-name>
<res-type> javax.sql.DataSource </res-type>
<res-auth> Container </res-auth>
<res-sharing-scope> Shareable </res-sharing-scope>
</resource-ref>
Currently, after deploying my jar file, the output on port 8082 looks like
this for these beans:
+ env (class: org.jnp.interfaces.NamingContext)
| + jdbc (class: org.jnp.interfaces.NamingContext)
| | + ConferenceDB[link -> java: / DefaultDS] (class:
javax.naming.LinkRef)
I guess that should say Cloudscape instead of DefaultDS - or not ?
I know it has something to do with jBoss.xml, but didn't find an example
for that. What has to go into jboss.xml ?
Thanks
Ralph
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user