Getting resultset from some other java program

how could i getting resultset from some other java program?
plz

a resultset is directly linked to your (prepared) query.
for performance(and synchronization) reasons, you do want to retrieve the data as fast as possible and then release it.

Similar Messages

  • How can we call creen of one program from some other dynpro Program

    Hi,
    Is it possible to call a screen of one program from some other program as pop up or full scree.
    please give you input if it is possible.
    Thanks in advance.
    Thanks and Regards,
    Praveen.

    Hi,
    But is there is any function module through we can call screen of some other program. PLease let me know if you are aware of that.
    Thanks

  • When searching for a topic, I get the results from firefox, but when I click on the particular topic, I get redirected to some other website.

    When I click on a topic that I have searched for, I get redirected to some other website.

    Do a malware check with a few malware scan programs.<br />
    You need to use all programs because each detects different malware.<br />
    Make sure that you update each program to get the latest version of the database before doing a scan.
    * http://www.malwarebytes.org/mbam.php - Malwarebytes' Anti-Malware
    * http://www.superantispyware.com/ - SuperAntispyware
    * http://www.safer-networking.org/en/index.html - Spybot Search & Destroy
    * http://www.lavasoft.com/products/ad_aware_free.php - Ad-Aware Free
    * http://www.microsoft.com/windows/products/winfamily/defender/default.mspx - Windows Defender: Home Page
    See also "Spyware on Windows": http://kb.mozillazine.org/Popups_not_blocked and [[Searches are redirected to another site]]

  • Reading files from some other PC in Network

    I have developed a tool which does some processing on input files from a folder.till now the files were there in my system.Now i have to read these file from some other computer in lan.How do i go about this?

    Well, how can you be sure with what little specsare
    given?
    '-- 'Cmon guys... .give him/her a break.!!!!!!!!!!Why? Either the user is learning programming, then he
    should also learn to communicate the requirements and
    find out what additional info is needed to solve a
    problem. It's an important skill for a programer.
    If he already is a programmer, it seems reasonable to
    me to expect him to tell us what we need to know
    without us having to ask. To me, it's a sign of
    professionalism, and that he actually bothered to
    shed a thought or two of his own at the question.-- The big picture has been given,,, there's a lot of way to connect from one PC to another,,, like URLConnection, HttpConnection, ServerSocket, Socket, DatagramPacket, DatagramSocket, DatagramSocketImpl, HttpURLConnection... the entire "java.net.*"..
    so it's up to you to choose....

  • How to get resultset from oracle procedure use ejb3

    how to get resultset from oracle procedure use ejb3
    i know oracle procedure should like this
    Create or replace PROCEDURE resultset_test(
    aaa IN NUMBER,
    bbb OUT sys_refcursor) ....
    but what s the ejb3 scripts looks like? please give me an example or link~
    ths

    - there are no EJB3 scripts, only compiled application code
    - the part of the EJB spec that deals with databases is called the Java Persistence API, but likely you are just looking for the JDBC API.
    Now you should know what to Google to get your "example script": "java jdbc oracle procedure"

  • Start a WS application from within a java program

    Hi,
    I need to start a WebStart application from within a java program. Therefore I develeoped a class which starts javaws.exe within its main-method like this:
    try {
    Runtime.getRuntime().exec(
    "c:\\java web start\\javaws.exe http://a.b/c.jnlp"
    } catch (Exception e) {
    e.printStackTrace();
    And that did not work. Java Web Start tries to start the .jnlp program but returns with the message, that the app-desc|applet-desc|installer-desc|component-desc is missing. But it is there: It is an applet and thus I defined an applet-dec.
    I tried to do it from a command line with the followinf command:
    java -Djnlpx.home="C:\abc" -cp "C:\abc\javaws.jar" com.sun.javaws.Main http://a.b/c.jnlp
    And that works. But using this command from within my jjava prog using the Runtime.exec() method does not work.
    By the way, simply type "javaws http://a.b/c.jnlp" at the command line does not work.
    Can anybody help me? How may I start a .jnlp program within another java program.
    Kind Regards,
    Tobias Neubert

    Hi,
    I recently had a quite similar problem. At least the error message by the Java Web Start application on Mac OS X complained about the same error (app-desc|applet-desc|installer-desc|component-desc). It turned out to be some bad invisible characters in the jnlp file. I copied some sample from a web page which for some reason contained some unicode chars that the parser doesn't like. Use a different text editor or the less command on unix to see if there are some strange characters in you jnlp file.
    But it seems strange that it does work from the command line and not from your code.
    -Stefan

  • How to run java programs from a master java program?

    Hello,
    I have several java programs which run from the command prompt. I am seeking help with code for starting java programs from within a java program. For example, a program called master.java works something like this:
    import java.*;
    create connection pool
    create variables and result sets
    start/run slave1.java (var1, var2);
    start/run slave2.java (var3, var4, var5);
    start/run slave3.java (var1, var4);
    end of program master.java
    Each of the slave.java programs will run for up to an hour. I do not want the master.java program to pause for each slave program to stop. Instead, the master program will keep running and multiple slave programs will be running simultaneously with the master program. When a slave program starts, it is on its own. Also, if possible, I would like to have each of these slave.java programs open in a new separate command window, so I can observe each slave program running in separate windows.
    Any suggestions for code or helpful documentation are greatly appreciated.
    Thank you,
    Logan

    Thank you all.
    At the bottom of master.java I have successfully started a batch file with these lines:
    String jcmd = "cmd.exe /c start c:/data/simulations/MsgViewCount2.bat";
    Process proc = Runtime.getRuntime().exec(jcmd);
    But I still cannot get a java program to start. Here is one variation I have tried:
    String [] cmdArray = new String[2];
    cmdArray[0] = "java";
    cmdArray[1] = "slave1";
    Runtime runtime = Runtime.getRuntime();
    Process process = runtime.exec(cmdArray);
    This compiles, and no errors occur, but nothing happens.
    Regarding this comment:
    Why Runtime.exec? Either make the slaves Runnable or
    just call their main() methods.
    Oh, I see. Sepearate output. :PNone of the slave.java programs have any output.
    Thanks again.

  • Executing a Java Program from within a Java Program

    I need to execute the following Java Program from withing another Java Program. The office toolbar command line is
    D:\WINDOWS\system32\java.exe -cp E:\Development\Eclipse\UpdateServer\Classes -server -showversion UpdateServer
    I can find no combination of ProcessBuilder commands, including those that include "Cmd.exe /c" that will make this program run from within another Java Program. All the examples I can find only show how to run Windows *.exe programs. I keep getting error 123 from ProcessBuilder.start(), but I can find no documentation for error 123.

    Assuming your code didn't get mangled by the forum
    (it's missing one "), it may be that your "-cp
    E:\\Develop.." argument is getting quoted as it has a
    space in it; try passing "-cp" and "E:\\Develop..."
    as two arguments.That worked; specifically the following tested OK:
    ProcessBuilder pb = new ProcessBuilder("D:\\WINDOWS\\System32\\Java.exe", "-cp", "E:\\Development\\Eclipse\\UpdateServer\\Classes\\", "-server", "-showversion", "UpdateServer" );
    pb.directory(new File("E:\\Development\\Eclipse\\UpdateServer\\Classes\\"));
    try{
         Process p = pb.start();
         InputStream is = p.getErrorStream();
         InputStreamReader isr = new InputStreamReader(is);
         BufferedReader br = new BufferedReader(isr);
         String line;
         while ((line = br.readLine()) != null)
              System.out.println(line);
         p.waitFor();
    }catch(IOException ioe){
    I was sure I tried that exact same code before, and it did not work, but now it does, at least at the top level (when it is in main of a test program). I will have to wait to try it until later when it is buried deep in a subroutine.

  • I am unable to receive texts on my new LG G2 when sent from some other iPhones

    I had an iPhone 4 and switched to LG G2 android.  I am unable to receive texts on my new LG G2 when sent from some other iPhones.  I've done everything Sprint and Apple have suggested - turned off imessaging, made sure the contact info on the other iPhones is plain mobile numbers, deactivated my iCloud account.  Nothing is working.  Anybody have any suggestions?

    See this support document http://support.apple.com/kb/TS5185. If you have done everything there, then look at the last line which says to get in touch with Apple Support. This is not Apple support, this is a user to user forum. Call Apple support based on your location with information from this support document. http://support.apple.com/kb/HE57

  • Problem with creation of a jar file from inside a java program

    Hi,
    I am trying to create a jar file at runtime from within a java program.
    I am able to create a jar file just fine using:
    String[] jarArgs = new String[3];
    jarArgs[0] = "cvf";
    jarArgs[1] = "C:\temp\myjar.jar";
    jarArgs[2] = "C:\temp\this";
    sun.tools.jar.Main main1 = new sun.tools.jar.Main(System.out, System.err, "jar");
    main1.run(jarArgs);However, when I look at the jar it puts the absolute path to the files inside such as:
    C:\temp\this\is\my\package\Class.class
    instead of only this\is\my\package\Class.class
    When running the jar command from the command line it works just fine and I have the relative paths in my jar file.
    Does anyone have any experience with this and could help me out?
    Thanks in advance
    Edited by: mruf on Apr 11, 2008 1:51 AM

    Shouldn't jarArgs[2] = "-C C:\temp\this"

  • I changed to an android and now cant get text from some iphone users any suggestions??

    I have just switched to an android and now am having problems getting text from some iphone users, and suggestions as to how I can fix this?

    Hi mango72860,
    Thanks for visiting Apple Support Communities.
    If you're not receiving text messages from iPhone users, see this article for help:
    iOS: Deactivating iMessage
    http://support.apple.com/kb/TS5185
    Best Regards,
    Jeremy

  • Why can't i get sound from some of my movies when i'm watching it on my macbook pro, but it works on my iMac?

    why can't i get sound from some of my movies when i'm watching it on my macbook pro, but it works on my iMac?

    I need the exact model number, not just the series. 
    -------------How do I give Kudos? | How do I mark a post as Solved? --------------------------------------------------------

  • When trying to set up automatic  syncing , on my iPod Nano, I get a notice that I am synced to another unknown computer.  How do I get unsynced from this other computer ? Have I been hacked ?

    When trying to set up automatic  syncing , on my iPod Nano, I get a notice that I am synced to another unknown computer.  How do I get unsynced from this other computer ? Have I been hacked ?

    Well, most of what we can tell you is already stated in the message you are getting.  A phone can only sync with one library at a time.  You have apparently synced your phone with a different iTunes library in the past, or changes have been made to this library so the phone no longer recognizes it as the library with which it was synced.  To know which you will have to provide the information.
    If you bought them using the AppleID you use with this phone it may simply be easier to re-download them directly to the phone rather than sync them, though you will want to resolve that issue at some point.
    Downloading (using iOS or computer) past purchases from the App Store, iBookstore, and iTunes Store - http://support.apple.com/kb/ht2519

  • Methode who execute an other java program

    Hi!
    Is there anyone who know a method who can execute an other java program from an applet?
    Thanks
    Julien

    Depends where the classes of the other program are located. A java program is just a collection of classes, with one particular one regarded as the main one. If you know the main class of the other program at compile time you can just invoke it like any normal method.
    Something like:
    MyOtherProgram.main(new String[]{"first parameter", "second parameter"});(assuming that it's just a standard "command-line" kind of program.)
    If you don't know the class name at until runtime it's still farly straightforward:
    something like
    import java.reflect.*;
    String theOtherProgram = ......
    Class otherP = Class.forName(theOtherProgram);
    String [] params = {"first parameter", "Second parameter"};
    Method theMain = otherP.getMethod("main", new Class[]{params.getClass()));
    theMain.invoke(null, params);

  • Can i access my data on time capsule from some other network

    can i access my data on time capsule from some other network that is my data at home from office over internet

    There is plenty of info out there if you google..
    Here is a summary I just put into another thread.
    Remote access has been added back into iCloud that was in MobileMe..
    Read the info on setting it up from cloud service.. BTMM.
    http://www.apple.com/support/icloud/back-to-my-mac/
    If you want to do it without the cloud service, you have one major issue.. the public IP for WAN..
    The internal IP of the TC.. which will default to 10.0.1.1 btw.. is irrelevant. It is the IP of the WAN which you use to access the TC over the internet. And here you have a problem.. the TC does not include dyndns service. So unless you have a static IP address from your ISP, this will cause you grief.
    (If it is offered by your ISP.. get a static IP.. that eliminates all the issues.. and is far superior. Even dyndns service has issues if your public IP rotates too often. It is generally an extra cost item and requires a business account but some ISP offer it cheap or even free.. I joined an ISP that offered static ip for free because it gives me the ability to remote access my network without all the hassles you will see below.)
    There are ways around it.. setting up your own domain for instance.
    http://dyn.com/support/airport-time-capsule-with-dynamic-dns/
    But it is easier to simply use a different router.. almost all of them have dyndns service available.. place the TC behind the router in bridge and forward port 548 TCP to it.
    This is a bit old but still relevant.
    http://gigaom.com/apple/access-your-time-capsule-over-the-internet/
    Note .. there is no ftp, http, ssh (there is actually but it isn't accessible), or any other service to allow connection other than AFP.. so you must use a Mac in remote location to access the TC.
    The setup for the two methods is slightly different in the TC.. in the first instance, you need to turn on WAN access via disk sharing page in the manual setup.
    In the second case you do not need this.
    Remember security and put strong passwords on the disk. There are still security questions about this.
    If security is important.. there is a third and better (IMO) method and that is vpn.. you will need to buy a vpn router as TC also missed out on that.. establish a vpn with the main router and that will allow you access to your network.. you will also then be able to use SMB remotely not just AFP.
    Also if this office is a large company they should be running a firewall, which would block your access to home. You should check your IT admin people for what is allowed.. generally the only acceptable method is vpn otherwise you can drag viruses and trojans right into the network without the firewall catching them.

Maybe you are looking for

  • Video Out in Boot Camp with Windows XP

    Sorry, this is my first help request... i hope i write in a correct section. I installed Windows XP SP2 with boot camp in my Mac Book Pro. I have the third part MiniDisplay Port to HDMI adapter with audio. I use it for projector. I always use it with

  • HR - FI INTEGRATION

    Hi Gurus, I facing problem in integration with FI. I maintained one symbolic account for one wage type like that several symbolic accounts for wage types with several GL accounts assigned to them. I got 2 warning and 2 error messages :- <b>WARNING</b

  • Copy/paste report with a macro.

    Hi all, I want to know if a macro VBA able to copy/paste a report (the equivalent of report action --> Copy report / Paste report) exists ? Thank you in advance.

  • Normalize in the bounce section?

    when you go to bounce a tune, what exactly does that normalize function do if you turn it one? and yes I am experiencing sluggish issues, sometimes even to move a plugin, never had that before, but i am running a bunch of 3rd party

  • Format Date question as VARCHAR

    Using Oracle 10g: I have a varchar field that is holding a date like: 2010-08-28 14:40:21 I'm trying to format the date so I can check if it's greater than the sysdate. I'm trying to do: TO_CHAR(end_date, 'YYYYMMDD' ) > to_char(sysdate,'YYYYMMDD'); I