Re: [JBoss-user] JNDI name for datasource in JBoss2.4.4_Tomcat4.0.1 + MySQL

2002-03-05 Thread Christine
Thanks a lot. Danch. Now, I am using: ctx.lookup("java:/Customer") and change "java:/DefaultDS" to "java:/Customer", my lookup code works fine. So I assumed if i change "java:/Customer" back to "java:/DefaultDS", I also can lookup for "java:/DefaultDS". I will try to use "java:comp/env/jdbc/Custmo

Re: [JBoss-user] JNDI name for datasource in JBoss2.4.4_Tomcat4.0.1 + MySQL

2002-03-03 Thread danch
You're close! See comments inline below. -danch Christine wrote: > Sorry for miscopy in my previous email! > > The code in my function is : >javax.naming.Context ctx = new InitialContext(); >DataSource dbs = (DataSource) ctx.lookup("jdbc/Customer"); the name should be "java:comp/env/

Re: [JBoss-user] JNDI name for datasource in JBoss2.4.4_Tomcat4.0.1 + MySQL

2002-03-01 Thread Christine
I am sorry to confuse you by my mistake. I have a database in MySQL called Customer, which is specified in jboss.jcml. DefaultDS org.jboss.pool.jdbc.xa.wrapper.XADataSourceImpl jdbc:mysql://localhost/Customer Now, I wanted to use bind my database Customer to JNDI server with name

Re: [JBoss-user] JNDI name for datasource in JBoss2.4.4_Tomcat4.0.1 + MySQL

2002-03-01 Thread David Jencks
Why should jdbc/Customer be bound? if your code is in an ejb, you wouldn' link from web.xml or jboss-web.xml but the ejb counterparts. If its in a servlet, looks like you want to look up jdbc/MilosDataSource david jencks On 2002.03.01 18:44:41 -0500 Christine wrote: > Hi, Since I didn't get any