RMI recovery and multi-client questions

Hello,
I'm new to RMI and managed to get a sample HelloWorld-code running. After secceeding two major questions came up.
1) If the RMI server is running and the registry server crashes and is restarted, then the new instance of the registry server does know anything about the still running RMI server. What do you need to to that the RMI server rebinds. My idea is that the RMI server must be multithreaded, controls in the background the registry and automatically rebinds after a crash. Any other easier and even better solutions?
2) My impression is that there is one instance of the RMI server waiting for incoming requests. What happens, if a request takes a long time and a second request from a second client comes in? How can it be achieved that one RMI server handles many client requests? I know for database connections ther is something like pooling. Do you need to implement a similar technique for RMI.
3) Would the implementation of a web service avoid the problems mentioned above?
Thanks for any suggestions or hints to related topics.
Regards, Rainer

Hi carr_onstott ,
thanks for clarification and the suggestion to start the name service withing the own application. � need to discuss this approach with the customer, normally there is one and only one name service on a server using the default port. With your suggestion I need to reserve a second portnumber and moreover standard tools providing a list of registered RMI servers will not detect my RMI server.
The problem I see with web services is that we plan to exchange huge binary data byte[] and this is not really what web services are made for. There are sultions to use multibodypart to transfer the XML web service request/response, but the amount of data increases dramatically.
Regards, Rainer

