aspose file tools*
The moose likes Distributed Java and the fly likes [RMI] question about Activation Framework Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Distributed Java
Bookmark "[RMI] question about Activation Framework" Watch "[RMI] question about Activation Framework" New topic
Author

[RMI] question about Activation Framework

Jimmy Chen
Ranch Hand

Joined: Apr 11, 2005
Posts: 54
As I read through chapter 17 "Factories and the Activation Framework" in "JAVA RMI"(O'reilly), I find the author doesn't demostrate clearly how Activation deals when multiple clients requset the same server.

As previous chapters describe, the server distinguish requests from different clients use this method: getClientHost(). And we should use a
background thread to maintain and check the clients status.

So, I want to know if I still need to do so when using the Activation.
Nathan Pruett
Bartender

Joined: Oct 18, 2000
Posts: 4121

"Super Nova" -

Welcome to the JavaRanch! Please adjust your displayed name to meet the
JavaRanch Naming Policy. User names cannot be obviously fake and must constist of a first name and a last name.

You can change your user name here.

Thanks! and welcome to the JavaRanch!


-Nate
Write once, run anywhere, because there's nowhere to hide! - /. A.C.
Jimmy Chen
Ranch Hand

Joined: Apr 11, 2005
Posts: 54
changed it, is this ok?
Nathan Pruett
Bartender

Joined: Oct 18, 2000
Posts: 4121

Yes, your "new name" is fine thanks for the name change!

All the Activation Framework handles is the initial creation of the server. Any further method calls will be handled the same as other RMI calls, so if you need to distinguish calls from different clients and threads to keep track of their status, the Activation Framework isn't going to change this.

The only difference the Activation Framework may throw into this is if multiple clients perform the *initial* call to the server that creates it. This is the job of the RMID daemon, though, not your server class. I'd assume that the RMID daemon would be able to handle multiple client requests to initialize your server class correctly - but once those requests get into the method calls it's up to your class.
Jimmy Chen
Ranch Hand

Joined: Apr 11, 2005
Posts: 54
Thank you, I got it
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: [RMI] question about Activation Framework
 
Similar Threads
HELP: some questions about RMI-IIOP
How to use Unreferenced in RMI?
Can rmi server and client be in one java process
RMI object life time???
Object Activation