[JBoss-user] [Beginners Corner] - Sessionbean and DB connection PB

2004-05-07 Thread aquafresh
Hello,

I have a problem when I want to access a database via my session bean

I use Jboss3.2.3 with postgresql 7.4 db

I have got a MDB tha listening on a topic when it receives a message a session bean is 
instanciated and this one get record from a database

but after deploying my beans and the start my publisher I have got the following error 
display in Jboss console:
10:40:04,027 ERROR [STDERR] javax.naming.NameNotFoundException: jdbc not bound

My xml files are:
AdminDB-ds.xml


  local-tx-datasource
jndi-nameAdminDB/jndi-name
connection-urljdbc:postgresql://svt-lmk91:5432/AdminDB/connection-url
driver-classorg.postgresql.Driver/driver-class
user-namepostgres/user-name


   !-- new-connection-sql/new-connection-sql --

   check-valid-connection-sqlselect * from 
is_copyprotocol/check-valid-connection-sql

  /local-tx-datasource



ejb-jar.xml:
?xml version=1.0 encoding=ISO-8859-1?
!DOCTYPE ejb-jar PUBLIC -//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN 
http://java.sun.com/dtd/ejb-jar_2_0.dtd;

ejb-jar

  Deployment descriptor for the MDBTest 
  display-nameXferAgent/display-name
  enterprise-beans

  message-driven
Mdb for messages recieved about the test
display-nameMessage Driven Bean MdbTest/display-name
ejb-nameMdbTest2/ejb-name
ejb-classcom.iratensolutions.mdbDB.MdbTest2/ejb-class
transaction-typeBean/transaction-type 
acknowledge-modeAuto-acknowledge/acknowledge-mode
message-driven-destination
destination-typejavax.jms.Topic/destination-type
subscription-durabilityNotDurable/subscription-durability
/message-driven-destination
  
ejb-local-ref
ejb-ref-nameejb/SessionTestLocalHome/ejb-ref-name
ejb-ref-typeSession/ejb-ref-type
local-homecom.iratensolutions.mdbDB.SessionTestLocalHome/local-home
com.iratensolutions.mdbDB.SessionTestLocal
ejb-linkSessionTestBean/ejb-link
  /ejb-local-ref
/message-driven


ejb-nameSessionTestBean/ejb-name
local-homecom.iratensolutions.mdbDB.SessionTestLocalHome/local-home
com.iratensolutions.mdbDB.SessionTestLocal
ejb-classcom.iratensolutions.mdbDB.SessionTestBean/ejb-class
session-typeStateless/session-type
transaction-typeBean/transaction-type

  resource-ref
res-ref-namejdbc/AdminDB/res-ref-name
res-typejavax.sql.DataSource/res-type
res-authContainer/res-auth
 /resource-ref
 

  
  /enterprise-beans
  /ejb-jar

jboss.xml:

?xml version=1.0 encoding=UTF-8?

!DOCTYPE jboss PUBLIC
   -//JBoss//DTD JBOSS 3.2//EN
   http://www.jboss.org/j2ee/dtd/jboss_3_2.dtd;


  enterprise-beans
message-driven
ejb-nameMdbTest2/ejb-name
destination-jndi-nametopic/testTopic/destination-jndi-name
/message-driven



 ejb-nameSessionTestBean/ejb-name
 local-jndi-nameSessionLocalHome/local-jndi-name
 jndi-nameSessionLocalHome/jndi-name
 resource-ref
res-ref-namejdbc/AdminDB/res-ref-name
resource-nameAdminDB/resource-name
jndi-namejava:/AdminDB/jndi-name
 /resource-ref
  
   /enterprise-beans
  


Thanks for any help

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3834048#3834048

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3834048


---
This SF.Net email is sponsored by Sleepycat Software
Learn developer strategies Cisco, Motorola, Ericsson  Lucent use to 
deliver higher performing products faster, at low TCO.
http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Beginners Corner] - Sessionbean and DB connection PB