Similar Messages

  • "rescue and recovery" and "swshare" log question

    I am currently analzying logs from "rescue and recovery" and "swshare" program and notice SMA.log and capture.sma in particular. I want to verifiy what do each of those 2 logs mean. does one mean the data that was successfully backed up and the other one means what was restored to the machine? the restore.log contains a specific date, was that the date the data was restored to the machine?
    Thanks in advance!!!

    The logs gets created automatically and have the information of the particular task which is completed or processed.
    Best Regards,
    Tanuj
    Did someone help you today? Press the star on the left to thank them with a Kudo!
    If you find a post helpful and it answers your question, please mark it as an "Accepted Solution".! This will help the rest of the Community with similar issues identify the verified solution and benefit from it.
    Follow @LenovoForums on Twitter!

  • Install Novell Client and ZFD client question

    Currently I am doing an unattended install of the Novell client and then a
    login script install of the ZFD client. Is there a way to install the novell
    client and then kick off the install of the ZFD client before rebooting? Or
    would this cause more trouble then its worth?
    Thanks for the help.
    Rich

    Rhuhman,
    It appears that in the past few days you have not received a response to your
    posting. That concerns us, and has triggered this automated reply.
    Has your problem been resolved? If not, you might try one of the following options:
    - Do a search of our knowledgebase at http://support.novell.com/search/kb_index.jsp
    - Check all of the other support tools and options available at
    http://support.novell.com.
    - You could also try posting your message again. Make sure it is posted in the
    correct newsgroup. (http://support.novell.com/forums)
    Be sure to read the forum FAQ about what to expect in the way of responses:
    http://support.novell.com/forums/faq_general.html
    If this is a reply to a duplicate posting, please ignore and accept our apologies
    and rest assured we will issue a stern reprimand to our posting bot.
    Good luck!
    Your Novell Product Support Forums Team
    http://support.novell.com/forums/

  • Recovery and USB HDD Question

    I have a USB HDD for my laptop (About 1TB). If worse comes to worse, is it possible to restore from System Image that I create on that USB HDD, or does it have to be a USB flash drive?
    Qosmio X870-BT3G23

    Qosmio X870-BT3G23
    I have a USB HDD for my laptop (About 1TB). If worse comes to worse, is it possible to restore from System Image that I create on that USB HDD, or does it have to be a USB flash drive?
    Depends on what image you created.
    Best to back up a current image periodically to that external drive this way. I'll assume you've upgraded to Windows 8.1.
       Use System Image Backup
    The image that enables you to restore the hard disk to its original out-of-the-box contents needs to be on DVDs or a flash drive. See p. 54 of the User's Guide.
    -Jerry

  • Can I put both RMI server and client in a same program

    hi everybody...
    I wanna know that can I use RMI server and client in a same program....My idea is like that I wanna use the same program for client and server....When I open my program, I can accept connection from other program and if I want to connect to others, I can also connect it. I expect you to understand my question. Here are the sample code for my program...
    package Chat.Rmi;
    import java.lang.*;
    import java.util.*;
    import java.rmi.*;
    import javax.swing.*;
    import java.net.*;
    import java.rmi.server.*;
    import java.rmi.registry.*;
    public class netKitManager implements netKitInterface{
        public netKitManager(){
            try{
            reg = LocateRegistry.createRegistry(4242);
            reg.rebind("NetKitServer",this);
            }catch(RemoteException re){
        public void DirectConnect(String ip){
            try{
            netUser = (netKitInterface) Naming.lookup("rmi://"+ip+":4242/NetKitServer");
            JOptionPane.showMessageDialog(null,"Connection succeded!");
            }catch(NotBoundException nbe){
                JOptionPane.showMessageDialog(null,"There is no server at specified IP address!");
            }catch(MalformedURLException mue){
                JOptionPane.showMessageDialog(null,"IP adress may be wrong!");
            }catch(RemoteException re){
                JOptionPane.showMessageDialog(null,"Remote exception occured!");
        public void SendMessage(String msg){
            try{
            netUser.SetMessage(msg);
            }catch(RemoteException re){
        public void SetMessage(String msg) throws RemoteException{
            chatKit.SetMessage(msg);
        private netKitInterface netUser;
        private Hashtable netUserList;
        private Registry reg;
    }

    Yes it can be done. I have done it.

  • Memory leaks and multi threading issues in managed client.

    In our company we use a lot of Oracle, and after the release of the managed provider we migrated all applications to it. First the  things were very impressive : the new client was faster, but after some days applications that uses 100MB with old client goes to 1GB and up. The memory is not the only issue, we use a lot of multi threading, and we experience connection drops and not disposal, after 1 days working one of the application had over 100 sessions on the server. I think there is something wrong with connection pool and multi threading.
    Is someone experience same problems.
    Yesterday we went back with unmanaged provider. Now things are back to normal.

    connection drops: did you try to use "Validate Connection=true" parameter in your connection string?
    the new client was faster: are you sure with this statement? Even in 64bit environment? I got quite serious performance problems when running application under 64bit process: https://forums.oracle.com/thread/2595323

  • RMI Server and RMI Client Problem

    First, Hi!
    I have create my RMI Server and a RMI Servlet client.
    I can run the server and servlet first time and it works fine.
    Then, I stop rmiregistry and server.
    Then, I start rmiregistry and server for a second time but my RMI Servlet client gets a
    java.rmi.ConnectException: Connection refused to host: xxx.xxx.xxx.xxx; nested exception is: java.net.ConnectException: Connection refused
    If I copy the class again where the servlets resides, it works again. But I have to keep doing that. I have to keep copying the class file to the servlet directory every 2nd time I try to run it for it to work.
    Anyone know what am I doing wrong?

    First, Hi!
    I have create my RMI Server and a RMI Servlet client.
    I can run the server and servlet first time and it
    works fine.
    Then, I stop rmiregistry and server.
    Then, I start rmiregistry and server for a second time
    but my RMI Servlet client gets a
    java.rmi.ConnectException: Connection refused to host:
    xxx.xxx.xxx.xxx; nested exception is:
    java.net.ConnectException: Connection refused
    If I copy the class again where the servlets resides,which class file ? u mean RMIServer's class files ??
    I have faced the same problem too. In my case if i just restart my Tomcat webserver the error goes and the servlet is very well able to connect back to the RMI Server
    it works again. But I have to keep doing that. I have
    to keep copying the class file to the servlet
    directory every 2nd time I try to run it for it to
    work.
    Anyone know what am I doing wrong?

  • Someone hacked my icloud account and change recovery and secret questions. but i have my gmail account with me

    hello ,
        one of my friend hacked my icloud account and chage its recovery and secret questions...now cannot change its password ever i have gmail account for the same icloud account..plz help me to reset the password as i m stuck on activation...

    Contact Apple for assistance by going to https://expresslane.apple.com, then click More Products and Services>Apple ID>Other Apple ID Topics>Lost or forgotten Apple ID password.  You will need your serial number, which can be found on your device in Settings>General>About.

  • TDMS: is it possible to use sender and receiver client within the same SID

    Hi all
    I have a general question about TDMS: i always read that it is possible to refresh data from a productive system/client to a test system/client, e.g. PRD100 => DEV100. But is it also possible to refresh data from one sender-client to the receiver-client inside the same system using TDMS, e.g. DEV100 => DEV200.
    i'm asking because if i start to build up a new client using tdms the first step is to build up the client using package "ERP Initial Package for Master Data & Customizing". This includes under point "data transfer" the step "lock the system" with teh following description:
    Lock System
    Activities
    During data deletion in the receiver client, the tables are dropped. All clients in the system are affected by this procedure. Consequently, all users in all clients in the receiver system must be temporarily locked while the data deletion takes place.
    The function for this activity locks only the current client. If the receiver system is a single client system, it is sufficient to execute the function. If, however, the receiver system is a multi-client system, the user in the other clients must be locked using standard means.
    Anyone has any experience with this scenario inside the same system?
    Regards
    Adrian

    You can run TDMS package on the same system and between different clients. However SAP don't recommend to run TDMS package on the same system.
    There are 2 ways to delete data in receiver system: Array delete and drop insert.
    You have to use Array Insert only which is usually very slow as it first select all the relevant entries from the tables in the target client and then drop it. So, it is slow.
    Drop insert is much optimized and fast but the same can not be used in this use case.
    That is the reason SAP don't recommend to have TDMS run in same system.

  • RMI service and failover

    Hi All,
    I am building an RMI service (implements UnicatRemoteObject). I am using Naming.rebind to bind my service - I start RMIRegistry as a standalone process. The client performs Naming.lookup to find the handle of server object.
    One of our requirements is that all our services must be highly available, with reasonable fail over.
    The questions are:
    1. How can I handle RMI registry automatic restart when it goes down ? Alternatively can I start multiple RMI Registries and register my service with all of them ?
    2. How can i restart my RMI Service when it goes down ?
    3. What about the Naming.(rebind, lookup) calls ?. Is Naming service always available ?
    We are using JBOss 4.0 as our app server. Any help is highly appreciated.
    Regards
    Vissu
    .

    Hi All,
    I am building an RMI service (implements UnicatRemoteObject). I am using Naming.rebind to bind my service - I start RMIRegistry as a standalone process. The client performs Naming.lookup to find the handle of server object.
    One of our requirements is that all our services must be highly available, with reasonable fail over.
    The questions are:
    1. How can I handle RMI registry automatic restart when it goes down ? Alternatively can I start multiple RMI Registries and register my service with all of them ?
    2. How can i restart my RMI Service when it goes down ?
    3. What about the Naming.(rebind, lookup) calls ?. Is Naming service always available ?
    We are using JBOss 4.0 as our app server. Any help is highly appreciated.
    Regards
    Vissu
    .

  • OSX: multi client server app with NSNetService

    hello
    i have a small osx server app
    that uses NSNetService to manage connection and set up streams
    but it seems to stop advertising as soon as a clients connects
    how can i make it multiclient so it keeps advertising and when a new client connects uses the same streams ?
    thanks in advance
    nonnus

    superdeportivo wrote:
    Hello fellahs, as the title of this post says I'm making a client and server application. The server are supposed to handel several clients, and the communication is done true UDP. Out of interest why have you chosen UDP rather than TCP?
    I have got two questions concerning this. The first one is if a exception is throws in the server should I then send the exception back to the client in serialized form. If I choose to do this then I also would need to handel the exception classen to the client. Or should I send back a regular IOException and use it's init cause to define the exception which occured in the server. That is up to you, you can do either. I would do the first option.
    The second question is concerning the multi client support. If this is going to work then I would need to time-out the connection i the server environment, and I have not a clue about how long it should be?It should be long enough that you don't timeout a valid connection. There is no simple answer to this.

  • Recommendations/experiences using APO-DP in multi-client SCM environment ?

    Hello experts,
    we have an SCM5.0 system using DP/SNP etc. Now we want to onboard another company (Joint Venture) and introduce DP first for them. We are investigating what it would mean to setup another client within our existing SCM system or what challenges we could run into (since the underlaying BW is not truly multi-client capable).
    SAP Note 1413544 says that theoretically SCM is capable of doing so with some limitations since there can only be 1 "master" BW client in an SCM system. Does somebody have / would kindly share experiences working withe several APO clients within 1 SCM system and preferably using DP.
    My questions would be:
    1) if I create a new DP PlanningObjectStructure in the additional APO client - do I need to activate it the "master BW client" (since there is an internal InfocCube behind) ? Does this also mean all POS and PAs are visible in all clients or only in the client where I created them ?
    2) if I want to use RemoteCube to extract data from a DP (or SNP) planning area (ad-hoc reporting on LiveCache Data)- does this go thru the "master BW client" or thru the additional / new BW client ?
    3) Assuming I would create a new DP POS + Planning Area in the additonal client and create planning Books / DataViews - are these PB/DV visible in all clients or only in the one where I created it ?
    Regards
    Thiomas

    Hi Thiomas,
    Though I have not worked for this scenario. However as per my understanding,All APO objects as PA, MPOS ,PB, DV should be client specific and will be  visible in the specific client only. The Tricky portion would be the BW portion. As this would be single one, So the extraction cube and Planning area datsources should be visible in the main client BW.Hence it can be used in the same BW client .
    I hope this should work having the seperate client for DP objects and keeping the same main BW client at the background. Let me also the test results.
    Let me know if it helps.
    Regards
    Gaurav

  • Working with BW Multi Clients

    Hi.
    I know that in BW the System you work in has only one client for Configuring. In my case I need to create two clients for data purposes (have two different  not parallel projects), but I was thinking in creating these two clients for development purposes also, at the end the configuration is the same for the whole system, so if a user enters on client1 and another on client2, if one of them tries to modify one object, it becomes locked for the rest of the users.
    QUESTION: Have any of you worked in a Multi Client Landscape for BW? Is it possible to develop in one System using two different clients?
    Greetings.
    Jesús R. Cova Graffe

    Hi,
    As stated in the SAP link you can't effectively operate BW with 2 productive clients in one system. However data can be separated by means of authorization and/or splitting ODS'/cubes on organizational level (compcode etc.)
    In a technical point of view all generated objects like ods,cube, update rules, tables and structures are client independent objects. Here a 2nd client within BW won't help to support 2 "separate" development projects.
    In my experience it's best to put separate BW projects together on one dev box. In this way the developers are aware in an early stage when shared objects are hit. Before QA/Integration testing. From what i've seen and experienced it only saves time, and yes it is annoying.. because everyone has to play by the rules..
    Are there any questions left: ask,
    if you're satisfied, please reward.
    Kind regards, Patrick Rieken.

  • Help with RMI tutorial (and Eclipse)

    Hi!
    I need a little help with RMI tutorial. I have all source files from tutorial downloaded, but I never did anything like this and don't know, how to run it. I somehow did Building a JAR File of Interface Classes from [http://download.oracle.com/docs/cd/E17409_01/javase/tutorial/rmi/compiling.html], but got stuck on simple HTTP server, I didn't understand, what to do.
    Bonus question: is it possible to do those commands from Eclipse? How?
    Thanks a lot!

    It seems that the example provided (in the link) requires a web serverNo it doesn't. It requires an HTTP server.
    tomcat will be a better option which you can useThe Apache HTTP server might be more to the point.
    But If you are new to RMI and need to understand the exact flow of RMI I think this will not be a better exercise to start withI agree. I would get it running without the codebase feature. This isn't as widely used as you might think, and anyway it is a deployment option not something you need to engage with much when developing.
    @OP: ignore the HTTP stuff and the codebase feature and build 3 JAR files:
    (a) the common stuff (remote interface, stubs if any, and any classes referecned by the remote interface)
    (b) the server (the remote object itself and anything server-side it uses)
    (c) the client.
    The common JAR file should be deployed to both the server and the client, and both the other JARs should name it in their Class-Path entry in the manifest.

  • Rescue and Recovery AND Create Recover Media crash

    Hi,
           I need some guidance on my problems with Think Vantage. I am new to this forum and overwhelmed by the volume of information.
    My problem. "Rescue and Recovery" AND "Create Recover Media" crash when I attempt to use them.
     I have a Lenovo  N100 0768A27 running XP. Everything is up-to-date. I have no other problems!
    I have downloaded the System Tool Box but that does not want to work either.
    I am running R&R version 3.01.1037.00 and I think Client Security 6.1.44.0 but is does not show in my application list only when I logon.
    I must confess to turning RR off for a while as I was short of space.
    I have tried updating RR to version 4.2 but cannot de-install original version.
    I would appreciate some direction on who to step thru this problem and what info to use.
    Regards
              Garry
    Moderator Note: Edited subject to match content.
    Solved!
    Go to Solution.

    hey Thegazzman00,
    welcome to the forums and for this, was there any error when it crash or when you were trying to upgrade to version 4.2 ?
    If yes, could you provide a screenshot for us ? Many thanks for that.
    WW Social Media
    Important Note: If you need help, post your question in the forum, and include your system type, model number and OS. Do not post your serial number.
    Did someone help you today? Press the star on the left to thank them with a Kudo!
    If you find a post helpful and it answers your question, please mark it as an "Accepted Solution"!
    Follow @LenovoForums on Twitter!
    Have you checked out the Community Knowledgebase yet?!
    How to send a private message? --> Check out this article.

Maybe you are looking for

  • Trouble with Drawing Markups in Acrobat Pro XI

    Hello all and thank you for any help that comes out of this. I use Acrobat XI for several forms for work.  They are timesheets.  I created these forms from another PDF that was given to me.  Part of the use of these forms involves adding Drawing Mark

  • New Yahoo Search Changes

    I have always used Yahoo search; while Firefox had Google as the default, I would change it to Yahoo. I would sometimes try google but one of the things that annoyed me with Google was if you clicked on a link, that link would, by default, open on th

  • IPod Nano Capacity-What is "other" and how do I get rid of it?

    Help! I can't figure this out at all.

  • Compressor stalls when running additional Compressor instances

    I have been running Compressor 4.1.1 for months on my Mac Pro utilizing the maximum number of "additional Compressor instances" that my computer supports (3).  A couple of days ago I had to do a complete re-install of my Mavericks OS on my boot drive

  • Flex builder and snow leopard problems

    Since upgrading to Mac OS X 10.6, Flex Builder is functioning extremely poorly. The worst issue is that I am experiencing extreme slowness when typing code. I type a few letters and then have to wait a few seconds for my text to fully appear. The is