Skip to Main Content

Java Database Connectivity (JDBC)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

firebird- jboss jndi configuration... FirebirdDs not bound

843854Dec 17 2003 — edited Dec 18 2003
I've tried to access to a firebird db with jndi.... Before a LOT of time ( and a tips... thank's mozheyko_d ;))
with tomcat it's fine.... but i need to using jboss.... so, i've :
-dowloaded latest version (3.2.3 - tomcat 4.1.29)
-put a copy of firebird-ds.xml (with correct filename... for testing i've leave original jndi name firebirdDS) onto JBOSS_HOME\server\default\deploy

.....

<attribute name="FileName">c:/progetti/db/users.fdb</attribute>
....

.....
<config-property name="Database" type="java.lang.String">localhost/3050:c:/progetti/db/users.fdb</config-property>


-setting a default datasource onto standardjbosscmp-jdbc.xml
<defaults>
<datasource>java:/FirebirdDS</datasource>
<datasource-mapping>Firebird Database Connector</datasource-mapping>


Started jboss

driver seem to be configured (with jndiView i see firebirdds)
my application
....
ds = (DataSource) cntx.lookup("java:comp/env/FirebirdDS");
ds = (DataSource) cntx.lookup("java:comp/env/resourceAdapter/FirebirdDS");
.....
return
22:54:57,289 INFO [STDOUT] Error occurred javax.naming.NameNotFoundException: F
irebirdDS not bound



Someone could hel me? Thank's, Simone

PS another question ... with jbuilder 9 server setting , my jboss don't support naming/DIRECTORY service.... it's correct
main clASS org.jboss.Main
VM PARAMETER -ms64m -mx64m -Dprogram.name=run.bat
SERVER PARAMETER -c all
class zip:///[C%|/jboss/bin/run.jar]
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 15 2004
Added on Dec 17 2003
4 comments
275 views