Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

RMI over the Internet inc. Callbacks (Lipe RMI)

 
David North
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, I am trying to implement an application using a 3rd party API called LipeRMI (version 0.4.2). Lipe RMI Support from there seems inactive for a couple of years now.

Attached are my test client and server.

1 However, the API has a synchronization problem with ObjectInputStream and ObjectOutputStream in the class ConnectionHandler. My test applications hang after 4 seconds as the synchronization is not correct. I have tried adding/moving locks, but am lost at where the hang is. My IDE is Netbeans, which shows there is no code deadlock. But reading around, there are comments that the OIS and OOS are deadlocked.

2 As a side note, if anyone can recommend a good method of performing RMI over the internet between firewalls inc. callbacks, then please let me know.

Any help would be gratefully recieved.

David





 
Pat Farrell
Rancher
Posts: 4678
7
Linux Mac OS X VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't know anything about LipeRMI but the fact that its inactive should give you a hint. Don't use it.

RMI still has a few places where it can be valuable, but in most cases, it was a solution invented a decade or more ago that really does not solve any modern problems.

It is much more modern to pass messages, rather than remote procedure calls. They are much more robust, and easier to debug.

Check out REST, its really a better idea.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic