File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes BEA/Weblogic and the fly likes please help me Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » BEA/Weblogic
Bookmark "please help me" Watch "please help me" New topic

please help me

ramya chandran

Joined: Apr 21, 2001
Posts: 5
hi all,
i am using mssqlserver4 driver to connect to database..
i have set the properties in file..
i have also set
where SQLPool is my connection pool name.. 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
and stops...why so?
Does the Jndi name has to be given according to the directory structure
i am confused...
is mssqlserver a txdadatasource or just datasource..
please help me
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
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
It is sorta covered in the JavaRanch Style Guide.
subject: please help me
Similar Threads
Datasource could not be located in Websphere5.0 connecting with SQL Server
setting and using connection pools in serverside jdbc codes..please help
Problem starting WTE in WSAD 5.0.1
WSAD looking up a datasource from WAS 3.5