2004-05-07 Thread aquafresh
Hello,

I have a problem when I want to access a database via my session bean

I use Jboss3.2.3 with postgresql 7.4 db

I have got a MDB tha listening on a topic when it receives a message a session bean is 
instanciated and this one get record from a database

but after deploying my beans and the start my publisher I have got the following error 
display in Jboss console:
10:40:04,027 ERROR [STDERR] javax.naming.NameNotFoundException: jdbc not bound

My xml files are:
AdminDB-ds.xml


  local-tx-datasource
jndi-nameAdminDB/jndi-name
connection-urljdbc:postgresql://svt-lmk91:5432/AdminDB/connection-url
driver-classorg.postgresql.Driver/driver-class
user-namepostgres/user-name


   !-- new-connection-sql/new-connection-sql --

   check-valid-connection-sqlselect * from 
is_copyprotocol/check-valid-connection-sql

  /local-tx-datasource



ejb-jar.xml:
?xml version=1.0 encoding=ISO-8859-1?
!DOCTYPE ejb-jar PUBLIC -//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN 
http://java.sun.com/dtd/ejb-jar_2_0.dtd;

ejb-jar

  Deployment descriptor for the MDBTest 
  display-nameXferAgent/display-name
  enterprise-beans

  message-driven
Mdb for messages recieved about the test
display-nameMessage Driven Bean MdbTest/display-name
ejb-nameMdbTest2/ejb-name
ejb-classcom.iratensolutions.mdbDB.MdbTest2/ejb-class
transaction-typeBean/transaction-type 
acknowledge-modeAuto-acknowledge/acknowledge-mode
message-driven-destination
destination-typejavax.jms.Topic/destination-type
subscription-durabilityNotDurable/subscription-durability
/message-driven-destination
  
ejb-local-ref
ejb-ref-nameejb/SessionTestLocalHome/ejb-ref-name
ejb-ref-typeSession/ejb-ref-type
local-homecom.iratensolutions.mdbDB.SessionTestLocalHome/local-home
com.iratensolutions.mdbDB.SessionTestLocal
ejb-linkSessionTestBean/ejb-link
  /ejb-local-ref
/message-driven


ejb-nameSessionTestBean/ejb-name
local-homecom.iratensolutions.mdbDB.SessionTestLocalHome/local-home
com.iratensolutions.mdbDB.SessionTestLocal
ejb-classcom.iratensolutions.mdbDB.SessionTestBean/ejb-class
session-typeStateless/session-type
transaction-typeBean/transaction-type

  resource-ref
res-ref-namejdbc/AdminDB/res-ref-name
res-typejavax.sql.DataSource/res-type
res-authContainer/res-auth
 /resource-ref
 

  
  /enterprise-beans
  /ejb-jar

jboss.xml:

?xml version=1.0 encoding=UTF-8?

!DOCTYPE jboss PUBLIC
   -//JBoss//DTD JBOSS 3.2//EN
   http://www.jboss.org/j2ee/dtd/jboss_3_2.dtd;


  enterprise-beans
message-driven
ejb-nameMdbTest2/ejb-name
destination-jndi-nametopic/testTopic/destination-jndi-name
/message-driven



 ejb-nameSessionTestBean/ejb-name
 local-jndi-nameSessionLocalHome/local-jndi-name
 jndi-nameSessionLocalHome/jndi-name
 resource-ref
res-ref-namejdbc/AdminDB/res-ref-name
resource-nameAdminDB/resource-name
jndi-namejava:/AdminDB/jndi-name
 /resource-ref
  
   /enterprise-beans
  


Thanks for any help

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3834049#3834049

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3834049


---
This SF.Net email is sponsored by Sleepycat Software
Learn developer strategies Cisco, Motorola, Ericsson  Lucent use to 
deliver higher performing products faster, at low TCO.
http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user