Hello devloch.
I'm also trying to connect to MSSQL. The code is:

            InitialContext context = new InitialContext();
            ds = (DataSource) context.lookup("MSSQLDS");

And it gives a NamingException. I think it cannot find it. 

In my mssql-ds.xml it is defined as simple
<jndi-name>MSSQLDS</jndi-name>

Is it important to use "java:comp/env/" prefix when call contex.lookup?


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

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


-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to