Results 1 to 2 of 2
  1. #1
    TaylorHubbard is offline Member
    Join Date
    Mar 2012
    Posts
    1
    Rep Power
    0

    Default Obtaining a Java Handle

    Is there a way to write a java program which can use a class running in another program?
    Here is what I'm trying to do:
    I have a program that opens a connection to a database and manages the various connections. I cannot modify the program, but I know the various classes and functions that run within the program.
    I want to write a program that can send sql statements through the open connection in the previous program and receive the results.
    Is this possible? I know the other program will not attempt to use the connections while the other program is running.
    Thanks for the help!
    Taylor

  2. #2
    Tolls is online now Moderator
    Join Date
    Apr 2009
    Posts
    12,016
    Rep Power
    20

    Default Re: Obtaining a Java Handle

    You can reuse the code if the program is written such that it accepts SQL statements.
    Other than that I'm not sure what you;re trying to achieve.
    Please do not ask for code as refusal often offends.

    ** This space for rent **

Similar Threads

  1. how to handle calender date in java
    By reachsudha in forum Advanced Java
    Replies: 1
    Last Post: 05-19-2011, 12:19 PM
  2. can java handle nested sub queries?
    By jasonwucinski in forum JDBC
    Replies: 8
    Last Post: 05-08-2011, 02:33 AM
  3. How to handle Transaction IN and OUT in Inventory using java
    By techsing14 in forum JavaServer Pages (JSP) and JSTL
    Replies: 0
    Last Post: 04-13-2011, 03:27 AM
  4. Obtaining straightline pixels
    By base2coder in forum New To Java
    Replies: 2
    Last Post: 09-10-2009, 01:26 AM
  5. java.lang.NoClassDefFound --Any way to handle this
    By sunny_sykes in forum Advanced Java
    Replies: 1
    Last Post: 03-30-2009, 08:29 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •