Rmi on Android?


Last Updated:

  1. Carteruccio

    Carteruccio New Member This Topic's Starter

    Joined:
    May 13, 2010
    Messages:
    3
    Likes Received:
    0
    Hi everyone,

    is it possible to use rmi on Android?

    Tnx
     

    Advertisement
  2. Carteruccio

    Carteruccio New Member This Topic's Starter

    Joined:
    May 13, 2010
    Messages:
    3
    Likes Received:
    0
    mmm...no-one answering my question?
     
  3. apprabbit

    apprabbit New Member

    Joined:
    May 15, 2010
    Messages:
    2
    Likes Received:
    0
    Stupid question, but what is RMI? A quick google search didn't give me a good indication of what you're talking about, based on the context. I'd love to help, but I'm not sure what you're talking about :)
     
  4. Carteruccio

    Carteruccio New Member This Topic's Starter

    Joined:
    May 13, 2010
    Messages:
    3
    Likes Received:
    0

    It's Java RMI! it enables the programmer to create distributed Java applications, in which the methods of remote Java objects can be invoked from other Java virtual machines, possibly on different hosts!
    So my problem is the following: I hava a Java Application (let's call it JA) and an Android application (let's call it AA) running on a PC. I want AA to communicate with JA but I don't know how to do since I started working with Android just last week, so I don't have a lot of experience! When you have two Java applications you can use RMI to have them communicating but with Android RMI seems not working at all!
     
  5. timp

    timp New Member

    Joined:
    May 22, 2010
    Messages:
    1
    Likes Received:
    1
    Hi, I've just started playing round with both Android and the google app engine(free) and while neither support RMI, they both support java reflection, I've managed to "roll my own" RMI that works over http from the android phone to a google app engine app(or anywhere else capable of running a servlet), One draw back of using google app engine as the server is all the method calls are of a static(stateless) nature as you can't guarantee that consecutive method calls will be processed on the same server/jvm.
    If you would like my code, just ask and I will try and upload it here or email it to you.:)
     
    rshnrocket85 likes this.
  6. rshnrocket85

    rshnrocket85 New Member

    Joined:
    Feb 13, 2011
    Messages:
    2
    Likes Received:
    0
    Hey timp,

    I would love to be able to see how you were able to accomplishthe rmi to work. I am currently attempting to write an android app that would be able to connect to a jboss server, but been having a hard time getting the rmi to work.
     
  7. emaborsa

    emaborsa New Member

    Joined:
    May 12, 2011
    Messages:
    4
    Likes Received:
    0

    I'd be curious too....have you been able?
     
  8. sohguanh

    sohguanh Well-Known Member

    Joined:
    Apr 18, 2010
    Messages:
    428
    Likes Received:
    34
    RMI sounds good but won't it achieve something similar by having web services in the form of REST? JSON format is popular and I think it should form the future. RMI to me are too troublesome when all we want is to transmit a message from A to B.

    Can you imagine using RMI to get those RSS feeds? It is overkill. A simple HTTP call, the return text in some pre-defined XML format and we are done.
     
  9. ashaw1

    ashaw1 New Member

    Joined:
    Oct 26, 2012
    Messages:
    1
    Likes Received:
    0
    Hey Timp,

    I'd love a look at your code if you still have it! I know this was back in 2010 but I've just become interested in making Android Apps talk to Java processes on other machines.

    Cheers,
    A
     

Share This Page

Loading...