How to make connection less dsn???

hi!
I wanna know how to make connection less dsn in java? any links for help...
Bye

http://onesearch.sun.com/search/developers/index.jsp?and=dsnless&nh=10&phr=&qt=&not=&field=&since=&col=devforums&rf=0&Search.x=26&Search.y=14

Similar Messages

  • How to make connection to ORACLE 7.1.6

    Hi,
    May I have suggestions on how to make connection to ORACLE 7.1.6 on UNIX box?
    Thank you very much for help!
    Jane

    Oracle 7.1.6 hasn't been supported by Oracle in many years. I don't believe that any Oracle product is currently certified to connect to a 7.1.6 database.
    You really need to consider upgrading your database. At least if you went to the 7.3.4 patchset, you'd have a fighting chance. This was the terminal Oracle7 patchset, so most products were still certified against it 12-18 months ago. If you're lucky, they'll still work, though they won't be certified.
    If you need a certified combination, you'll have to upgrade to 8i or 9i.
    Justin

  • When you change PC how to make connection with iphone and new PC

    when you change PC how to make connection with iphone and new PC

    Yes, you can do it the same as any other database. The code would be similar.
    I'd also suggest you not to use the JDBC ODBC bridge for connection. There are other drivers available for that.
    Regards
    xH4x0r

  • How to make connection between ASP and Oracle 8i

    Dear Helper,
    I have a problem about how to make the connection between ASP and
    Oracle 8i. If you have this idea, please help me to solve this
    problem. Thank You!!!
    null

    You must install Oracle Objects for OLE.
    After this in asp-script you may use following instructions
    1)initialization
    <%
    Set Session("OraSession") =server.CreateObject
    ("OracleInProcServer.XOraSession")
    set Session("OraData") = Session("OraSession").OpenDatabase
    ("service", "scott/tiger",0)
    %>
    2)open Dynaset
    <%
    Set EmpDynaset = Session("OraData").CreateDynaset("select 1 as
    f1, 2 as f2 from dual", 0)
    %>
    3)navigation
    <%EmpDynaset.MoveFirst%>
    <%EmpDynaset.MoveNext%>
    <%EmpDynaset.EOF%>
    4) Field access
    <%=EmpDynaset.Fields(1).value%>
    5) Sql execute
    Session("OraData").ExecuteSQL("delete xxx")
    Best regards.
    null

  • How to make Connection Pooling in JAVA

    Dear Members
    I want to know that how can i make connection pooling in java and also how can i use that pool in my jsp/servlet application.
    Plz Describe in Detail.
    Thanks
    Vasim

    vasim_saiyad2000 wrote:
    Dear Members
    I want to know that how can i make connection pooling in java and also how can i use that pool in my jsp/servlet application.
    Plz Describe in Detail.
    Thanks
    VasimAs the previous poster is trying to suggest, the server you use will have datasource and connection pooling support. so look up in the manual how to set it up, or do a google search. For example if you use Tomcat, look here:
    http://tomcat.apache.org/tomcat-6.0-doc/jndi-datasource-examples-howto.html

  • How to make Forms less dependent of client PC ? (Best Practice?)

    Hello,
    We are on Forms 10g (and I also noticed the same pb with previous versions)
    We built quite big applications that use Webutil and jInitiator (not Java plugin)
    The application is used via Web only.
    At the deploiement of the applications, we experienced many difficulties due to specific configuration of Internet Explorer (or another browser, Firefox) of each one person of the company
    I suppose this situation has also been experienced by others...
    Do you have any suggestion of best practices for making such application less dependent of the client PC configuration ?
    Thanks in advance,
    Olivier

    Try to use http, i don't thing direct open the socket can pass throught the socket if your proxy haven't forward those ports~
    Hi All,
    I have problems with my applet working through
    gh proxy.I am using a client applet which makes a
    socket connection to a Java application running on the
    same pc as the web server.
    Everything works fine when I am directly
    ly connected.However it does't work when connected
    through a proxy? I am using object o/p & i/p streams
    for the exchange of data b/w client applet & the
    server java application.How do I overcome this
    problem.
    Currently I am using WinGate 3.0.2 as my proxy(I
    (I did't see any firewaal setting there) but I intend
    to make applet work through any proxy for that
    matter.Using a higher level protocol such as UDP would
    help in this regard?i think UDP/TCP is not the matter for that!
    This is urgent.PLease reply ASAP...
    best rgds,
    prithvi

  • How to make/connect a SP_2010 List a Web Database

    I have a MS Access front-end data entry database in a local network that is connected to a SP_2010 List that I use as backend.
    > I build another front end (let call it Dashboard DB) to display this database data
    > I then copy the SP List structure and data, make a Table and populated for my Dashboard DB, converted it to a Web Database, upload to SP_2010 to test, it works fine great SP/Access feature.
    > Now I need to replace the Web Database table with the SP List? Or link it.
    What I want to accomplish is to do data entry form a Local Network Client to a Web Database. How can I make my List the Web DB data source? I’ve seen that with SharePoint Designer you can make External Content Type, can this be done?
    Before someone ask, the data entry cannot be converted to Web DB (too complex)
    How can I make a SP_2010 List a data source (backend) for a MS Access database that has been upload to SP as Web Database?

    You can do that via SPD and BCS. Check out my article at
    http://sharepointdragons.com/2012/02/13/creating-a-bcs-net-assembly-connector/
    Kind regards,
    Margriet Bruggeman
    Lois & Clark IT Services
    web site: http://www.loisandclark.eu
    blog: http://www.sharepointdragons.com

  • How to make connection Pool for standalone Application

    hi
    I have got an application to craete a stadalone appliaction for connection pool.But it is taking m more time to create the Connection and fetch the data.
    import java.sql.*;
    import java.util.*;
    /** A class for preallocating, recycling, and managing
    *  JDBC connections.
    *  <P>
    *  Taken from Core Servlets and JavaServer Pages
    *  from Prentice Hall and Sun Microsystems Press,
    *  http://www.coreservlets.com/.
    *  &copy; 2000 Marty Hall; may be freely used or adapted.
    public class ConnectionPool implements Runnable {
      private String driver, url, username, password;
      private int maxConnections;
      private boolean waitIfBusy;
      private Vector availableConnections, busyConnections;
      private boolean connectionPending = false;
      public ConnectionPool(String driver, String url,
                            String username, String password,
                            int initialConnections,
                            int maxConnections,
                            boolean waitIfBusy)
          throws SQLException {
        this.driver = driver;
        this.url = url;
        this.username = username;
        this.password = password;
        this.maxConnections = maxConnections;
        this.waitIfBusy = waitIfBusy;
        if (initialConnections > maxConnections) {
          initialConnections = maxConnections;
        availableConnections = new Vector(initialConnections);
        busyConnections = new Vector();
        for(int i=0; i<initialConnections; i++) {
          availableConnections.addElement(makeNewConnection());
      public synchronized Connection getConnection()
          throws SQLException {
        if (!availableConnections.isEmpty()) {
          Connection existingConnection =
            (Connection)availableConnections.lastElement();
          int lastIndex = availableConnections.size() - 1;
          availableConnections.removeElementAt(lastIndex);
          // If connection on available list is closed (e.g.,
          // it timed out), then remove it from available list
          // and repeat the process of obtaining a connection.
          // Also wake up threads that were waiting for a
          // connection because maxConnection limit was reached.
          if (existingConnection.isClosed()) {
            notifyAll(); // Freed up a spot for anybody waiting
            return(getConnection());
          } else {
            busyConnections.addElement(existingConnection);
            return(existingConnection);
        } else {
          // Three possible cases:
          // 1) You haven't reached maxConnections limit. So
          //    establish one in the background if there isn't
          //    already one pending, then wait for
          //    the next available connection (whether or not
          //    it was the newly established one).
          // 2) You reached maxConnections limit and waitIfBusy
          //    flag is false. Throw SQLException in such a case.
          // 3) You reached maxConnections limit and waitIfBusy
          //    flag is true. Then do the same thing as in second
          //    part of step 1: wait for next available connection.
          if ((totalConnections() < maxConnections) &&
              !connectionPending) {
            makeBackgroundConnection();
          } else if (!waitIfBusy) {
            throw new SQLException("Connection limit reached");
          // Wait for either a new connection to be established
          // (if you called makeBackgroundConnection) or for
          // an existing connection to be freed up.
          try {
            wait();
          } catch(InterruptedException ie) {}
          // Someone freed up a connection, so try again.
          return(getConnection());
      // You can't just make a new connection in the foreground
      // when none are available, since this can take several
      // seconds with a slow network connection. Instead,
      // start a thread that establishes a new connection,
      // then wait. You get woken up either when the new connection
      // is established or if someone finishes with an existing
      // connection.
      public void makeBackgroundConnection() {
        connectionPending = true;
        try {
          Thread connectThread = new Thread(this);
          connectThread.start();
        } catch(OutOfMemoryError oome) {
          // Give up on new connection
      public void run() {
        try {
          Connection connection = makeNewConnection();
          synchronized(this) {
            availableConnections.addElement(connection);
            connectionPending = false;
            notifyAll();
        } catch(Exception e) { // SQLException or OutOfMemory
          // Give up on new connection and wait for existing one
          // to free up.
      // This explicitly makes a new connection. Called in
      // the foreground when initializing the ConnectionPool,
      // and called in the background when running.
      public Connection makeNewConnection()
          throws SQLException {
        try {
          // Load database driver if not already loaded
          Class.forName(driver);
          // Establish network connection to database
          Connection connection =
            DriverManager.getConnection(url, username, password);
          return(connection);
        } catch(ClassNotFoundException cnfe) {
          // Simplify try/catch blocks of people using this by
          // throwing only one exception type.
          throw new SQLException("Can't find class for driver: " +driver);
      public synchronized void free(Connection connection) {
        busyConnections.removeElement(connection);
        availableConnections.addElement(connection);
        // Wake up threads that are waiting for a connection
        notifyAll();
      public synchronized int totalConnections() {
        return(availableConnections.size() +
               busyConnections.size());
      /** Close all the connections. Use with caution:
       *  be sure no connections are in use before
       *  calling. Note that you are not <I>required</I> to
       *  call this when done with a ConnectionPool, since
       *  connections are guaranteed to be closed when
       *  garbage collected. But this method gives more control
       *  regarding when the connections are closed.
      public synchronized void closeAllConnections() {
        closeConnections(availableConnections);
        availableConnections = new Vector();
        closeConnections(busyConnections);
        busyConnections = new Vector();
      public void closeConnections(Vector connections) {
        try {
          for(int i=0; i<connections.size(); i++) {
            Connection connection =
              (Connection)connections.elementAt(i);
            if (!connection.isClosed()) {
              connection.close();
        } catch(SQLException sqle) {
          // Ignore errors; garbage collect anyhow
      public synchronized String toString() {
        String info =
          "ConnectionPool(" + url + "," + username + ")" +
          ", available=" + availableConnections.size() +
          ", busy=" + busyConnections.size() +
          ", max=" + maxConnections;
        return(info);
    }///// The Calling Class is below---------/////////////////
    import java.util.*;
    import java.sql.*;
    public class dbConnection
         public static void main(String[] args)
              String driver="oracle.jdbc.driver.OracleDriver";
              String username="ETS";
              String password="ETS";
              String url="jdbc:oracle:thin:@192.168.47.10:1521:ETS";
              int initialConnections=10;
            int maxConnections=50;
              boolean waitIfBusy=false;
              Connection con=null;
              Statement stmt = null;
              ResultSet rs = null;
              try
              System.out.println("Before constructory "+new java.util.Date());
              ConnectionPool pool=new ConnectionPool(driver,url,username,password,initialConnections,maxConnections,waitIfBusy);
              System.out.println("After constructory "+new java.util.Date());
                        con=pool.makeNewConnection();
         System.out.println("After Connection pool "+new java.util.Date());
                        String sql="select * from emp_master";
                        stmt = con.createStatement();
                        rs = stmt.executeQuery(sql);
                        while(rs.next()) {
                   int login1=rs.getInt("emp_code");     
                        System.out.println("Employee Code is  "+login1);
                        System.out.println("check 2");
                   String pass=rs.getString("PASSWORD");
                        System.out.println("Pass Word is "+pass);
              }catch(Exception e)
                   System.out.println("Exception is "+e);
              finally {
    }

    I once created a connection pool programatically with Apache DBCP API. It didnt took more than 10 lines. Unforchunetly I dont have to code with me now.
    But If I remember right there is a sample code for that in the Apache Commans DBCP documentation.

  • How to make animations less chopy? opinions, advice require

    Hi guys ive been using flex now for about 2 years. Love flex dont have to much to  complaint about it is  extremely flexible however i have one simple question that i just dont quite understand and im hoping someone here can shed some light. Picture this. I have a grid and a call to a webservice. when i click on the grid item it makes a call to the webservice once the webservice returns the array of items i  want to play an animation. But what i have noticed is that at the point the dataprovider is assign to the grid  the application basically freezes. This is due to the fact that by assining the dataprovider to the grid flex internally is looping the colletction and passing it to the grid. Well if you are trying to play and animation while the dataprovider is being assignt the animation gets choppy... is there any techniques around this? I would really love to hear about how other people have overcomed this challenge or I'm i the only idiot thats dealing with this.
    Any responses would be greatly appreciated.
    Thanks
    Miguel

    If you use XML to get data from the server, then unmarshalling of data to create objects takes a heavy toll on the processor.
    If you use Blaze DS or LCDS, deserialization from binary data is a breeze and it doesn't hit the processor as much.
    Now, if you don't want to change your service, consider using TimeSlicing:
    http://cookbooks.adobe.com/post_Time_slicing-18691.html
    Good read about the Flash Player "elastic racetrack":
    http://www.craftymind.com/2008/04/18/updated-elastic-racetrack-for-flash-9-and-avm2/

  • How to make logo less prominent on black MacBook

    Has anyone had a go at making the Apple logo black or charcoal on the black MacBook? I'm thinking about getting the black model because the matte finish looks a little more durable but the garish looking white logo is a put off.

    Has anyone had a go at making the Apple logo black or charcoal on the black
    MacBook? I'm thinking about getting the black model because the matte
    finish looks a little more durable but the garish looking white logo is a put off.
    Wow this is the first post stating that they didn't like the white apple on the black mac. Different strokes for different folks.
    The white macbook's logo (white on white) is probably less noticable as there's less contrast. There is no way to dim the logo as its lit from the lcd back light.
    I believe the white MB's enclosure is more durable and less likely to show abuse. I compared both side by side and I thought the white was better in that respect. I love the black one and how it looks but the durable finish was one of my major points that I wanted a MB for.

  • Changing format of all graphics files is very cumbersome - how to make it less so?

    Hello,
    This problem is happening in FM 8, running on Windows XP.
    I have recently converted all the image files referenced in a book, from one format to another. When I open a chapter (.fm) file in that book, FM looks for the graphic file that has been referenced in the first frame it finds (I import all graphics by reference). It opens a navigation dialog so I can locate the missing file, at which time I select the new file instead. Unfortunately, I have to do this over and over, for each graphic referenced by the FM file. Isn't there a way for me to tell FM to look for the same base filename, but with a new extension? A default file type for imported files? Is there a way to modify the .fm file itself to change the reference to the imported graphics? Having to tell FM the new filename for every graphic in the book is cumbersome and time-consuming (and I will be doing the same thing for about 75 manuals!). If FM can remember the location of an imported file and look for subsequent files in the new location, can't it do something similar for file types?
    Compounding this problem is the fact that when the navigation dialog opens, the files in the current folder are automatically listed in "List" form, and are not in alphabetical order. If there are many graphics in that folder, it takes extra time to hunt for the desired file, so I usually change the listing format to "Detail" and then sort on "Name". But even that takes time. Are there defaults I could set so that the folder's contents are listed in the navigation dialog in the format I choose? I'm not even sure whether this is a FrameMaker or a Windows issue, so I don't know where to look for option settings. (I have poked around in FM options dialogs, and also the help files, but haven't found any references to this.)
    Help with even one of these would save me a lot of time.
    Thank you!
    Joyce Wermont

    Error7103 -
    Thank you for a quick response. I just tried this, and it seemed to work - I was able to edit the .mif file and change all the format extensions. Then I opened the .mif in FM and it looked OK, it loaded the correct graphic files automatically, and there didn't appear to be any scaling problems. But when I tried to save it as an FM doc file, it wouldn't allow that. Error message: "Filenames ending in .mif cannot be saved in Document format". I used Save As, btw. But it didn't work with plain Save either.
    It sounds like you've been successful in saving .mif to .fm - any tips?  Again, I'm using FM 8.
    Thanks,
    Joyce

  • How to make JDBC and SAP connectivity with VC 6.0

    can anyone help me.....how to make JDBC system and SAP system visible in the System drop-down list in Data Task Panel of Visual Composer 6......i mean how to make connectivity with JDBC and SAP system......so that i can use any table in the back-end database as well as any BAPI in the R/3 system.........
    Thank you very much.....

    Hi Deep,
    There is a how-to posted on SDN regarding how to connect and configure the BI JDBC Connector.
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/uuid/6209b52e-0401-0010-6a9f-d40ec3a09424
    This document describes the jdbc driver to use etc.
    Hope this helps,
    Cheers,
    Scott

  • How to do connectivity to JDBC on Linux platform

    Hello friends!
    I am novice user of JSP & JDBC. I dont know how to make connectivity with database using JDBC driver and that is using Linux paltform. I read one tutorial for that they have given some code. But they have used <% import java.sql%> . The database I am using is PostgreSQL. So how to do that?
    Plese help me ! Thank you in advance!

    Same as JDBC on any other platform. Java and JDBC are OS independent.
    The java.sql package is part of the JDK, of course. No action required.
    If you're using PostgreSQL, you have to get their JDBC driver JAR and put it in your app's CLASSPATH.
    Then you should review this.
    %

  • How to make none root user to connect to TCP Port  (web ports)

    how to make none root user (any user)
    to connect to TCP Port 80 or port 81 or any port less than 1024
    cause i have web server i want to run and stop service with none root userand on port 80 and port 81
    can you help me and give me steps

    I believe Solaris 9 also has RBAC control. If so then all you need to do is present the uid with the PRIV_NET_PRIVADDR privilege. See the privielegs(5) manpage for more information on the subject.
    This privilege will allow the userid to bind to ports < 1024. You can give a user this privilege either by using usermod (you will probably need the auth_attr(4) manpage as well) after which you need to login again. Or you can try using ppriv to modify the privileges on the users shell.

  • How to make a internet connection!!

    I need to make a internet connection before a start a servlet (client) there's a form to do that ????

    There is no such thing as a 'internet connection'. You don't connect to the internet, you connect to computers - like DSN servers, web servers etc.
    Presumably you have a network. A client (browser) must connect to an application server to use a servlet. This is true even when running on the same box.
    Your question is how to you connect to the web server? What application/web server are you running?

Maybe you are looking for

  • Photoshop CC2014.2 won't install patch updater. Error code U44M2P7

    This is super frustrating. Creative Cloud just sent out a updates to all my software. Photoshop, Indesign, Illustrator, Flash, etc... but it will not install the updates to any of them. I get errors on all of them. Here's what I've tried • Uninstalli

  • Secure ftp of files stored in a directory on the operating system

    Is it possible to secure ftp files directly from the server without first storing them in the flows database? (Apex 3.2; Oracle 10g 10.2.0.4; Oracle Unbreakable Linux 4). If so, are there security issues?

  • Images in Spry Tabbed Panels Tabs

    I am completely new to the Spry options in Dreamweaver and need help customizing the Tabs in the Spry Tabbed Panel. I would like to substitute the text in each tab for a different image in each tab, and have each image change by using behaviors, depe

  • Order events by date in left panel ?

    I have just installed the trial version of aperture 3. I have imported my iPhoto library of 155gb with many events from a round the world trip. When I click on iPhotoLibrary and select browser I can see all my events in the main viewer panel and then

  • Any 802.11u data to analyze?

    hi, i have a question for you, so can anybody help me. does anyone have any "802.11u" network data to analyze, I need them for my seminar i'm using wireshark