Sponsored by HowLifeWorks
How Private Online Shopping Clubs Work view!
howlifeworks.com - How to become a member and get discounts of up to 80% on must-have luxury goods
42 Comments
- brettalton, on 10/12/2007, -0/+9I would like to learn how to program Java... AND I'm interesting in Distributed Computing... this article helped me. So for people like me just trying to get a grip on "what's out there", I would recommend this article.
Thanks. - corser, on 10/12/2007, -0/+8I don't think it has to be news to show up on digg. I've seen plenty of tutorials,videos, games, etc... that aren't news.
The tutorial seems easy to follow and the document is easy on the eyes, good find - Phocion55, on 10/12/2007, -0/+5Always good to know I made someone's day!
- inactive, on 10/12/2007, -3/+8You boys ever noticed how SOME programmers seem to be snarky ***** who seem to only ever concern themselves with making someone with less knowledge on any level seem like a retard so they can feel smarter?
- Monkeyget, on 10/12/2007, -0/+4If you think RMI is clunky that means you didn't try CORBA! With corba you need to create 3-4 classes and it autogenerate twice as much, plus you have to create a definition of the interface in a special text file etc...
With RMI once you get past the rmiregistry (which may be tricky when deploying on some environment) and the particularities of the remote connections (objects parameters which are not modified, asynchronous call,...) it's so easy that you have to look carefully to notice you are calling remote code.
But I agree that webservices are even more simpler (and It's hyper and more entreprisey!) - Phocion55, on 10/12/2007, -1/+5Not bad. RMI is so incredibly clunky to me, though. I'd prefer using something like Apache's Axis SOAP framework to accomplish something like this. That way your clients aren't limited to just Java.
- Crucifix, on 10/12/2007, -0/+3If you're interested in RMI, you may also be interested in Apache Axis:
http://ws.apache.org/axis/
Axis allows you to implement java webservices and webservice clients.
Unlike RMI, webservices are not language specific - you can implement a webservice client in C#, Java, PHP, PERL, etc. On the other hand I think RMI is still the right choice if you're strictly developing under Java, as it offers advanced communicative functionality between Java peers that a webservice cannot provide. - bglodde, on 10/12/2007, -0/+3Axis is definitely great.
RMI is kind of *old* technology - check out Spring's HttpInvoker (using it on a Swing/Java Webstart/Hibernate project right now), Hessian, and Burlap. Much more lightweight than RMI, easier to work with, and HttpInvoker is actually better performing. - tybris, on 10/12/2007, -0/+2"This isn't news at all."
I don't see the word 'news' anywhere on this website...do you? - 3monkeys, on 10/12/2007, -0/+2@Phocion55 I didn't take it as a flame, it just that there are so many things to post about. I pick usually about a dozen or so a day, 2 to 3 make the front page. I really can't control which ones do (though according to recent conspiracy theories, I can). So I post what I think will be of interest to at least some group of people, either newbies, intermediate users or experts.
Want a very diverse read, check my submitted stories.
More positive feed back on things of interest tends to focus my posting. I realize that being such a prolific poster I have an advantage over first time posters and that what I post has a better chance of reaching the front page.
So give me some topics that are of interest. (My personal topics of interest are XML technologies, Open Source advocacy, and Linux). - inactive, on 10/12/2007, -3/+5Ah, I see. So, once someone learns the basic Java API, they magically know RMI. No, they dont? Once one learns the Java API and want to learn client/server programming RMI, what should the do? Maybe they should do to an online RMI tutorial. You know, like this one.
You are the epitome of "dumbass" and a prime example of what is wrong with FOSS, western culture and people in general. - 3monkeys, on 10/12/2007, -0/+2@phocion55, I'll admit not every tutorial type story I submit, is technology developed within the last 3 months. But none-the-less, a lot of people find them interesting and just as many find them to be old, out dated, lame, whatever. I also submit articles that seem to overwhelm some people and they digg it down because they don't understand it, while others praise it as being incredibly insightful (See http://digg.com/programming/The_GNU_Linear_Programming_Kit_Part_2_Intermediate_problems)
All in all these articles shouldn't be dugg down (and I'm not saying you're doing this) just because one person already "knows" the information, there are others that don't. Maybe the reverse will be true for the next article.
Some good constructive comments came out of this submission and hopefully most learned a little.
Peace. - Phocion55, on 10/12/2007, -0/+2I'm not flaming you 3monkeys....I'd just like to see some different stuff from you since your articles get out there more!
- Phocion55, on 10/12/2007, -0/+23monkeys submits TONS of front page tutorials. Wish they were more pertinent to today's technologies.
- Crucifix, on 10/12/2007, -0/+1@kebernet
So, what do you recommend as an alternative to Axis for implement Java webservices? - Phocion55, on 10/12/2007, -0/+13monkeys we share the exact same interests :)
- Phocion55, on 10/12/2007, -0/+1Never heard of XFire....worth a look I guess...
- estacado, on 10/12/2007, -0/+1There's bound to be a Java vs. .NET argument somwhere here. Congratulations on being the first one to post it.
- guinsu, on 10/12/2007, -0/+1If someone is going to post an article about RMI, and mention Java 2 in it, they could at least mention the automatic stub generation that has been available from version 1.4 on. It takes a bit of the hassle out and removes any need to know about rmic.
Also, the example could show how you run the RMI registry in process (so your server and registry run in the same JVM). It makes examples less complicated and could even be used for production. - digid, on 10/12/2007, -0/+1I would rather use JMS than RMI(although RMI still has its purpose). For web services stuff I've been playing a lot with Xfire lately.
- klagdon, on 10/12/2007, -0/+1This is a little out of date, and I could nit-pick a few things, but it is well written and a good starting point for someone who is looking to pick up RMI.
- tybris, on 10/12/2007, -1/+2These things are just completely different. If you want to build a distributed system using Web Services you are either insane or an ICT consultant. Web Services have their own domain.
- Phocion55, on 10/12/2007, -0/+1@Crucifix: First I figured he knew of some technology that I wasn't aware of. Click his profile and look at the stories he has dugg. He clearly knows nothing about anything computers.
- gyllstromk, on 10/12/2007, -0/+1I remember learning how to use RMI for a software internship in 2001. It wasn't all that new then.
This year is 2006. Are we celebrating the 5th anniversery of me learning to use RMI? - Phocion55, on 10/12/2007, -1/+1@Monkeyget:
CORBA was big a liiiiiiittle before my time :) - inactive, on 10/12/2007, -6/+6Yeah, you are right. No one would need this unless they were just learning Java.
Oh, wait. There are still some people who are just learning Java.
Dumbass - devfeed, on 10/12/2007, -0/+0Amazing. I can't open the link.
- bloodwings, on 10/12/2007, -1/+1"Share, discover, bookmark, and promote the news that's important to you!"
that's written in the left column of digg.com... - jonabbey, on 10/12/2007, -0/+0RMI is scarcely pointless, as it provides a very easy-to-use distributed computing system which has full support for arbitrary object graph serialization and inherent support for distributed garbage collection.
RMI is not a substitute for web services, but neither is web services a substitute for RMI.
And what's up with .NET Remoting? Why should I care about it? - gyllstromk, on 10/12/2007, -0/+0@3monkeys
It doesn't have to be in the last 3 months. But RMI is like 5-10 years old, and has remained relatively unchanged due in part to the fact that it is inferior to much of the newer technology. There's tons of resources out there already available to learn about RMI.
Just exercise a little discretion when you're posting tutorials. - TheBarge, on 10/12/2007, -2/+1"I don't see the word 'news' anywhere on this website...do you?"
I saw that had already been pointed out, didn't you? - TheBarge, on 10/12/2007, -3/+2@DaveV
"Ah, I see. So, once someone learns the basic Java API, they magically know RMI. No, they dont? Once one learns the Java API and want to learn client/server programming RMI, what should the do? Maybe they should do to an online RMI tutorial. You know, like this one."
They should try using something a little newer than RMI for one. Then, they could simply go to Google and type "Java RMI tutorial" and pick one of the thousands that get returned. I'm just saying this shouldn't be front page material. I did say I found it somewhat interesting because of the nice code examples, or did you not bother reading my whole comment?
"You are the epitome of "dumbass" and a prime example of what is wrong with FOSS, western culture and people in general."
You are the epitome of an ***** who apparently can't accept that other people have different opinions than you do. - inactive, on 10/12/2007, -2/+0Sorry...but RMI is pretty much pointless by now. you should use Soap calls (web services) which are standard/cross platform/cross language/less messy
and... .NET Rocks! with Remoting which kiss @ss compared to RMI... so there you have it Microsoft 1 Java 0.
(Lets the flame wars begin!!!) - twertyto, on 10/12/2007, -3/+1BORING!!!
- TheBarge, on 10/12/2007, -5/+2Every notice how some people who comment tend to read more in someone elses comment than was actually there? The point is, RMI is old, is in the Java API, and has countless books and websites to help people learn about it.
If this was a link to some open source API to provide remote execution of code or something, I'd be the first one to digg it. - TheBarge, on 10/12/2007, -8/+4If they're just learning Java they should stick to the standard API and not be worrying about RMI at that point. Dumbass.
- CharlesDarwin, on 10/12/2007, -7/+3fscking noobs! Seriously, here's your first clue that this isn't news "RMI is one of the core Java APIs since version 1.1" Dumb ass mother *****!
- spookyct, on 10/12/2007, -5/+1no digg!
- kebernet, on 10/12/2007, -9/+2"I'd prefer using something like Apache's Axis SOAP framework to accomplish something like this."
AAaaah HAHAHAHAHAHHAHAHAHAHAHAHHAHAHAHAHHAHAHAHHAHAHAHHA...
Oh, man. Somebody "prefers" Axis! That's rich. - TheBarge, on 10/12/2007, -13/+6Oooo here's another fact, Java is object oriented! Oh yeah, Java programmers already know that, and most of them have a pretty good idea about RMI. This isn't news at all.
But I do like the fact that the page includes basic code examples. - inactive, on 10/12/2007, -7/+0damned comment system! Bad! No treat!
- merreborn, on 10/12/2007, -12/+33monkey's next submission:
Introducing COM!
http://en.wikipedia.org/wiki/Component_Object_Model
Sure it's 13 years old, but it's news to me!


What is Digg?