Search:

Type: Posts; User: rlk

Search: Search took 0.17 seconds.

  1. RMI deserialization cause java.outofmemory heap space

    I have RMI call

    I pass a structure and the RMI method process it and access DB and fills the result in the same type of sturcture and returns. (code shown below)

    when deserialization...
  2. Thread: JAVA RMI question

    by rlk
    Replies
    6
    Views
    1,237

    Re: JAVA RMI question

    I am getting java outofmemory: java heap space exception when deserializing.
    the returned object is bigger. how to handle this situation?
  3. Thread: jdbc connections

    by rlk
    Replies
    4
    Views
    1,853

    Re: jdbc connections

    thanks. In my try, it did not work and i got max connections reached exception. I moved the open/close outside the loop. I also thought theoratically it should work. but looks like the loop goes...
  4. Thread: JAVA RMI question

    by rlk
    Replies
    6
    Views
    1,237

    Re: JAVA RMI question

    yes i changed my code on the Remote method to return the map;

    Map<String, Object> mapObj = new HashMap<String, Object>();

    mapObj = remoteObjectIF.callMethod(mapObj);

    in the remote method it...
  5. Thread: jdbc connections

    by rlk
    Replies
    4
    Views
    1,853

    Re: jdbc connections

    my question in not regarding my code.

    My questions is if we loop open/close connection lets say 20k to 30k times, will that be a problem? I thought as long as we open and close, it should not...
  6. Thread: jdbc connections

    by rlk
    Replies
    4
    Views
    1,853

    jdbc connections

    I had existing function (f1) that opens and does select sql and returns results and closes connection.

    Now I need to call the f1 many time. so in a loop

    loop begins
    f1
    loop ends.

    As...
  7. Thread: JAVA RMI question

    by rlk
    Replies
    6
    Views
    1,237

    Re: JAVA RMI question

    yes. i realised that it is between 2 jvms.

    when I explicitly return the structure back again, the client received the values.
  8. Thread: JAVA RMI question

    by rlk
    Replies
    6
    Views
    1,237

    JAVA RMI question

    I am a newbie to RMI.

    From the client side, calling Remote method and passing hashmap of keys and values are null. I want the server to fill the values for each key. is that possible.

    ...
Results 1 to 8 of 8