Urgent!!--- Server Database Connectivity Prob. for clients.

I have Windows NT, and Windows 95 OSs on all my machine.
I have an application designed in Dev-2000. on one computer. (say
that is my server )
Now I want to run my application from other machines (say from
clients) using my server database.
Let me know about configration settings, and another necessory
actions step by step.
-Upendra
null

if i understand you question, i don't think this is possible, since the Connection interface (and basically all of the related jdbc interfaces) aren't Serializable.. so they can't be sent over the wire to your client(s).
However, you could feasibly write some server side connection pool, and some server side facade which will allow clients to submit queries (either SQL String's or however you want to do it - obviously a more elegant solution involves a series of classes which dynamically create sql based on query criteria), then the server can grab a connection, execute the query, cycle through the results and populate some result object of your creation and send that back over the wire to your client(s).
.

Similar Messages

  • Server-side connection pooling for clients in different VM's

    We have a need to centeralize our connection pool manger.
    Is there a server-side connection pooling manger product to allow multiple clients running in different VM's to connect to and share connection objects to the same Database?
    e.g. An applet, and a swing and a servlet/web app application all running in different VM's will connect to this central connection pool manager and share connection objects to the same DB.
    We are using connection pooling for all of our applications but each application is maintaining its own connection pool and it is becomming a nightmare to manage and configure each one.
    Also, we have to have at a miniumum one connection open per application to access the database regardless of wether we are using connection pool or not. This means that 100 apps(running in different VM's) will use at minimum 100 connections... where all of these 100 apps will do just fine with just 10-15 connections.
    while back we used T3 server but can't find this product on BEA web site any more.
    does jdbc 2.2 or 3.0 have any server side pool management specs outlined?
    Please HELP as we can't afford anymore licensing fees for our company.
    oh.. We can't open and close connections on each query as they will be slow.
    any suggestions greatly appreciated.

    if i understand you question, i don't think this is possible, since the Connection interface (and basically all of the related jdbc interfaces) aren't Serializable.. so they can't be sent over the wire to your client(s).
    However, you could feasibly write some server side connection pool, and some server side facade which will allow clients to submit queries (either SQL String's or however you want to do it - obviously a more elegant solution involves a series of classes which dynamically create sql based on query criteria), then the server can grab a connection, execute the query, cycle through the results and populate some result object of your creation and send that back over the wire to your client(s).
    .

  • Can VI server automatically close access for clients' VIs, if one of clients is already connected?

    Can VI server automatically close access for clients' VIs, if one of clients is already connected? and when first client closed reference, open access for other clients' VIs? I mean like when you use web publishing tools. If one user already uses front panel.. other just can wait until first one will finish.

    Please stick to one thread.  Here is the original.

  • Can Mac OS Server limit up time for clients

    Can Mac OS Server limit up time for clients like a linksys router can? I want to base the time limit on mac addresses.

    what exactly do you want to limit?
    uptime is the time since the computer has been turned on (total time running), sounds more like you would like to limit internet acccess...??

  • SQL Server Database Connectivity with Visual Studio 2012 - Help Needed

    Hello,
    I am having Visual Studio 2012 and SQL Developer 4.0 installed on my system with Windows 8 - 64bit
    I want to shift a VS project with an SQL database connectivity to another new Laptop (above mentioned) ...
    I have the project opened in VS without bieng connected to the database.. 
    I have a backup file of the database (which needs to be restored to a new created database on SQL Developer) 
    The problem:
    I am unable to create a server connection in SQL Developer which will allow me to create a new database followed by the recovery from backup file.
    I am getting the following error message when I try to create a connection:
    Status: Faliure - IO error: The network adapter could not establish a connection
    Please help me in setting up a server connection and adding a new sql database

    The error message seemed unfamiliar to me and since I had never heard of SQL Developer before, I went to Google. Google might be pulling my legs, but it appears that SQL Developer is related to Oracle. This forum is devoted to SQL Server, so you are in the
    wrong place.
    Try finding a forum for SQL Developer.
    Erland Sommarskog, SQL Server MVP, [email protected]

  • SQL Server 2000 connectivity probs

    hi frnds
    i wanna do the database connectivity with Microsoft SQL Server 2000 and for this i got the driver from the site of Microsoft ,named Microsoft SQL Server 2000 JDBC Driver .
    But on testing this driver i am getting the following errors which shows the compiler isnt getting the driver class for connectivity..please do guide me about this...what can be the possible solution.
    Exception in thread "main" java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC]Error establishing socket.
    at com.microsoft.jdbc.base.BaseExceptions.createException(Unknown Source)
    at com.microsoft.jdbc.base.BaseExceptions.getException(Unknown Source)
    at com.microsoft.jdbc.base.BaseExceptions.getException(Unknown Source)
    at com.microsoft.jdbc.sqlserver.tds.TDSConnection.<init>(Unknown Source)
    at com.microsoft.jdbc.sqlserver.SQLServerImplConnection.open(Unknown Source)
    at com.microsoft.jdbc.base.BaseConnection.getNewImplConnection(Unknown Source)
    at com.microsoft.jdbc.base.BaseConnection.open(Unknown Source)
    at com.microsoft.jdbc.base.BaseDriver.connect(Unknown Source)
    at java.sql.DriverManager.getConnection(DriverManager.java:512)
    at java.sql.DriverManager.getConnection(DriverManager.java:171)
    at Main.main(Main.java:21)
    please reply ASAP
    thanks n regards
    Melinda

    no i am not calling the createStatement.
    this is the code i am using to test the driver
    import java.sql.*;
    * Microsoft SQL Server JDBC test program
    public class Main {
    public static void main (String args[]) throws Exception {
    // Get connection
    //DriverManager.registerDriver(new
    // com.microsoft.jdbc.sqlserver.SQLServerDriver());
    Driver d = (Driver)Class.forName("com.microsoft.jdbc.sqlserver.SQLServerDriver").newInstance();
    Connection connection = DriverManager.getConnection(
    "jdbc:microsoft:sqlserver://local:1433","sa","sa");
    if (connection != null) {
    System.out.println();
    System.out.println("Successfully connected");
    System.out.println();
    // Meta data
    DatabaseMetaData meta = connection.getMetaData();
    System.out.println("\nDriver Information");
    System.out.println("Driver Name: "
    + meta.getDriverName());
    System.out.println("Driver Version: "
    + meta.getDriverVersion());
    System.out.println("\nDatabase Information ");
    System.out.println("Database Name: "
    + meta.getDatabaseProductName());
    System.out.println("Database Version: "+
    meta.getDatabaseProductVersion());
    n this is the error that i m getting now
    Exception in thread "main" java.lang.ClassNotFoundException: com.microsoft.jdbc.
    sqlserver.SQLServerDriver
    at java.net.URLClassLoader$1.run(URLClassLoader.java:199)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:141)
    at Main.main(Main.java:18)

  • Database Connection Information for OAS SOA suite 10.1.3.1.0

    Hi!
    I'm having a bit of trouble that I hope you can please help with...
    I've just installed oracle database and am now attempting to install oracle application server.
    Unfortunately everytime I attempt the install I receive a:
    "Install cannot connect to the database located at:
    localhost:1522
    Please ensure tha tthe hostname, port and service name are correct and that the database and its listener at this location are up and running."
    I have tried every possible combination I can think of for the Database Connection Information, including:
    127.0.0.1:1522:orasusdb
    localhost:1522:orasusdb
    127.0.0.1:1521:orasusdb
    localhost:1521.orasusdb
    127.0.0.1:1522:orasusdb.DOMAIN
    localhost:1522:orasusdb.DOMAIN
    127.0.0.1:1521:orasusdb.DOMAIN
    localhost:1521.orasusdb.DOMAIN
    and even all the combinations above with "10.6.0.74" in place of 'localhost' as when I compelted the database installation I was given the following url to access isqlplus:
    http://10.6.0.74:5560/isqlplus
    Which doesn't work...
    But this address:
    http://localhost:5560/isqlplus/
    does work...
    My tnsnames.ora file:
    ORASUSDB =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1522))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = orasusdb)
    LISTENER_ORASUSDB =
    (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1522))
    EXTPROC_CONNECTION_DATA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
    (CONNECT_DATA =
    (SID = PLSExtProc)
    (PRESENTATION = RO)
    My Listener.ora file:
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = /opt/oracle/product/10.2/db_1)
    (PROGRAM = extproc)
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
    (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1522))
    The results of tnsping localhost:1522:
    Used parameter files:
    /opt/oracle/product/10.2/db_1/network/admin/sqlnet.ora
    Used EZCONNECT adapter to resolve the alias
    Attempting to contact (DESCRIPTION=(CONNECT_DATA=(SERVICE_NAME=localhost.domain))(ADDRESS=(PROTOCOL=TCP)(HOST=127.0.0.1)(PORT=1522)))
    OK (0 msec)
    The results of lsnrctl start:
    TNS-01106: Listener using listener name LISTENER has already been started
    Edited by: user11150264 on 23-Aug-2009 22:16

    Okay, I updated everything but it's still not working:
    Database Connect Information: 10.6.0.138:1522:PLSExtProc
    /etc/hosts/
    127.0.0.1 localhost
    ::1 localhost ipv6-localhost ipv6-loopback
    fe00::0 ipv6-localnet
    ff00::0 ipv6-mcastprefix
    ff02::1 ipv6-allnodes
    ff02::2 ipv6-allrouters
    ff02::3 ipv6-allhosts
    10.6.0.138 asw082.DOMAIN
    127.0.0.1 localhost
    10.6.0.74 asw082.DOMAIN asw082
    Listener.ora
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = /opt/oracle/product/10.2/db_1)
    (PROGRAM = extproc)
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
    (ADDRESS = (PROTOCOL = TCP)(HOST = 10.6.0.138)(PORT = 1522))
    tnsnames.ora
    ORASUSDB =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 10.6.0.138)(PORT = 1522))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = orasusdb)
    #LISTENER_ORASUSDB =
    # (ADDRESS = (PROTOCOL = TCP)(HOST = 10.6.0.138)(PORT = null))
    LISTENER_ORASUSDB =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 10.6.0.138)(PORT = 1522))
    EXTPROC_CONNECTION_DATA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
    (CONNECT_DATA =
    (SID = PLSExtProc)
    (PRESENTATION = RO)
    )

  • Client Server program using Applets for client

    Creating a client server program using Applets for the clients.
    Having problems distrubting the message from client to client
    using ObjectOutputStreams/ObjectInputSteams.
    I can connect each client to simple server and respond with by writting
    the i/o stream of each client but unable to communicate from client to client. If any one out there has in tips of creating a class of objectOutputStreams that holds a array of ObjectOutputStreams and then broadcasts the message to every client, it would be much appreciated
    Thanks.

    Cheers poop for your reply
    I never explained the problem properly. What it is I am trying to set up a Client Server program using Applets as the clients GUI. The problem is broadcasting the message to multiply client connnection(s).
    Below is code, each client can connect and send message to the server. The problems is broadcasting the message to every client connection. The every client can input a message but only the last connected client can receive the message?????? Thanks in advance..
    /*this my server class */
    import java.io.*;
    import java.net.*;
    public class Server extends JFrame
    private static final int ServerPort=8080;
    private static final int MaxClients=10;
    private ObjectOutputStream output=null;
    private ObjectInputStream input=null;
    private BroadCastMessage broadcastMessage;
    public void runServer()          
    BroadCastMessage broadcastMessage= new BroadCastMessage();
    try
    {  //connect to server
    ServerSocket s = new ServerSocket(ServerPort,MaxClients);
         //listen to port 5000 for new connections
         ///max is 25
         System.out.println("Server listening on port "+ServerPort);
    while (state.isProgramRunning())
         try
         /// sGUI.waitForConnection();//new line
         s.setSoTimeout(100);
         //enable times in server-socket
         while (true)     
         Socket incoming = s.accept();
         //wait and accept connnections from serverSocket
         //instance of the class,pases the new connection and message
         //spawn as a thread
         SocketConnection connection=new SocketConnection(incoming,broadcastMessage);
         Thread a = new Thread(connection); a.start();
         System.out.println(state.getConnectionCount()+"Connection received from :"+incoming.getInetAddress());
         catch(InterruptedIOException x){}
    while (state.getConnectionCount()>0);
    System.exit(0);
    }catch (IOException e){}
    public static void main(String[] args)
    Server s =new Server();
         s.runServer();
    /*this is my socket connection thread*/
    import java.io.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.net.*;
    public class SocketConnection implements Runnable
    private ObjectOutputStream out;
    private ObjectOutputStream output=null;
    private ObjectInputStream input=null;
    private BroadCastMessage passOnMessage;
    private Socket theConnection=null;
    private String Inmessage="";
    private int Ocount;
    public SocketConnection(Socket caller,BroadCastMessage broadcastMessage,Ocount)
    theConnection =caller;///(5000,n)
    Ocount=ncount;
    passOnMessage=broadcastMessage;
    public void run()
    try
    getStreams();
    processConnection();
    catch(Exception e)
    {String clientDetails=("connection from IP Address: "+theConnection.getInetAddress());}
    private synchronized void getStreams() throws IOException
    { //get streams to send and receive data
    //set up output buffer to send header information
    ///Ocount++;
    //create new objectoutputstream
    output=passOnMessage.getOutputObject(output,theConnection,Ocount);
    ///flush output buffer to send header info.
    Ocount++;
    //set up input stream for objects
    input =new ObjectInputStream(
    theConnection.getInputStream());
    System.out.print("\nGot I/O streams\n");
    private synchronized void processConnection()throws IOException
    //process connection with client
    String Outmessage =" count : "+status.getConnectionCount();
    //send connection successful message to client
         Outmessage=Outmessage+"SERVER>>>Connection successful";
         output.writeObject(Outmessage);
    output.flush();
    do ///process messages sent from client
         try
         Inmessage = (String) input.readObject();
         System.out.println(Inmessage);
         /* //while the connection is open each line
         that is passed from the client to the server
         is read in and is displayed*/
         messageDetails.setMessage(Inmessage);
         String CurrentMessage=messageDetails.getMessage();
         //output.writeObject(CurrentMessage);
         // output.flush();
         passOnMessage.FloodMessage(CurrentMessage);
         //sending out the message
    catch(ClassNotFoundException classNotFoundException){}
    }while (!Outmessage.equals("CLIENT>>>TERMINATE"));
    /*this my attempt at broadcasting the message to all clients
    my thinking was that you could create a array of objectoutputstreams
    which in turn could be broadcasted(bit confussed here)*/
    import java.io.*;
    import java.net.*;
    public class BroadCastMessage /// implements Runnable
    private int count;
    private String Inmessage="";
    private ObjectOutputStream temp=null;
    private ObjectOutputStream[] output = new ObjectOutputStream [12];
    //temp level of array of objects
    public BroadCastMessage()
    count=0;
    public synchronized void FloodMessage(String message) throws IOException
    System.out.print(count);
         for(int i=0;i<count+1;i++)
         try
    {  System.out.print(count);
         output[count].writeObject(message);
         output[count].flush();
         catch(IOException ioException)
    {ioException.printStackTrace();}
         notifyAll();
    public ObjectOutputStream getOutputObject(ObjectOutputStream out,Socket caller,int Ocount)
    try
    { temp = new ObjectOutputStream(caller.getOutputStream());
         AddObjectOutputStream(temp,Ocount);
    ////FloodMessage();
         catch(IOException ioException)
    {ioException.printStackTrace();}
    return temp;     
    public void AddObjectOutputStream(ObjectOutputStream out,int Ocount)
    { ///add new object to array
    count=Ocount;
    output[count]=out;
    System.out.print("\nthe number of output streams : "+count+"\n");
    }

  • 10.6.8 Server: Spotlight stops working for clients after fresh installation and updates

    Problem:
    On 2013-02-22, I reinstalled my Xserve with fresh 10.6.3 and upgraded it to 10.6.8 OS X Server. Spotlight used to be working perfectly for clients to search over the network but now it is not working. Administrators doing local spotlight search on Xserve server side is searchable. Clients with less privileges searching files across the network to the server will receive null result. Administrators searching files across the network is still working.
    I believe it has something to do with the update packages and some security improvement bugs introduced in late 2012 or early 2013.
    All my clients Macs are in either 10.7.5 and 10.8.2.
    Can anyone confirm this? All my staff members in the company cannot do the spotlight search to the server now!

    Hi, maracujana,
    the problem can be solved if you allow the permssion of parental folder of your share points to have at least Read Only permission for User and Group:
    permission: 644
    User: Read&Write
    Group: Read Only
    Others: Read Only (or No Access)
    In my case, it is strange that PCs can still do the search to the Snow Leopard Server by SMB protocol while Mac using AFP cannot even when the parental folder had permission 600. This could be a secure issue in Snow Leopard's SMB1.0 protocol. Note that SMB in Snow Leopard is SMB1.0, which is less secure and hence deprecated after Snow Leopard. From Lion onwards, all OS X uses SMB2.0 and/or SMB X.
    Oh, yes, there is one more thing:
    you may find your scanner using SMB protocol stopped functioning properly if you use (Mountain) Lion client and (Mountain) Lion server. It boils down to Apple's silent change of SMB protocol from SMB1.0 to SMB2.0. Solution? Use FTP protocol for now. Don't blame Apple too much because Apple had to follow the rules of GPLv3. The SMB issue will go on as Microsoft introduces its own SMB 3.0 protocol in Windows 8 while Apple introduces its SMB verison dubbed SMB X.
    Hope this helps.

  • Exchange Server 2010 - Receive Connector for Client Computers

    I have one customer with a SBS 2011 with Exchange Server 2010 - a pretty standard setup except for some customisation with Receive Connectors in order to cater for an application which is installed on a number of computers that requires to use an SMTP Server
    to send notifications. In order to accomplish this (allow to be sent using Exchange Server) we added the IP Address of client computer (which we also set as a DHCP reservation) to a pre-configured Receive Connector (Anonymous setup for Printer/Scanner).
    This worked fine, but we now find that there are other applications that require the same function to use SMTP to send.
    How should/could this be better configured so an application can send if they authenticate?

    Hi 
    For this  you need to create a seperate receive connector to be used for Relay in your organizations.
    Follow the below steps
    1) Create a dedicated Relay Receive Connector
    2) Add only the Ip addresses of the applications which needs to relay on Exchange servers 
    3) You can use either anonymous or authenticated relay according to your relay config
    You can follow the below link as well
    http://exchangequery.com/2013/12/02/steps-to-configure-anonymous-and-authenticated-relay-in-exchange-2013/
    Remember to mark as helpful if you find my contribution useful or as an answer if it does answer your question.That will encourage me - and others - to take time out to help you Check out my latest blog posts on http://exchangequery.com Thanks Sathish
    (MVP)

  • Which sql server edition is better for client application?

    Hello all,
    Iam going to create Point Of Sale system using winforms. I want such type of database which should not install when installing POS setup and should be lightweight also and work without having to install. I have heared about LocalDB and sql server compact
    editions.
    So my question is which one is more better and light weight and should not install on client computer but still work ???
    please note: iam using sql server express 2012 this time which install on client system(which i dont want to install). And also i have written so many stored procedure to communite between frontend and backend. Please suggest which one is better.
    Thanks in advance

    It depends on many things mostly related to business requirements.
    http://msdn.microsoft.com/en-us/library/cc645993.aspx
    Best Regards,Uri Dimant SQL Server MVP,
    http://sqlblog.com/blogs/uri_dimant/
    MS SQL optimization: MS SQL Development and Optimization
    MS SQL Consulting:
    Large scale of database and data cleansing
    Remote DBA Services:
    Improves MS SQL Database Performance
    SQL Server Integration Services:
    Business Intelligence

  • JWS database connection probs

    Hi,
    I've written a simple jdbc lookup application to run under Java Web Start. It runs fine as a (non Java Web Start) stand alone application. I've deployed it to Tomcat 4.0, having signed the jar file. The application runs under Web Start but when I try to connect to the database, I get the following error.
    java.lang.NullPointerException
    at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:345)
    at java.sql.DriverManager.getConnection(Unknown Source)
    at java.sql.DriverManager.getConnection(Unknown Source)
    at mypackage1.JDBCFrame.jButton2_actionPerformed(JDBCFrame.java:211)
    The connection details are as follows:
    <code>
    void jButton2_actionPerformed(ActionEvent e) {
    try{
    String connection = jTextField2.getText();
    if (connection == null || connection.equals("")){
    connection = "jdbc:oracle:thin:@eddie:1521:eddie";
    jTextArea2.append("Connecting\n");
    DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
    conn = DriverManager.getConnection(connection, "eddie", "eddie3");
    // Create Oracle DatabaseMetaData object
    DatabaseMetaData meta = conn.getMetaData();
    </code>
    But, as the code works as a stand alone, I don't think this is where the error resides.
    Has anybody ideas why I'm getting the error?
    Thanks in advance,
    Eddie

    Hi all,
    Just a quick update. Problem was that I'd not properly signed all the relevant resources. Once done, everything worked fine.
    Good guide for JWS & jarsigning is Ian Darwin, "Java Cookbook".
    Cheers,
    Eddie

  • FRM-10060: Database connection required for retrieveing referenced objects

    Hi,
    When I open a form, I get this error. This form is referencing a form stored in the database for some item properties. How do I get find out which item is being referenced from the database?. This is quite a big form with lots of blocks & canvases.
    Thanks

    after pressing OK connect to the database.
    I think, Check for the pre-form trigger code.
    The objects used in the pre-form trigger might be referenced by the database.

  • URGENT - Website files on iPad for client review.

    Hello, everyone.
    I just tried Air Sharing which is the application I use to transfer files to my iPad but it doesn't allow folders to be transferred.
    Tomorrow I have a meeting and would like to use the iPad as a tool to display and navigate through the initial proposed website I have created for a client. The website is contained in a folder created in iWeb but I can't seem to find a way to transfer the whole folder to the iPad.
    Is there any way or application you can recommend that would allow me to transfer and then browse the website on the iPad ?
    Thanks,
    Joe

    deggie,
    Safari should work. I will not transfer the files in iWeb format but will first publish the files in html format.
    Just as I can browse the files using Safari on the iPad if they are hosted by a server I should be able to see them if they are residing in the device's internal drive. The problem I've encountered is finding an application that allows folders to be transferred so that their content and hierarchy can be maintained. All of the ones I have checked only allows single files to be transferred and only one at a time.
    Any ideas ?
    Joe

  • JSTL - SQL Server Database Connectivity problem

    Hi All
    I am trying to implement DB connection using JSTL sql tag using the following code :-
    <c:set value="jdbc:sqlserver://localhost;databaseName=Studentreg;user=sa;password=pass" var="URL"/>
    <sql:setDataSource driver="com.microsoft.sqlserver.jdbc.SQLServerDriver" url="${URL}" user="sa" password="pass" var="stc"/>
    But I am getting the error :-
    exception
    javax.servlet.ServletException: javax.servlet.jsp.JspException: Unable to get connection, DataSource invalid: "java.sql.SQLException: No suitable driver"
    root cause
    javax.servlet.jsp.JspException: Unable to get connection, DataSource invalid: "java.sql.SQLException: No suitable driver"
    But when I am trying to implement the same using the jdbc-odbc driver It work fine. This is the code:-
    <sql:setDataSource driver="sun.jdbc.odbc.JdbcOdbcDriver" url="jdbc:odbc:dsn_name" user="sa" password="pass" var="stc"/>
    Please help me in this regards
    Thanks in Advance
    Sulfikkar

    java.sql.SQLException: No suitable driverMeans that it can not find the JDBC driver in the classpath.
    Make sure your Database driver is in your WEB-INF/lib directory, or [TOMCAT]/common/lib directory (or equivalent)
    Cheers,
    evnafets

Maybe you are looking for