Possible to test one JVM using RMI into another JVM through a single IDE?

Hi everyone,
I'm currently trying to do something that I'm not yet sure is possible so I'll try to explain what I want to do as best I can and hopefully someone can give me some insight.
Basically I'm working with a service that runs on a JVM and I also have separate tool that runs its own main class with a new JVM.
Currently, in production the only way the tool can interact with the running service is to connect over RMI, which is fine, but now I want to add some new tools doing the same thing but am having a hard time figuring out the best way to test it pre-production.
So I guess what I'm asking is if it is possible to have my main service running in a test suite, and then also run a completely separate class through its main method and have it connect via RMI to the other one. All using the same instance of some IDE (in this case IntelliJ IDEA)
I know there are other ways of testing it, but this would be ideal (I think) if I could get it working at all.
My current test suite creates unix home directories so I could possibly tap into that somehow. I guess my other option would maybe be to run the tools class on its own through a different outside of the IDE enviro.
Thanks for any possible help

IJ lets you debug multiple apps concurrently from a single IJ instance. You didn't mention that that's what you're doing, but I'm assuming it is, else why run in IJ, right? If it's not what you mean, I assume that you can also just plain ol' run multiple apps the same way, and if by some weirdness you can't, just debug 'em and don't set any breakpoints.
EDIT: I guess I don't really know what you're talking about. When I've debugged multiple apps, it was using the "remote" debugging facility. The apps were started on the command line, and then I connected IJ. Note that "remote" just means a separate JVM, not necessarily a remote host, though that's also doable.
What is it exactly that you need IJ for as part of the runtime here?
Edited by: jverd on May 20, 2011 2:50 PM

