Using jBoss 2.0 BETA PROD 02, I am trying to perform relational queries on
the default database (the one used by default if I create an entity bean)
from a session bean. When I try to look up the data source in the naming
context, I get an exception, and the jBoss console indicates that the
database name is not bound to the naming context.
The deployment descriptor for my session bean contains the following
element:
<resource-ref>
<description>Data source for Hypersonic database.</description>
<res-ref-name>jdbc/Hypersonic</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>
In my session bean, I have:
DataSource dataSource = (DataSource)
jndiContext.lookup("java:comp/env/jdbc/Hypersonic");
As I understand it, I need to add some information some configuration files
as well, but I don't know specifically what I should add, and to which
files. Could someone provide this information, tailored to my particular
example?
---
Roger L. Cauvin
[EMAIL PROTECTED]
http://www.thegym.net/rcauvin
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Problems?: [EMAIL PROTECTED]