Is RMI the answer

Hi
I have a problem where I am required to run a java program on a unix server that is supposed to create a file on another PC on the same network.
The URL class won't work due to internal setup restrictions.
What I have created instead is a small Client/Server application with the server jar sitting on the recipient PC and the client jar sitting on Unix.
Now, the recipient PC doesn't contain the java VM.
My workaround has been to invoke the server jar from my own PC.
I can now create the file by coding the client to seek a connection to my own PC's IP address.
This will result in the file being created on the correct recipient PC which is running the server jar. (I've tested this and it works)
My question is this:
I would like to activate the server jar remotely and ensure that it uses the VM from a PC other than itself.
In effect this is a two part problem.
1. How to activate remotely.
2. How to ensure that the server jar will execute despite there being no VM on the host.
Any advice or pointers on this would be greatly appreciated.
Many Thanks
GB

Thanks for taking the time to respond cotton.m
I do* manage to run the server.jar program on a PC that doesn't have the VM installed.
The scenario I mentioned in my first post involves two PC's and a unix machine, they are all part of the same internal network.
serverPC is where the serve.jar resides, myPC is my own PC and where the VM resides, the client.jar lives on the unix machine.
I run the server.jar using the VM on myPC.
I then point the client.jar that resides on the unix server at myPC.
The server.jar responds to the request and creates the file on serverPC ..... despite there being no VM on serverPC.
GB

Similar Messages

  • Is RMI the best way for Applet to Java communications?

    I have an application that uses a Java program to read values from a PLC (programmable logic controller) via ethernet. I want to display them in Internet Explorer. Currently, I use SQL statements in the application and an applet to pass the values, but this causes the hard drive to be busy all the time. A better way would be to have the applet pass which registers to read for the current page to the application. The application then reads these values once every second (to update the page) and passes them back to the applet. Is RMI the best way to do this? The application and the applet run currently on the same PC, but I can envision going with a client/server architecture at some point in the future. Please respond to: [email protected] or [email protected] Thanks!

    Writing to the DB and reading back is not the best way of achieving IPC. You can use DB directly as long as both applet and application have permissions to do that. This has an advantage that it avoids RMI overhead (though not much). You would not be able to do this if your applet is going to be launched on a web environment (as typically, security policies do not allow you to write/read on local machine's DB or any m/c other than web-server's).
    I feel your current approach has the following
    advantages:
    --> There's no RMI(or any other IPC mech.) overhead involved.
    --> Best way to communicate if applet is permitted to do all the things that the application can do on DB.
    limitations:
    --> When applets are launched through web, this approach would work only if the DB resides on the same m/c as web-server(JDBC).
    --> Lot of DB I/O, table locks etc... affect performance. Application alone can do all that activity(minimized) and communicate it to the applet through RMI/callbacks.
    Alternate/better approach:
    RMI and Servlet combination can be used in order to overcome those limitations. In this scenario, your applet gets downloaded on to the client's m/c, servlets (which make RMI calls to the application running anywhere) reside on the webserver's m/c. applet talks to servlets, which in turn communicate with application(DB). This approach would work in any scenario, but not without the overheads of RMI and/or HTTP. But in my experience, I have noticed that these overheads are not too large.
    To decide upon the strategy to be employed, you should consider all the possible deployment scenarios of your system. For passing any object, you may use RMI for reliable, easy communication. It can serve more purposes than just passing DB data. This will make your system extensible.
    regds,
    CA

  • Actually in my project The middle tier was written using RMI.The Database i

    Actually in my project The middle tier was written using RMI.The Database interaction was defined in the middle
    tier itself.My problem is , the queries we post to the database should interact with XML Database which in turn should
    interact with the actual Relational Database from which the XML Database was built.
    Thanks in Advance

    Leave the phone alone and let it cool down.

  • Is RMI the right direction for me to go...?

    I want to write a client program which accepts a domain name as its first argument and writes a UDP or TCP domain name protocol request to the x server with ip address.
    I want to write the code in java rather than in C. Is RMI the right category of Java for me to start on?
    Any guidance will be appreciated.
    Thanks

    jostad
    I'm not familiar with x servers and the protocols used to communicate with them, but I think that you can probably achieve what you want using sockets rather than RMI. RMI is mainly used for communication between Java applications (eg an applet and a server providing remotes eervices). You usually have a Java process on each end of the connection.
    Regards
    Matthew

  • I have a question that I think I know the answer to, but am looking for confirmation.  I have a dell computer at home that has clip art available on it for putting pictures into documents.  Do I need to install an APP to get something similar to clip art?

    I have a question that I think I know the answer to, but am looking for confirmation.  I have a desktop computer at home that has clip art loaded onto it.  I recently got an iPad and am looking for something similar.  I assume I need to get an APP for it, and if that is correct, does anyone have one that they like?

    Sort of.  There is an app called art shop that gives you a place to park clip art.   But I don't think you really need it. 
    If you have a collection of clip art you want available, move it to the camera roll on your pad/ phone, then copy paste into your document the clip you want.
    You can get them into the camaera roll by putting them in a single event in your picture library and syncing them over,  or e mail them to your self, and save to the camera roll, or send them to drop box, and bring them down that way.
    The challenge is getting them all in one place to make it easy for you to find, which is why syncing might be the best approach in the long run.
    As near as I can tell there is not a ready made clip art collection in app format laying around.

  • I can't remember the answers to ANY of my security questions. And in order to reset them I apparently have to remember the answers to at least two, which doesn't really help me at all considering my dilemma. Anyone know what I should do??

    Please help!! I can't remember any of the answers to my security questions (I made them approximately four years ago and don't know what I was thinking).
    How can I change my questions without answering my security questions that I don't know?!??

    You need to ask Apple to reset your security questions; this can be done by phoning AppleCare and asking for the Account Security team, or clicking here and picking a method, or if your country isn't listed in either article, filling out and submitting this form.
    They wouldn't be security questions if they could be bypassed without Apple verifying your identity.
    (105971)

  • HT2204 I don't remember the answers to the security question to authorize my new laptop to use iTunes. How to sort this problem?

    iTunes requires me to answer to a couple of security questions to authorize me to use it on my new mac book pro, but I don't rimember the answer to them. I can I sort out this problem?
    Thank you for helping...
    Danila63

     Account Security Team (AST) 
    Check the AppleCare number for your country here:
    http://support.apple.com/kb/HE57
    Call them up, and let them know you would like to be transferred to the Account Security Team.

  • My rescue email is a deleted email and i have no idea what the answers are to my security questions- what do I do? How do I change the rescue email?

    My rescue email is a deleted email and i have no idea what the answers are to my security questions… what do I do? How do I change the rescue email?

    You will need to contact Apple support. You can use the link in the quote below from If you forgot the answers to your Apple ID security questions - Apple Support
    If you couldn't send a reset email, don't have a rescue email address, or can't access email at your rescue email address, contact Apple Support.

  • I live in Australia but when I upgraded to IOS6 it changed my App Store region to the US. How can I change it back? I have been trying to find the answer.

    I live in Australia but when I upgraded to IOS6 it changed my App Store region to the US. How can I change it back? I have been trying to find the answer.

    Contact iTunes support & request they clear the balance:
    http://www.apple.com/support/itunes/

  • How do I delete photo ALBUMS from my iPHONE 4? I sync via icloud and I can not see any folders selected in itunes. I searched the internet and basically there is no one who has the answer to how you delete the iphone photo library and misc albums

    how do I delete photo ALBUMS from my iPHONE 4?
    I sync via icloud and I can not see any folders selected in itunes.
    I searched the internet and basically there is no one who has the answer (so far)
    to how you delete the iphone photo library and misc albums
    I have also had every iphone and I am not stupid.
    charles altman

    Replying to my own post - heh. I downloaded iExplorer (http://www.macroplant.com/iexplorer/) which allowed me access to the files on the phone and there was the phantom movie in the DCIM folder. Deleted it, and all is well - although I still have 0.65gb of Other in iTunes.....

  • My ipod wont let me buy apps etc... keeps saying this is the first time this device has been used and to sign in and answer security questions. I have had this account for years but cant remember the answer to the security questions. How can i fix it?

    My iPod touch wont let me buy anything, i've beem using this account for a couple of years and now it says that this is the first ime this id has been used on my device... it's not.... and to sign in and answer security questions. i cant remember the answers to the questions. How can i fix this without making a new account and losing all my stuff???

    From a Kappy  post
    The Three Best Alternatives for Security Questions and Rescue Mail
       1. Use Apple's Express Lane.
    Go to https://expresslane.apple.com ; click 'See all products and services' at the
    bottom of the page. In the next page click 'More Products and Services, then
    'Apple ID'. In the next page select 'Other Apple ID Topics' then 'Forgotten Apple
    ID security questions' and click 'Continue'. Please be patient waiting for the return
    phone call. It will come in time depending on how heavily the servers are being hit.
    2.  Call Apple Support in your country: Customer Service: Contact Apple support.
    3.  Rescue email address and how to reset Apple ID security questions.
    A substitute for using the security questions is to use 2-step verification:
    Two-step verification FAQ Get answers to frequently asked questions about two-step verification for Apple ID.

  • I can't change my apple id password because my security answers don't match. It won't give me any other options and just keeps asking for the answers. What do I do?

    I can't change my apple id password because my security answers don't match. It won't give me any other options and just keeps asking for the answers. What do I do?

    Contact the Apple ID Security site from http://support.apple.com/kb/HT5699 or call the AppleCare support number from http://support.apple.com/kb/HE57 and ask to speak with the Account security Team.

  • When i try to buy something it gives me my security questions i put them in right but saying they are worng i try to send me a email of the answers from itunes but it near shows up in my email?

    when i try to buy something it gives me my security questions i put them in right but saying they are worng i try to send me a email of the answers from itunes but it near shows up in my email?

    You need to ask Apple to reset your security questions; ways of contacting them include phoning AppleCare and asking for the Account Security team, clicking here and picking a method for your country, and filling out and submitting this form.
    They wouldn't be security questions if they could be bypassed without Apple verifying your identity.
    (105412)

  • I got a new iPhone and i am trying to buy songs but when I go to buy a song on iTunes it says I have to answer my security questions and I don't remember the answers. I pressed where it says for them to email you your answers but I haven't gotten an email

    I got a new iPhone and i am trying to buy songs but when I go to buy a song on iTunes it says I have to answer my security questions and I don't remember the answers. I pressed where it says for them to email you your answers but I haven't gotten an email.  Is there another way to change or get the answers for the security questions?

    If the email hasn't arrived after a few hours and isn't in a spam filter, you need to ask Apple to reset your security questions; this can be done by phoning AppleCare and asking for the Account Security team, or clicking here and picking a method, or if your country isn't listed in either article, filling out and submitting this form.
    They wouldn't be security questions if they could be bypassed without Apple verifying your identity.
    (106007)

  • HT201363 I have a lot of money on my Apple ID but when I try to buy something it ask for my security questions that I do not remember the answers to. I also don't have access to the email I used to set up my Apple ID but I do know the password how do I fi

    I have a lot of money on my Apple ID but when I try to buy something it ask for my security questions that I do not remember the answers to. I also don't have access to the email I used to set up my Apple ID but I do know the password how do I fix this ?

    You need to ask Apple to reset your security questions; ways of contacting them include phoning AppleCare and asking for the Account Security team, clicking here and picking a method for your country, and filling out and submitting this form.
    They wouldn't be security questions if they could be bypassed without Apple verifying your identity.
    (105412)

Maybe you are looking for