Similar Messages

  • How do I move all my files from one User Profile (account) into another? I needed to create a new account and want all of my files accessible in the new one.

    How do I move all my files from one User Profile (account) into another?
    I needed to create a new account and want all of my files accessible in the new one.

    ok, what you're learning right now is 101 unix, which is good. Unix is a good thing
    now: the way unix works, and macos (which uses unix underneath) the files and folders work like a hierarchy.
    the start of that tree is /
    so, if you were to do:
    cd /
    (cd means change directory)
    it will bring you at the highest branch of the file system.
    cd /Users
    will bring you to where all the users are.
    to see whats in /Users you can use your friend ls command
    ls means list files/directories
    so:
    cd /Users
    ls -la
    (the -la here means show all (even hidden) and long format (very verbose))  this flag is very optional.
    you will see
    fred
    user2
    for example.
    if you want to see the desktop of user2 you would change directory to it then list the files.
    for example:
    cd /Users/user2/Desktop
    Note that the files and directory are case sensitive, so, desktop is NOT the same as Desktop, or DESKTOP
    ls -la
    you should then be able to see everything in users2 desktop
    you could have done as well the same thing in smaller steps, for example:
    cd /
    cd Users
    cd user2
    cd Desktop
    this is the equivalent of cd /Users/user2/Desktop
    So, for your file, i don't know where it was, but know that if you log in as user2, it will directly put you in
    /Users/user2
    which most likely the file you had created from the other user was in /Users/user1
    if you copied all the files from /Users/original_user to /Users/secondUser
    most likely yes, all your mail, bookmarks etc would be copied over.
    so in your case.
    sudo chown -R seconduser:staff /Users/secondUser
    should work
    Remember that if you start a path with the character /  it means start from the root of the file system, at the highest top you can ever get.
    so
    cd /Users/fred
    is not the same as
    cd Users/fred
    unless you were in / already
    i know it may be confusing at first but it's actually very logical if you play with it.
    to simplify, think of it that / means C:\  on windows
    you can't go any higher than C:\  (in a way)
    if you're unsure which directory you're currently in, you can always type:
    pwd
    it will tell you where you are.
    for example:
    cd /
    pwd
    this shows  /
    cd Users
    pwd
    this now shows /Users
    cd /System/Library
    pwd will show /System/Library
    cd /
    cd /Users
    cd fred
    cd Library
    pwd will show /Users/fred/Library
    unix can look very scary but it's actually vital and very necessary to do tasks sometimes that would take for ever to do via the windows. This is good learning.
    so for the myfile you had created, i can't tell you where it is, at the time you created, if you can do a pwd command you'll know the path,
    ls -la  (this shows all the files where you are)
    if you see myfile in the list
    do a pwd
    whatever is return, the real location of the file would be:
    whatever pwd returned / myfile
    I hope that makes sense.

  • HT1311 i tried to do a backup from my old iphone as i have a new one that was signed into another itunes account. it said i cant do it because the iphone rejected the request. how do i get around this? i have signed out of the old acct and into mine on th

    i tried to do a backup from my old iphone as i have a new one that was signed into another itunes account. it said i cant do it because the iphone rejected the request. how do i get around this? i have signed out of the old acct and into mine on the phone

    What is the precise wording of the error message that occurs on the old iPhone when attempting to do a backup?
    Are you attempting to backup via iTunes on the computer or iCloud?

  • How to copy one column BLOB value into another column of another database.

    How to copy one column BLOB value into another column of another database.
    BLOB value contains word document.
    I thought of copy the BLOB value into a text file and then update the new column value by the same text in textfile. Will this work?
    Is there any other better way to do this?

    You're welcome
    BLOB fields contains binary data. I don't think you can do this
    Also if I view the BLOB as text. Can I copy it and insert into the new database.
    I think your options are as I said. Datapump or CTAS
    Best Regards

  • __Can I merge one large Bitmap image into another?

    __Can I merge one large Bitmap image into another?
    I have 2 very large hi-res Bitmaps that I want to merge together into 1 file without converting to grayscale or anything. The problem is the second Bitmap is like a 'patch' and I want to insert it into the other like a puzzle piece, while maintaining corect registration (the bitmaps combine to a 4 colour seperation).
    Thanks in advance!

    1bit Bitmap offers no layer capabilities so going through grayscale seems advisable. (Edit: Naturally one should at the end of the combination process convert to bitmap again.)
    Other than that you could after pasting remove parts of the pasted content with the selection tools (setting them to subtract with alt).

  • Using RMI from another language

    I've been playing around with an idea of connecting to some Java library with RMI from a another programming language.
    I know that deep inside RMI uses sockets to send the data, so any language supporting sockets should be able to use RMI as well, it's a matter of creating the protocol for that language x.
    Does anyone if there's a library like this for any language?
    Is the RMI protocol free for studying? I found a couple of articles on RMI internals, but they don't go into this much of details.
    [http://www.developer.com/article.php/10915_3455311_3/Understanding-Java-RMI-Internals.htm|http://www.developer.com/article.php/10915_3455311_3/Understanding-Java-RMI-Internals.htm]
    [http://java.sun.com/developer/onlineTraining/rmi/RMI.html|http://java.sun.com/developer/onlineTraining/rmi/RMI.html]

    dave_spaghetti wrote:
    jtahlborn wrote:
    dave_spaghetti wrote:
    jtahlborn wrote:
    dave_spaghetti wrote:
    The RMI-IIOP sounds good, but the language(Flex/ActionScript) I was first thinking about does not have a CORBA support. Another need for an open source project maybe. I'll have to learn more about CORBA to see how complicated it is.doesn't flex/actionscript already have a java binding api?There's BlazeDS and GraniteDs, if that's what you meant. Those are Java EE apps running on top of an application server
    I'm thinking of something running local machine only. And like I said, I'm just thinking whether it would be possible at all.
    Edited by: dave_spaghetti on Mar 26, 2010 12:02 PMyes, that's what i was thinking of. the graniteds web page claims it runs on standalone tomcat or jetty. jetty is pretty lightweight. if it were me, i'd look at using these existing libraries before reinventing a (rather complex) wheel.Thanks for the reply and sorry for my reply coming so late.
    These are very valuable notes. I'll consider them. I think at least Tomcat has something called "embedded mode", which could be useful here.jetty has an embedded mode as well, we use it that way in our product. works great.

  • Copying from one arrangement and pasting into another arrangement

    Hi, I'm using Logic Express 8.
    I'm wondering if there is a way to copy several tracks from one arrangement window into another. I've tried to do this simply by copying and pasting, but when I paste into the new arrangement window I get error messages and the tracks pasted into the new window have a speaker icon with an "X" through it - and obviously no sound.
    Am I missing something, or perhaps this is simply a limitation that exists with using express instead of pro?
    Thanks a lot.

    You can do this by simply importing the data from one project to your new one. Check it out here.

  • How to read from one file and write into another file?

    Hi,
    I am trying to read a File and write into another file.This is the code that i am using.But what happens is last line is only getting written..How to resolve this.the code is as follows,
    public String get() {
         FileReader fr;
         try {
              fr = new FileReader(f);
              String str;
              BufferedReader br = new BufferedReader(fr);
              try {
                   while((str= br.readLine())!=null){
                   generate=str;     
              } catch (IOException e1) {
                   e1.printStackTrace();
              } }catch (FileNotFoundException e) {
                   e.printStackTrace();
         return generate;
    where generate is a string declared globally.
    how to go about it?
    Thanks for your reply in advance

    If you want to copy files as fast as possible, without processing them (as the DOS "copy" or the Unix "cp" command), you can try the java.nio.channels package.
    import java.nio.*;
    import java.nio.channels.*;
    import java.io.*;
    import java.util.*;
    import java.text.*;
    class Kopy {
         * @param args [0] = source filename
         *        args [1] = destination filename
        public static void main(String[] args) throws Exception {
            if (args.length != 2) {
                System.err.println ("Syntax: java -cp . Kopy source destination");
                System.exit(1);
            File in = new File(args[0]);
            long fileLength = in.length();
            long t = System.currentTimeMillis();
            FileInputStream fis = new FileInputStream (in);
            FileOutputStream fos = new FileOutputStream (args[1]);
            FileChannel fci = fis.getChannel();
            FileChannel fco = fos.getChannel();
            fco.transferFrom(fci, 0, fileLength);
            fis.close();
            fos.close();
            t = System.currentTimeMillis() - t;
            NumberFormat nf = new DecimalFormat("#,##0.00");
            System.out.print (nf.format(fileLength/1024.0) + "kB copied");
            if (t > 0) {
                System.out.println (" in " + t + "ms: " + nf.format(fileLength / 1.024 / t) + " kB/s");
    }

  • Startup Database using Controlfile into Another Platform

    Hello DBA's
    My IT Manager came with a logical question.
    Can we Copy the Datafiles + Controlfiles + Redologs ifrom one platform (SOLARIS) into another (Linux)
    and simply startup recreating the controlfile?
    If Not Why Not?
    If the Datafiles are in a Storage (Solaris) and this storage host partitions for Solaris Oracle Database and Partitions for Linux Oracle database
    Does someone can answer thsi question?
    Thxs

    In addition to the link provided by Osama (which talks about copying data between the same platform), you also need to consider moving your data across platforms and the endianness is important.
    If you are moving from Solaris SPARC to Linux x64, you cannot simply copy the datafiles. They use a different endianness. You must use the Transportable Tablespace Feature (and cannot transport SYSTEM tablespace). There is one exception if you are migrating from SPARC to Exadata, you'll need to search MOS for the note on that one.
    If you are moving from Solarix x64 to Linux x64 you can get away with the RMAN CONVERT DATABASE feature which will convert (basically copy and make some small modifications) your database. I found think link that outlines the procedure http://www.scribd.com/doc/19211941/RMAN-CONVERT-DATABASE-cross-platform
    Bjoern

  • How to get the data from one table and insert into another table

    Hi,
    We have requirement to build OA page with the data needs to be populated from one table and on save data into another table.
    For the above requirement what the best way to implement in OAF.
    I understand that if we attach VO object instance to region/page, we only can pull and put data in to only one table.
    Thanks

    You can achieve this in many different ways, one is
    1. Create another VO based on the EO which is based on the dest table.
    2. At save, copy the contents of the source VO into the dest VO (see copy routine in dev guide).
    3. commiting the transaction will push the data into the dest table on which the dest VO is based.
    I understand that if we attach VO object instance to region/page, we only can pull and put data in to only one table.
    if by table you mean a DB table, then no, you can have a VO based on multiple EOs which will do DMLs accordingly.Thanks
    Tapash

  • How to read LONG RAW data from one  table and insert into another table

    Hello EVERYBODY
    I have a table called sound with the following attributes. in the music attribute i have stored some messages in the different language like hindi, english etc. i want to concatinate all hindi messages and store in the another table with only one attribute of type LONG RAW.and this attribute is attached with the sound item.
    when i click the play button of sound item the all the messages recorded in hindi will play one by one automatically. for that i'm doing the following.
    i have written the following when button pressed trigger which will concatinate all the messages of any selected language from the sound table, and store in another table called temp.
    and then sound will be played from the temp table.
    declare
         tmp sound.music%type;
         temp1 sound.music%type;
         item_id ITEM;
    cursor c1
    is select music
    from sound
    where lang=:LIST10;
    begin
         open c1;
         loop
              fetch c1 into tmp; //THIS LINE GENERATES THE ERROR
              temp1:=temp1||tmp;
              exit when c1%notfound;
         end loop;
    CLOSE C1;
    insert into temp values(temp1);
    item_id:=Find_Item('Music');
    go_item('music');
    play_sound(item_id);
    end;
    but when i'm clicking the button it generates the following error.
    WHEN-BUTTON-PRESSED TRIGGER RAISED UNHANDLED EXCEPTION ORA-06502.
    ORA-06502: PL/SQL: numeric or value error
    SQL> desc sound;
    Name Null? Type
    SL_NO NUMBER(2)
    MUSIC LONG RAW
    LANG CHAR(10)
    IF MY PROCESS TO SOLVE THE ABOVE PROBLEM IS OK THEN PLESE TELL ME THE SOLUTION FOR THE ERROR. OTHER WISE PLEASE SUGGEST ME,IF ANY OTHER WAY IS THERE TO SOLVE THE ABOVE PROBLEM.
    THANKS IN ADVANCE.
    D. Prasad

    You can achieve this in many different ways, one is
    1. Create another VO based on the EO which is based on the dest table.
    2. At save, copy the contents of the source VO into the dest VO (see copy routine in dev guide).
    3. commiting the transaction will push the data into the dest table on which the dest VO is based.
    I understand that if we attach VO object instance to region/page, we only can pull and put data in to only one table.
    if by table you mean a DB table, then no, you can have a VO based on multiple EOs which will do DMLs accordingly.Thanks
    Tapash

  • Is it possible to have one library used between two users?

    Hello, I am setting up a friend's computer to have a seperate user for him and for his wife. The computer has been in use for about a year with just one user. Adding the second one makes sense for everything they use the computer for--except iPhoto. They have roughly 11,000 images in the library and want to be able to access, edit, export, etc them from whichever user is logged on. They would like it to work so that when one user adds images to the library, the other user has access to them as well. I looked into the sharing photos option, but it seems to restrict you to read only access when viewing shared libraries. Any suggestions on the best option for them? They are using a dual G5 Tower running iPhoto 5.0.4
    Thanks, Alan
    Powerbook 1.25 GHZ    

    Hey,
    saw this in macworld:
    (I haven't tried this, but it does indicate that permissions include read and write)
    Family Album
    My son and I share an iMac at home. Is there a way for us to use the same iPhoto library?—Kiki Mulliner
    With the proper privileges, this can be done with aliases. It works this way:
    Choose the most up-to-date iPhoto Library folder (located at your user folder/Pictures) and move it to the Shared folder inside the Users folder at the root level of the hard drive. Click on the iPhoto Library folder, press Command-I to call up the iPhoto Library Info window, click on the Ownership & Permissions triangle, and then click on the Details triangle below. Select Read & Write from the Access pop-up menu directly beneath the Group pop-up menu, select Read & Write from the Others pop-up menu, and then close the Info window. Hold down the Command and option keys and drag the iPhoto Library folder back to the Pictures folder to create an alias.
    Switch to your son’s user account, change the name of his iPhoto Library to something like iPhoto Library Old (in case you want to use this library again), open the Shared folder within the Users folder, and Command-option-drag that folder’s iPhoto Library folder to your son’s Pictures folder to create an alias.

  • How to use one Web Dynpro DC into another Web Dynpro Dc

    Hi All,
    I am trying to learn the usage of DC but I am unable to find a basic tutorial on this topic. I found a few tutorial and few blogs too, but none of them explains topics like:
    How to call child component methods from parent component and vice versa too if possible?
    Can somebody please provide me with a basic tutorial on this topic.
    Regards
    Sid

    Hi,
    Go through the Componentization tutorials
    https://www.sdn.sap.com/irj/sdn/downloaditem?rid=/webcontent/uuid/bd0e0401-0801-0010-aaab-d0e1742da383 [original link is broken]
    https://www.sdn.sap.com/irj/sdn/downloaditem?rid=/webcontent/uuid/751d003a-0b01-0010-8996-afbaa3fd5339 [original link is broken]
    https://www.sdn.sap.com/irj/sdn/developerareas/webdynpro?rid=/library/uuid/49f2ea90-0201-0010-ce8e-de18b94aee2d#comp
    Regards,Anilkumar

  • X79A-GD65 (8D) - Is it possible to recover one bios using the other?

    Sorry if this has already been answered but I found conflicting information when searching.  I just got a X79A-GD65 (8D) and was updating the BIOS when something when wrong during the flash.  I can boot from BIOS B.  My question is can BIOS A be recovered and if so, how?

    >>Use the MSI HQ Forum USB flasher<< to prepare a usb stick with the best bios around, the 1.18 B7 beta: https://forum-en.msi.com/index.php?action=dlattach;topic=163918.0;attach=10258
    Just start the tool and point to the not unpacked bios archive (Mode 1)
    Then restart with bios B. Now before starting to flash switch to bios A (yes, without powering down!) and continue to flash. Now bios A got flashed and should work again.

  • I would like to embed a video like this one created using Zaption into Adobe Captivate 6

    http://zapt.io/tt8r6fep
    I was told that I needed an LTI plug-in. What does this mean?

    You already posted this question in another thread.  Please do not double-post. It's quite annoying to those of us that spend our time for free answering questions here.

Maybe you are looking for

  • Lion no longer recognizes external hard drive.

    I've had Lion since the first day it was out.  All of a sudden, as of Sunday July 31, it is no longer recognizing my external hard drive, prevoiusly used for time machine.  I can see the disk in disk utility (disk repair does not fix the issure); how

  • PDF Printing problems with networked HP Laserjet C5020N

    Hello, I'm having problems printing documents that I've created with the PDF creator of Office 2007. When I try to print only the first page, the printer correctly prints, but when I try any other job (printing the whole document, only the 2nd page,

  • How to remove a keyword from a group of photos

    I want to remove a keyword from a group of photos.  They all have the same keyword attached, of course.  When I right-click keyword and choose 'Remove keyword from selected photos' it removes the keyword from the most-selected photo ONLY, not from al

  • Possible cfdocument header/footer bug in CF8

    All- I'm experiencing a problem with header and footers containing dynamic/ query variables in the header/footer text. The header and footer are sort of being cached or not being updated appropriately when a query variable is inserted into the conten

  • Still no ML redemption code after 15 hours

    Been waiting for my redemption code for over 15 hours. Anyone else still waiting for it?