Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

please help me

 
ramya chandran
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi all,
i am using mssqlserver4 driver to connect to database..
i have set the properties in weblogic.properties file..
i have also set
weblogic.jdbc.datasource.myDatasource=SQLPOOL..
where SQLPool is my connection pool name..
1.now tell me.."mydatasource" becomes the JNDI name
which has to be connected as
javax.sql.Datasorce ds=(javax.sql.datasource) ctx.lookup("mydatasource");
i have followed these steps but when i run the code..
it just prints
"mydatasource"
and stops...why so?
Does the Jndi name has to be given according to the directory structure or..so
like
weblogic.jdbc.datasource.weblogic.jdbc.jts.SQLPool=SQLPool..
i am confused...
is mssqlserver a txdadatasource or just datasource..
please help me
 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
in a former project i used the same driver as you i don't know if it helps but are my settings:

and i get acces to this by to the connection by using this

So i don't write this code but i know that it works
------------------
Benjamin l´┐Żonard
www.evisor.com
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic