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
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/
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
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