Re: A real jini service
Mark Brouwer <[email protected]>
| Newsgroups | gmane.comp.java.sun.jini |
|---|---|
| Message-ID | <[email protected]> |
Tommy tommy wrote: > Hi to everybody, > > I have developed a chat that uses the sockets for the communication > between clients and sever. The client is composed from 2 classes (A class > for GUI and a class for the comunications). > Can I export 2 classes (that they compose an only service) on the Lookup > Service?. Is this chat service a Jini Service if it uses sockets? > > I'm confused about this.... :) While I believe there is no formal definition of what represents a "Jini service" I would say that if your chat service is specified by a (Java) interface (representing the chat API) and that some service code implements that interface and the service is able to find a lookup service and register the code with the lookup service you have a Jini service. It doesn't matter whether you implement the communication protocol using RMI or plain sockets, or something else for that matter. In case of a GUI I would adhere though to the ServiceUI specification which in short means that you register your GUI as a lookup attribute with the lookup, have a look here: http://www.artima.com/jini/serviceui/ Hope this helps, -- Mark -------------------------------------------------------------------------- Getting Started: http://www.jini.org/wiki/Category:Getting_Started Community Web Site: http://jini.org jini-users Archive: http://archives.java.sun.com/archives/jini-users.html Unsubscribing: email "signoff JINI-USERS" to [email protected]