1. Check out our app, Forums for Android! Download and leave feedback here!

Rmi on Android?

Discussion in 'Application Requests' started by Carteruccio, May 13, 2010.

  1. Carteruccio

    Carteruccio New Member
    Thread Starter
    5

    May 13, 2010
    3
    0
    5
    Hi everyone,

    is it possible to use rmi on Android?

    Tnx
     

    Advertisement

  2. Carteruccio

    Carteruccio New Member
    Thread Starter
    5

    May 13, 2010
    3
    0
    5
    mmm...no-one answering my question?
     
  3. apprabbit

    apprabbit New Member
    5

    May 15, 2010
    2
    0
    5
    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
    Thread Starter
    5

    May 13, 2010
    3
    0
    5

    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
    6

    May 22, 2010
    1
    1
    6
    New Zealand
    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
    5

    Feb 13, 2011
    2
    0
    5
    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
    5

    May 12, 2011
    4
    0
    5

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

    sohguanh Well-Known Member
    43

    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
    5

    Oct 26, 2012
    1
    0
    5
    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...