[JBoss-user] [EJB/JBoss] - jdbc not bound

2004-12-29 Thread barunkdas
hi all,

i am using Eclipse as my IDE, JBoss as my AS, Postgres as my Database server. 
when i am trying to connect database from my action class its get connected but 
when i'm using EJB and trying to connect i get error 
"javax.naming.NameNotFoundException: jdbc not bound". i'm having class to get 
connection. code is as simple as

Context ctx = new InitialContext();
DataSource ds = (DataSource) ctx.lookup("java:comp/env/jdbc/myCoreDS");
Connection conn = ds.getConnection();

Please help me cause i've spent lots of time and i have not got any thing 
useful.

Thanking you in advance.

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3860090#3860090

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3860090


---
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB/JBoss] - jdbc not bound

2004-04-19 Thread rilux
Hi,

I've been hunting around for fixes for the "jdbc not bound"  naming exception problem 
found when trying to create a datasource without any luck.  It must be a configuration 
issue.  

I'm using a PostgreSQL database but cannot connect to it.  I just get the "jbdc not 
bound" error message.  My configuration files are below.  Can anyone spot the problem.

Cheers,

Rilux
postgres-service.xml 




  
FooDS
jdbc:postgresql://localhost:5432/foo
org.postgresql.Driver
foo
bar




  



ejb-jar.xml:
   
  FooDS
  java:/comp/env/jdbc/FooDS
  javax.sql.Datasource
  Container

(this is at the start of the file.  Should it be at the end?)

jboss.xml:
   
  
 FooDS
 java:/comp/env/jdbc/FooDS
  




View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3831476#3831476

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3831476


---
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user