The Artima Developer Community
Sponsored Link

Legacy Jini Forum
Adding UIs to Jini Services

Advertisement

Advertisement

This page contains an archived post to the Jini Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.

Message:

ServiceUI

Posted by Jeffrey Peden on February 16, 2000 at 3:48 PM

I've been working for the past couple of months on a rewrite of my collaboration service app suite, and in the rewrite have basically been implementing a serviceUI type framework (although since my product must remain jdk1.1 savvy, we could not use Jini ;-( ).

What we came up with is a system where a service provides a single method which calls getUserInterface(). getUserInterface() has code which dynamically builds the UI for the service when it is called on the client. The nice part is that the rest of the service can be used WITHOUT downloading the UI code. And, all that the client must know is that getUserInterface() returns a JPanel.

The service itself contains an instance of the remote proxy, which is passed into the UserInterface at construction time.

This method could also be extended rather simply to something like getUserInterface(String ui_type), where is the service provides, perhaps, an optional HTML based interface, or a Palm-Pilot based UI, it could return an Object of that type.

If you would like more info on a full-scale working implementation of the above in a non-Jini setting, e-mail me at the above address.

---

Another alternative might be to consider the use of the JavaBeans Activation Framework. In this way, the service need only return an object of some type, and it is up to the client to have a plug-in registered for viewing that type.


--

Jeffrey J Peden II
Undergradute/Senior Software Engineer
Multimedia Online Collaboration Architecture
Computer Systems Engineering - 2000
University of Massachusetts at Amherst



Replies:


Sponsored Links



Google
  Web Artima.com   
Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us